diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -256,8 +256,10 @@ endif TESTS_TMP := txr.test.out TESTS_OUT := $(addprefix tst/,\ - $(patsubst %.txr,%.out,\ - $(shell find -H tests -name '*.txr' | sort))) + $(patsubst %.tl,%.out,\ + $(patsubst %.txr,%.out,\ + $(shell find -H tests \ + \( -name '*.txr' -o -name '*.tl' \) | sort)))) TESTS_OK := $(TESTS_OUT:.out=.ok) .PHONY: tests @@ -299,6 +301,12 @@ tst/%.out: %.txr $(TXR) $(TXR_DBG_OPTS) $(TXR_OPTS) $< $(TXR_ARGS) > $(TESTS_TMP)) $(V)mv $(TESTS_TMP) $@ +tst/%.out: %.tl + $(call ABBREV,TXR) + $(V)mkdir -p $(dir $@) + $(V)$(TXR) $(TXR_DBG_OPTS) $(TXR_OPTS) $< $(TXR_ARGS) > $(TESTS_TMP) + $(V)mv $(TESTS_TMP) $@ + %.ok: %.out $(V)diff -u $(patsubst tst/%.out,%.expected,$<) $< $(V)touch $@ |