Start moving the tests into subfolders. Transition to SCons for build system for...
[apps/agl-service-can-low-level.git] / tests / basic_buffer / SConscript
1 # Build and run a basic round-trip test using memory buffer encoding.
2
3 Import("env")
4
5 env.Program(["encode_buffer.c", "#common/person.pb.c", "#common/pb_encode.o"])
6 env.Program(["decode_buffer.c", "#common/person.pb.c", "#common/pb_decode.o"])
7
8 env.RunTest("encode_buffer")
9 env.RunTest(["decode_buffer", "encode_buffer.output"])
10 env.Decode(["encode_buffer.output", "#common/person.proto"], MESSAGE = "Person")
11 env.Compare(["decode_buffer.output", "encode_buffer.decoded"])
12