729fd65f21d5735849516f5d01bfafe93119848c
[apps/agl-service-can-low-level.git] / 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"])
7 dec = env.Program(["decode_callbacks.c", "callbacks.pb.c", "#common/pb_decode.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