aboutsummaryrefslogtreecommitdiffstats
path: root/tests/alltypes/SConscript
blob: 8aa45b6b802cc5b9bffc99d8dcdf882db08e3ed3 (plain)
1
2
3
4
5
6
7
8
9
10
11
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")
enc = env.Program(["encode_alltypes.c", "alltypes.pb.c", "#common/pb_encode.o"])
dec = env.Program(["decode_alltypes.c", "alltypes.pb.c", "#common/pb_decode.o"])

env.RunTest(enc)
env.RunTest([dec, "encode_alltypes.output"])