tests: give all the arguments to the wrapper
authorDamien Lespiau <damien.lespiau@intel.com>
Wed, 25 Nov 2009 12:25:14 +0000 (13:25 +0100)
committerDamien Lespiau <damien.lespiau@intel.com>
Mon, 30 Nov 2009 11:53:26 +0000 (12:53 +0100)
Some tests can be given extra arguments. The test-interactive dispatch
mechanism handles that but the small shell scripts around the wrapper
do not forward the arguments to the wrapper.

Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>
tests/interactive/Makefile.am

index 43ffe7c..61580ab 100644 (file)
@@ -57,12 +57,13 @@ endif
 wrappers: stamp-test-interactive
        @true
 stamp-test-interactive: test-interactive$(EXEEXT)
-       @for i in $(UNIT_TESTS); \
+       @wrapper=$(top_srcdir)/tests/interactive/wrapper.sh ; \
+       for i in $(UNIT_TESTS); \
        do \
                test_bin=$${i%*.c} ; \
                echo "  GEN    $$test_bin" ; \
                ( echo "#!/bin/sh" ; \
-                 echo "$(top_srcdir)/tests/interactive/wrapper.sh $$test_bin" \
+                 echo "$$wrapper $$test_bin \$$@" \
                ) > $$test_bin$(EXEEXT) ; \
                chmod +x $$test_bin$(EXEEXT) ; \
        done \