diff options
author | Steffen Siering <steffen siering gmail com> | 2012-11-11 23:02:26 +0000 |
---|---|---|
committer | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2012-11-16 09:59:04 +0200 |
commit | 1f8fb1f1ed3dbb606241db191bc3c0b5683fd4a8 (patch) | |
tree | 503a07b8ece29b8444bbdcd73a6080722246ebb1 /tests/Makefile | |
parent | 434dcbb2eeed391ad418c7d311bd8d6df0cdc5d7 (diff) |
Use TESTS variable to define dependencies for run_unittests
Diffstat (limited to 'tests/Makefile')
-rw-r--r-- | tests/Makefile | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/tests/Makefile b/tests/Makefile index 06062127..58b84a3b 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -1,8 +1,13 @@ CFLAGS=-ansi -Wall -Werror -I .. -g -O0 -DEPS=../pb_decode.h ../pb_encode.h ../pb.h person.pb.h callbacks2.pb.h callbacks.pb.h unittests.h unittestproto.pb.h alltypes.pb.h missing_fields.pb.h -TESTS=test_decode1 test_encode1 decode_unittests encode_unittests test_no_messages -TESTS=test_decode1 test_encode1 decode_unittests encode_unittests test_no_messages test_multiple_files - +DEPS=../pb_decode.h ../pb_encode.h ../pb.h person.pb.h \ + callbacks2.pb.h callbacks.pb.h unittests.h unittestproto.pb.h \ + alltypes.pb.h missing_fields.pb.h +TESTS= decode_unittests encode_unittests \ + test_decode1 test_decode2 test_decode3 \ + test_encode1 test_encode2 test_encode3 \ + test_decode_callbacks test_encode_callbacks \ + test_missing_fields test_no_messages \ + test_multiple_files test_cxxcompile test_options # More strict checks for the core part of nanopb CC_VERSION=$(shell $(CC) -v 2>&1) @@ -19,7 +24,7 @@ endif all: breakpoints $(TESTS) run_unittests clean: - rm -f $(TESTS) person.pb* alltypes.pb* *.o *.gcda *.gcno + rm -f $(TESTS) person.pb* alltypes.pb* *.o *.gcda *.gcno *.pb.h *.pb.c %.pb.o: %.pb.c %.pb.h $(CC) $(CFLAGS) $(CFLAGS_CORE) -c -o $@ $< @@ -66,7 +71,7 @@ coverage: run_unittests gcov pb_encode.gcda gcov pb_decode.gcda -run_unittests: decode_unittests encode_unittests test_cxxcompile test_multiple_files test_encode1 test_encode2 test_encode3 test_decode1 test_decode2 test_decode3 test_encode_callbacks test_decode_callbacks test_missing_fields test_options +run_unittests: $(TESTS) rm -f *.gcda ./decode_unittests > /dev/null |