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