aboutsummaryrefslogtreecommitdiffstats
path: root/tests/extensions/SConscript
blob: b48d6a66969add80d3d4de606725979f1647816d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Test the support for extension fields.

Import("env")

# We use the files from the alltypes test case
incpath = env.Clone()
incpath.Append(PROTOCPATH = '#alltypes')
incpath.Append(CPPPATH = '#alltypes')

incpath.NanopbProto("extensions")
enc = incpath.Program(["encode_extensions.c", "extensions.pb.c", "#alltypes/alltypes.pb.o", "#common/pb_encode.o"])
dec = incpath.Program(["decode_extensions.c", "extensions.pb.c", "#alltypes/alltypes.pb.o", "#common/pb_decode.o"])

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