1 # Test that multiple .proto files don't cause name collisions. 2 3 Import("env") 4 5 incpath = env.Clone() 6 incpath.Append(PROTOCPATH = '#multiple_files') 7 incpath.Append(CPPPATH = '$BUILD/multiple_files') 8 9 incpath.NanopbProto(["multifile1", "multifile1.options"]) 10 incpath.NanopbProto("multifile2") 11 incpath.NanopbProto("subdir/multifile2") 12 test = incpath.Program(["test_multiple_files.c", "multifile1.pb.c", 13 "multifile2.pb.c", "subdir/multifile2.pb.c"]) 14 15 env.RunTest(test) 16 17