diff options
Diffstat (limited to 'tests/alltypes/SConscript')
-rw-r--r-- | tests/alltypes/SConscript | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/alltypes/SConscript b/tests/alltypes/SConscript new file mode 100644 index 00000000..3c8adc48 --- /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"]) + |