From 59788e2aabe41d46164184d4c31fd877397b62ee Mon Sep 17 00:00:00 2001 From: Petteri Aimonen Date: Fri, 16 Nov 2012 09:33:11 +0200 Subject: Rename test_compiles.c to test_multiple_files.c --- tests/Makefile | 6 +++--- tests/test_compiles.c | 13 ------------- tests/test_multiple_files.c | 13 +++++++++++++ 3 files changed, 16 insertions(+), 16 deletions(-) delete mode 100644 tests/test_compiles.c create mode 100644 tests/test_multiple_files.c (limited to 'tests') diff --git a/tests/Makefile b/tests/Makefile index f3a64d1..a21e3c4 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -2,7 +2,7 @@ CFLAGS=-ansi -Wall -Werror -I .. -g -O0 --coverage LDFLAGS=--coverage 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_compiles +TESTS=test_decode1 test_encode1 decode_unittests encode_unittests test_no_messages test_multiple_files # More strict checks for the core part of nanopb @@ -37,7 +37,7 @@ test_decode3: test_decode3.o pb_decode.o alltypes.pb.o test_encode1: test_encode1.o pb_encode.o person.pb.o test_encode2: test_encode2.o pb_encode.o person.pb.o test_encode3: test_encode3.o pb_encode.o alltypes.pb.o -test_compiles: test_compiles.o pb_encode.o callbacks2.pb.o callbacks.pb.o +test_multiple_files: test_multiple_files.o pb_encode.o callbacks2.pb.o callbacks.pb.o test_decode_callbacks: test_decode_callbacks.o pb_decode.o callbacks.pb.o test_encode_callbacks: test_encode_callbacks.o pb_encode.o callbacks.pb.o test_missing_fields: test_missing_fields.o pb_encode.o pb_decode.o missing_fields.pb.o @@ -58,7 +58,7 @@ coverage: run_unittests gcov pb_encode.gcda gcov pb_decode.gcda -run_unittests: decode_unittests encode_unittests test_cxxcompile test_compiles 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: 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 rm -f *.gcda ./decode_unittests > /dev/null diff --git a/tests/test_compiles.c b/tests/test_compiles.c deleted file mode 100644 index cb4e16d..0000000 --- a/tests/test_compiles.c +++ /dev/null @@ -1,13 +0,0 @@ -/* - * Tests if still compile if typedefs are redfefined in STATIC_ASSERTS when - * proto file includes another poto file - */ - -#include -#include -#include "callbacks2.pb.h" - -int main() -{ - return 0; -} diff --git a/tests/test_multiple_files.c b/tests/test_multiple_files.c new file mode 100644 index 0000000..cb4e16d --- /dev/null +++ b/tests/test_multiple_files.c @@ -0,0 +1,13 @@ +/* + * Tests if still compile if typedefs are redfefined in STATIC_ASSERTS when + * proto file includes another poto file + */ + +#include +#include +#include "callbacks2.pb.h" + +int main() +{ + return 0; +} -- cgit