Update doc revision and pdf cover.
[apps/low-level-can-service.git] / libs / nanopb / tests / callbacks / SConscript
1 # Test the functionality of the callback fields.
2
3 Import("env")
4
5 env.NanopbProto("callbacks")
6 enc = env.Program(["encode_callbacks.c", "callbacks.pb.c", "$COMMON/pb_encode.o", "$COMMON/pb_common.o"])
7 dec = env.Program(["decode_callbacks.c", "callbacks.pb.c", "$COMMON/pb_decode.o", "$COMMON/pb_common.o"])
8
9 env.RunTest(enc)
10 env.RunTest([dec, "encode_callbacks.output"])
11
12 env.Decode(["encode_callbacks.output", "callbacks.proto"], MESSAGE = "TestMessage")
13 env.Compare(["decode_callbacks.output", "encode_callbacks.decoded"])
14