From: Jérémie Galarneau Date: Thu, 14 Apr 2016 16:19:09 +0000 (-0400) Subject: Tests: dynamically create test list based on enabled features X-Git-Tag: v1.4.0-rc1~78 X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=f5a64ec04a8cdd75a3940f21f4c2b908fc5ba667 Tests: dynamically create test list based on enabled features Signed-off-by: Jérémie Galarneau --- diff --git a/tests/Makefile.am b/tests/Makefile.am index 56e93c11..5927f59e 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -23,8 +23,12 @@ clean-local: done; \ fi +TEMPLIST := $(shell mktemp -u) check-am: - ./run.sh $(srcdir)/tests + @cat $(srcdir)/tests > $(TEMPLIST) if ENABLE_DEBUGINFO - ./run.sh $(srcdir)/tests_debuginfo + @echo '' >> $(TEMPLIST) + @cat $(srcdir)/tests_debuginfo >> $(TEMPLIST) endif + ./run.sh $(TEMPLIST) + rm $(TEMPLIST)