SConscript 648 B

12345678910111213141516
  1. # Test the support for extension fields.
  2. Import("env")
  3. # We use the files from the alltypes test case
  4. incpath = env.Clone()
  5. incpath.Append(PROTOCPATH = '$BUILD/alltypes')
  6. incpath.Append(CPPPATH = '$BUILD/alltypes')
  7. incpath.NanopbProto(["extensions", "extensions.options"])
  8. enc = incpath.Program(["encode_extensions.c", "extensions.pb.c", "$BUILD/alltypes/alltypes.pb$OBJSUFFIX", "$COMMON/pb_encode.o", "$COMMON/pb_common.o"])
  9. dec = incpath.Program(["decode_extensions.c", "extensions.pb.c", "$BUILD/alltypes/alltypes.pb$OBJSUFFIX", "$COMMON/pb_decode.o", "$COMMON/pb_common.o"])
  10. env.RunTest(enc)
  11. env.RunTest([dec, "encode_extensions.output"])