aboutsummaryrefslogtreecommitdiffstats
path: root/tests/alltypes
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@git.mail.kapsi.fi>2013-09-10 11:34:57 +0300
committerPetteri Aimonen <jpa@git.mail.kapsi.fi>2013-09-10 11:34:57 +0300
commit4dccf28ba9c212b232147fd3823554d04b30c392 (patch)
treeec96e41cdd7c589e555b5c8862a2c7165c1dcf51 /tests/alltypes
parent262c62676cf740ec3ce14a22bde47b7968fec8f0 (diff)
Convert more test cases to scons
Diffstat (limited to 'tests/alltypes')
-rw-r--r--tests/alltypes/SConscript12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/alltypes/SConscript b/tests/alltypes/SConscript
new file mode 100644
index 0000000..3c8adc4
--- /dev/null
+++ b/tests/alltypes/SConscript
@@ -0,0 +1,12 @@
+# Build and run a test that encodes and decodes a message that contains
+# all of the Protocol Buffers data types.
+
+Import("env")
+
+env.NanopbProto("alltypes")
+env.Program(["encode_alltypes.c", "alltypes.pb.c", "#common/pb_encode.o"])
+env.Program(["decode_alltypes.c", "alltypes.pb.c", "#common/pb_decode.o"])
+
+env.RunTest("encode_alltypes")
+env.RunTest(["decode_alltypes", "encode_alltypes.output"])
+