1
0
Fork 0

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 <ebassi@linux.intel.com>
This commit is contained in:
Damien Lespiau 2009-11-25 13:25:14 +01:00
parent 934eb5d251
commit e4180b2838

View 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 \