summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2010-07-10 14:37:02 -0700
committerJoshua Haberman <joshua@reverberate.org>2010-07-10 14:37:02 -0700
commit67b16cbe5c55d00d7e576cdf479392f3a0e927a5 (patch)
tree9d40b4d04c2a6980fd6e2125f723cec8f0ac1cb5 /Makefile
parent2ef013126c682a44d15554ea7a04144fc9a10fed (diff)
Basic test_def links and passes no-op test!
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 2abe0c7..568dcad 100644
--- a/Makefile
+++ b/Makefile
@@ -102,14 +102,16 @@ VALGRIND=valgrind --leak-check=full --error-exitcode=1
#VALGRIND=
test: tests
@echo Running all tests under valgrind.
+ @set -e # Abort on error.
# Needs to be rewritten to separate the benchmark.
# valgrind --error-exitcode=1 ./tests/test_table
@for test in tests/*; do \
if [ -x ./$$test ] ; then \
- echo $(VALGRIND) ./$$test: \\c; \
- $(VALGRIND) ./$$test; \
+ echo !!! $(VALGRIND) ./$$test; \
+ $(VALGRIND) ./$$test || exit 1; \
fi \
- done;
+ done; \
+ echo "All tests passed!"
tests/t.test_vs_proto2.googlemessage1 \
tests/t.test_vs_proto2.googlemessage2: \
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback