fail when there are test errors

[skip ci]
This commit is contained in:
Konstantin Käfer
2014-07-08 10:33:03 -07:00
parent 4c75c696b3
commit 748ac3e1aa
2 changed files with 11 additions and 1 deletions

View File

@@ -29,7 +29,7 @@ test: build/test/Makefile
# Runs all test cases
run-tests: test
(cd build/${BUILDTYPE} && exec find . -maxdepth 1 -name "test_*" -exec {} \;)
BUILDTYPE=$(BUILDTYPE) ./scripts/run_tests.sh
test/%: build/test/Makefile
$(MAKE) -C build/test BUILDTYPE=$(BUILDTYPE) V=$(V) $*

10
scripts/run_tests.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -e
set -o pipefail
cd build/$BUILDTYPE
for TEST in test_* ; do
./$TEST
done