From: Damien Lespiau Date: Wed, 25 Nov 2009 12:25:14 +0000 (+0100) Subject: tests: give all the arguments to the wrapper X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e4180b283836ccd665d23d1e19d35a8911c40436;p=profile%2Fivi%2Fclutter.git tests: give all the arguments to the wrapper 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 --- diff --git a/tests/interactive/Makefile.am b/tests/interactive/Makefile.am index 43ffe7c..61580ab 100644 --- a/tests/interactive/Makefile.am +++ b/tests/interactive/Makefile.am @@ -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 \