summaryrefslogtreecommitdiffstats
path: root/tests/multiple_files/SConscript
diff options
context:
space:
mode:
Diffstat (limited to 'tests/multiple_files/SConscript')
-rw-r--r--tests/multiple_files/SConscript13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/multiple_files/SConscript b/tests/multiple_files/SConscript
new file mode 100644
index 00000000..6b4f6b69
--- /dev/null
+++ b/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("callbacks")
+incpath.NanopbProto("callbacks2")
+test = incpath.Program(["test_multiple_files.c", "callbacks.pb.c", "callbacks2.pb.c"])
+
+env.RunTest(test)
+