mirror of https://github.com/grpc/grpc.git
The C based gRPC (C++, Python, Ruby, Objective-C, PHP, C#)
https://grpc.io/
17 lines
490 B
17 lines
490 B
8 years ago
|
# Test that multiple .proto files don't cause name collisions.
|
||
|
|
||
|
Import("env")
|
||
|
|
||
|
incpath = env.Clone()
|
||
|
incpath.Append(PROTOCPATH = '#multiple_files')
|
||
8 years ago
|
incpath.Append(CPPPATH = '$BUILD/multiple_files')
|
||
8 years ago
|
|
||
|
incpath.NanopbProto(["multifile1", "multifile1.options"])
|
||
|
incpath.NanopbProto("multifile2")
|
||
8 years ago
|
incpath.NanopbProto("subdir/multifile2")
|
||
|
test = incpath.Program(["test_multiple_files.c", "multifile1.pb.c",
|
||
|
"multifile2.pb.c", "subdir/multifile2.pb.c"])
|
||
8 years ago
|
|
||
|
env.RunTest(test)
|
||
|
|