summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2010-07-10 12:15:31 -0700
committerJoshua Haberman <joshua@reverberate.org>2010-07-10 12:15:31 -0700
commite29bf964d1716398e8354a50f506906a307298e5 (patch)
treee428e4a42590db311b3e3b6816bbf1341e979cbc /Makefile
parent28ec9a1fa0f9b1d741920dfa8afc91fa2532c43d (diff)
Tests for string and fleshed out implementation.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 9 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index ca4f940..1f977b4 100644
--- a/Makefile
+++ b/Makefile
@@ -86,22 +86,25 @@ tests/test.proto.pb: tests/test.proto
# TODO: replace with upbc
protoc tests/test.proto -otests/test.proto.pb
-TESTS=tests/tests \
+TESTS=tests/test_string \
+ tests/test_table
+tests: $(TESTS)
+
+OTHER_TESTS=tests/tests \
tests/test_table \
tests/t.test_vs_proto2.googlemessage1 \
tests/t.test_vs_proto2.googlemessage2 \
tests/test.proto.pb
$(TESTS): core/libupb.a
-#VALGRIND=valgrind --leak-check=full --error-exitcode=1
-VALGRIND=
+VALGRIND=valgrind --leak-check=full --error-exitcode=1
+#VALGRIND=
test: tests
@echo Running all tests under valgrind.
- $(VALGRIND) ./tests/tests
# Needs to be rewritten to separate the benchmark.
# valgrind --error-exitcode=1 ./tests/test_table
- @for test in tests/t.* ; do \
- if [ -f ./$$test ] ; then \
+ @for test in tests/*; do \
+ if [ -x ./$$test ] ; then \
echo $(VALGRIND) ./$$test: \\c; \
$(VALGRIND) ./$$test; \
fi \
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback