1# Test that the generator options work as expected. 2 3Import("env") 4 5env.NanopbProto("options") 6env.Object('options.pb.c') 7env.Match('options_h.matched', ['options.pb.h', 'options_h.expected']) 8env.Match('options_c.matched', ['options.pb.c', 'options_c.expected']) 9 10env.NanopbProto("proto3_options") 11env.Object('proto3_options.pb.c') 12env.Match(['proto3_options.pb.h', 'proto3_options.expected']) 13 14p = env.Program(["options.c", "options.pb.c", "$COMMON/pb_decode.o", "$COMMON/pb_encode.o", "$COMMON/pb_common.o"]) 15env.RunTest(p) 16