aboutsummaryrefslogtreecommitdiffstats
path: root/tests/extensions/SConscript
blob: f632a9aeb7455f0a6af78b26c7b2194c076b8e2b (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$OBJSUFFIX", "#common/pb_encode.o"])
dec = incpath.Program(["decode_extensions.c", "extensions.pb.c", "#alltypes/alltypes.pb$OBJSUFFIX", "#common/pb_decode.o"])

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