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