Add 'CAN-binder/libs/uds-c/' from commit 'ca20db3dd978871bbb9f01f3c862b510c03d1dc4'
[apps/agl-service-can-low-level.git] / CAN-binder / libs / nanopb / tests / basic_buffer / SConscript
1 # Build and run a basic round-trip test using memory buffer encoding.
2
3 Import("env")
4
5 enc = env.Program(["encode_buffer.c", "$COMMON/person.pb.c", "$COMMON/pb_encode.o", "$COMMON/pb_common.o"])
6 dec = env.Program(["decode_buffer.c", "$COMMON/person.pb.c", "$COMMON/pb_decode.o", "$COMMON/pb_common.o"])
7
8 env.RunTest(enc)
9 env.RunTest([dec, "encode_buffer.output"])
10 env.Decode(["encode_buffer.output", "$COMMON/person.proto"], MESSAGE = "Person")
11 env.Compare(["decode_buffer.output", "encode_buffer.decoded"])
12