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:
parent
934eb5d251
commit
e4180b2838
@ -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 \
|
||||
|
Loading…
x
Reference in New Issue
Block a user