Ensure proper exit code on any test failure. See #1611

Uses a shell script to run the tests.
This commit is contained in:
Sandro Santilli 2012-12-03 09:07:02 +01:00
parent 95ceee84fa
commit f9c2481fab
2 changed files with 20 additions and 8 deletions

View file

@ -29,14 +29,7 @@ uninstall:
python scons/scons.py --config=cache --implicit-cache --max-drift=1 uninstall
test:
@echo "*** Running visual tests..."
@python tests/visual_tests/test.py -q || true
@echo "*** Running C++ tests..."
@for FILE in tests/cpp_tests/*-bin; do \
$${FILE}; \
done
@echo "*** Running python tests..."
@python tests/run_tests.py -q
./run_tests
test-local:
@echo "*** Boostrapping local test environment..."

19
run_tests Executable file
View file

@ -0,0 +1,19 @@
#!/bin/sh
failures=0
echo "*** Running visual tests..."
python tests/visual_tests/test.py -q
failures=$((failures+$?))
echo "*** Running C++ tests..."
for FILE in tests/cpp_tests/*-bin; do
${FILE};
failures=$((failures+$?))
done
echo "*** Running python tests..."
python tests/run_tests.py -q
failures=$((failures+$?))
exit $failures