Etan Cohen | 7ef855e | 2014-08-20 10:11:11 -0700 | [diff] [blame] | 1 | # Test the support for extension fields. |
| 2 | |
| 3 | Import("env") |
| 4 | |
| 5 | # We use the files from the alltypes test case |
| 6 | incpath = env.Clone() |
| 7 | incpath.Append(PROTOCPATH = '$BUILD/alltypes') |
| 8 | incpath.Append(CPPPATH = '$BUILD/alltypes') |
| 9 | |
| 10 | incpath.NanopbProto(["extensions", "extensions.options"]) |
| 11 | enc = incpath.Program(["encode_extensions.c", "extensions.pb.c", "$BUILD/alltypes/alltypes.pb$OBJSUFFIX", "$COMMON/pb_encode.o"]) |
| 12 | dec = incpath.Program(["decode_extensions.c", "extensions.pb.c", "$BUILD/alltypes/alltypes.pb$OBJSUFFIX", "$COMMON/pb_decode.o"]) |
| 13 | |
| 14 | env.RunTest(enc) |
| 15 | env.RunTest([dec, "encode_extensions.output"]) |
| 16 | |