From 1582038e37771ade214f0627c3ecbf6e1ba69946 Mon Sep 17 00:00:00 2001 From: Petteri Aimonen Date: Sat, 12 Sep 2015 12:16:58 +0300 Subject: Add testcase for issue #164 --- tests/enum_sizes/SConscript | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/enum_sizes/SConscript (limited to 'tests/enum_sizes/SConscript') diff --git a/tests/enum_sizes/SConscript b/tests/enum_sizes/SConscript new file mode 100644 index 00000000..048592ed --- /dev/null +++ b/tests/enum_sizes/SConscript @@ -0,0 +1,12 @@ +# Test that different sizes of enum fields are properly encoded and decoded. + +Import('env') + +env.NanopbProto('enumsizes') + +p = env.Program(["enumsizes_unittests.c", + "enumsizes.pb.c", + "$COMMON/pb_encode.o", + "$COMMON/pb_decode.o", + "$COMMON/pb_common.o"]) +env.RunTest(p) -- cgit 1.2.3-korg