Files

15 lines
527 B
Python
Raw Permalink Normal View History

2013-09-10 22:34:54 +03:00
# Test that the generator options work as expected.
Import("env")
env.NanopbProto("options")
env.Object('options.pb.c')
2018-12-10 16:42:21 +02:00
env.Match('options_h.matched', ['options.pb.h', 'options_h.expected'])
env.Match('options_c.matched', ['options.pb.c', 'options_c.expected'])
2013-09-10 22:34:54 +03:00
2016-12-22 17:37:14 +02:00
env.NanopbProto("proto3_options")
env.Object('proto3_options.pb.c')
env.Match(['proto3_options.pb.h', 'proto3_options.expected'])
2019-12-19 10:28:58 +02:00
p = env.Program(["options.c", "options.pb.c", "$COMMON/pb_decode.o", "$COMMON/pb_encode.o", "$COMMON/pb_common.o"])
env.RunTest(p)