SConscript 398 B

1234567891011
  1. # Check that the old generated .pb.c/.pb.h files are still compatible with the
  2. # current version of nanopb.
  3. Import("env")
  4. enc = env.Program(["encode_legacy.c", "alltypes_legacy.c", "$COMMON/pb_encode.o", "$COMMON/pb_common.o"])
  5. dec = env.Program(["decode_legacy.c", "alltypes_legacy.c", "$COMMON/pb_decode.o", "$COMMON/pb_common.o"])
  6. env.RunTest(enc)
  7. env.RunTest([dec, "encode_legacy.output"])