summaryrefslogtreecommitdiffstats
path: root/tests/enum_sizes/SConscript
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>2015-09-12 12:16:58 +0300
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>2015-09-12 12:16:58 +0300
commit1582038e37771ade214f0627c3ecbf6e1ba69946 (patch)
tree5c305c99771af087f36bb9feb47b041c756f5def /tests/enum_sizes/SConscript
parent612a51c608504f59fcd86c74eedac2903f088a0a (diff)
Add testcase for issue #164
Diffstat (limited to 'tests/enum_sizes/SConscript')
-rw-r--r--tests/enum_sizes/SConscript12
1 files changed, 12 insertions, 0 deletions
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)