Tests: dynamically create test list based on enabled features
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 14 Apr 2016 16:19:09 +0000 (12:19 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 3 May 2016 19:42:41 +0000 (15:42 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/Makefile.am

index 56e93c115ab213f74943a59059ef30a457c0f7e5..5927f59eff6a2edee32871a901277661ea9c2f10 100644 (file)
@@ -23,8 +23,12 @@ clean-local:
                done; \
        fi
 
                done; \
        fi
 
+TEMPLIST := $(shell mktemp -u)
 check-am:
 check-am:
-       ./run.sh $(srcdir)/tests
+       @cat $(srcdir)/tests > $(TEMPLIST)
 if ENABLE_DEBUGINFO
 if ENABLE_DEBUGINFO
-       ./run.sh $(srcdir)/tests_debuginfo
+       @echo '' >> $(TEMPLIST)
+       @cat $(srcdir)/tests_debuginfo >> $(TEMPLIST)
 endif
 endif
+       ./run.sh $(TEMPLIST)
+       rm $(TEMPLIST)
This page took 0.024935 seconds and 4 git commands to generate.