From e252432a4176b6524e8c064673459e947ba11cb7 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Sat, 14 Nov 2009 13:20:21 -0800 Subject: Refactoring: split defs into their own file, move private parsing funcs out of .h file. --- Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 9eefe3e..bbc2ce2 100644 --- a/Makefile +++ b/Makefile @@ -46,7 +46,7 @@ clean: # The core library (src/libupb.a) SRC=src/upb.c src/upb_parse.c src/upb_table.c src/upb_msg.c src/upb_mm.c \ - src/upb_enum.c src/upb_context.c src/upb_string.c src/upb_text.c \ + src/upb_def.c src/upb_context.c src/upb_string.c src/upb_text.c \ descriptor/descriptor.c #src/upb_serialize.c descriptor/descriptor.c STATICOBJ=$(patsubst %.c,%.o,$(SRC)) @@ -78,14 +78,16 @@ tests: tests/tests \ tests/t.test_vs_proto2.googlemessage1 \ tests/t.test_vs_proto2.googlemessage2 +#VALGRIND=valgrind --leak-check=full --error-exitcode=1 +VALGRIND= test: tests @echo Running all tests under valgrind. - valgrind --leak-check=full --error-exitcode=1 ./tests/tests + $(VALGRIND) ./tests/tests # Needs to be rewritten to separate the benchmark. # valgrind --error-exitcode=1 ./tests/test_table @for test in tests/t.* ; do \ - echo valgrind --leak-check=full --error-exitcode=1 ./$$test; \ - valgrind --leak-check=full --error-exitcode=1 ./$$test; \ + echo $(VALGRIND) ./$$test; \ + $(VALGRIND) ./$$test; \ done; tests/t.test_vs_proto2.googlemessage1 \ -- cgit v1.2.3