aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/nanopb/tests/multiple_files/SConscript
diff options
context:
space:
mode:
authorGravatar Nicolas "Pixel" Noble <pixel@nobis-crew.org>2016-09-23 06:28:04 +0200
committerGravatar Nicolas "Pixel" Noble <pixel@nobis-crew.org>2016-09-23 06:28:04 +0200
commit39937f73760b7cfc6be763d4b7e91b934df23fbe (patch)
tree11c90e51d1c93c82ab267b947cffff7eda0afbc4 /third_party/nanopb/tests/multiple_files/SConscript
parentfe456e5b487717c25bde88f97c9029185130a2b9 (diff)
Putting nanopb files into third_party without being a submodule.
Diffstat (limited to 'third_party/nanopb/tests/multiple_files/SConscript')
-rw-r--r--third_party/nanopb/tests/multiple_files/SConscript13
1 files changed, 13 insertions, 0 deletions
diff --git a/third_party/nanopb/tests/multiple_files/SConscript b/third_party/nanopb/tests/multiple_files/SConscript
new file mode 100644
index 0000000000..1689f4822a
--- /dev/null
+++ b/third_party/nanopb/tests/multiple_files/SConscript
@@ -0,0 +1,13 @@
+# Test that multiple .proto files don't cause name collisions.
+
+Import("env")
+
+incpath = env.Clone()
+incpath.Append(PROTOCPATH = '#multiple_files')
+
+incpath.NanopbProto(["multifile1", "multifile1.options"])
+incpath.NanopbProto("multifile2")
+test = incpath.Program(["test_multiple_files.c", "multifile1.pb.c", "multifile2.pb.c"])
+
+env.RunTest(test)
+