diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-06-19 06:17:00 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-06-19 06:17:00 -0700 |
commit | 5d4159ba88001b52b814f13210421b8efd5cf9f2 (patch) | |
tree | 0a48222e64bcc336b969189d1b51f863971325c1 /Makefile | |
parent | 1081759195124f46fba0028c3583aa878fa72869 (diff) | |
download | txr-5d4159ba88001b52b814f13210421b8efd5cf9f2.tar.gz txr-5d4159ba88001b52b814f13210421b8efd5cf9f2.tar.bz2 txr-5d4159ba88001b52b814f13210421b8efd5cf9f2.zip |
Test ifa macro.
* Makefile (TEST_OUT): Include .tl files.
(tst/%.out): New rule variant, from .tl prerequisite.
* tests/012/ifa.expected: New file.
* tests/012/ifa.tl: New file.
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 $@ |