[git commit] tests: Allow to run tests via a simulator
Bernhard Reutner-Fischer
rep.dot.nop at gmail.com
Fri Sep 23 13:50:00 UTC 2016
commit: https://git.uclibc.org/uClibc++/commit/?id=e2bc49d5761de0397056de373b241caa57787515
branch: https://git.uclibc.org/uClibc++/commit/?id=refs/heads/master
SIM="my-simulator --param foo" make check
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
tests/testoutput/runtests.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/testoutput/runtests.sh b/tests/testoutput/runtests.sh
index 86180ae..d8c992e 100755
--- a/tests/testoutput/runtests.sh
+++ b/tests/testoutput/runtests.sh
@@ -11,9 +11,9 @@ for x in *.good ; do
TEST=$(basename ${x} .good)
if [ -x ../${TEST} ] ; then
if [ -f ${TEST}.input ] ; then
- LD_LIBRARY_PATH="../../src" ../${TEST} < ${TEST}.input > ${TEST}.test
+ LD_LIBRARY_PATH="../../src" ${SIM} ../${TEST} < ${TEST}.input > ${TEST}.test
else
- LD_LIBRARY_PATH="../../src" ../${TEST} > ${TEST}.test
+ LD_LIBRARY_PATH="../../src" ${SIM} ../${TEST} > ${TEST}.test
fi
cmp ${TEST}.good ${TEST}.test
if [ $? -eq 1 ] ; then
More information about the uClibc-cvs
mailing list