Ensure proper exit code on any test failure. See #1611
Uses a shell script to run the tests.
This commit is contained in:
parent
95ceee84fa
commit
f9c2481fab
2 changed files with 20 additions and 8 deletions
9
Makefile
9
Makefile
|
@ -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
19
run_tests
Executable 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
|
Loading…
Reference in a new issue