fail when there are test errors
[skip ci]
This commit is contained in:
2
Makefile
2
Makefile
@@ -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
10
scripts/run_tests.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
set -o pipefail
|
||||
|
||||
cd build/$BUILDTYPE
|
||||
|
||||
for TEST in test_* ; do
|
||||
./$TEST
|
||||
done
|
||||
Reference in New Issue
Block a user