summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-06-19 06:17:00 -0700
committerKaz Kylheku <kaz@kylheku.com>2015-06-19 06:17:00 -0700
commit5d4159ba88001b52b814f13210421b8efd5cf9f2 (patch)
tree0a48222e64bcc336b969189d1b51f863971325c1 /Makefile
parent1081759195124f46fba0028c3583aa878fa72869 (diff)
downloadtxr-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--Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 31d11f2f..7db7cbd0 100644
--- a/Makefile
+++ b/Makefile
@@ -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 $@