SConscript 527 B

123456789101112131415
  1. # Test that the generator options work as expected.
  2. Import("env")
  3. env.NanopbProto("options")
  4. env.Object('options.pb.c')
  5. env.Match('options_h.matched', ['options.pb.h', 'options_h.expected'])
  6. env.Match('options_c.matched', ['options.pb.c', 'options_c.expected'])
  7. env.NanopbProto("proto3_options")
  8. env.Object('proto3_options.pb.c')
  9. env.Match(['proto3_options.pb.h', 'proto3_options.expected'])
  10. p = env.Program(["options.c", "options.pb.c", "$COMMON/pb_decode.o", "$COMMON/pb_encode.o", "$COMMON/pb_common.o"])
  11. env.RunTest(p)