Home | History | Annotate | Download | only in callbacks
      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 
     15