1 # Test the functionality of the callback fields.
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"])
10 env.RunTest([dec, "encode_callbacks.output"])
12 env.Decode(["encode_callbacks.output", "callbacks.proto"], MESSAGE = "TestMessage")
13 env.Compare(["decode_callbacks.output", "encode_callbacks.decoded"])