[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] Add an integration test for %include.



commit 80e858e3e63aa4141415cb177551893fb91b75df
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Fri Sep 13 16:53:40 2019 -0400

    Add an integration test for %include.
---
 src/test/conf_examples/include_1/expected     | 3 +++
 src/test/conf_examples/include_1/included.inc | 4 ++++
 src/test/conf_examples/include_1/nested.inc   | 2 ++
 src/test/conf_examples/include_1/torrc        | 4 ++++
 4 files changed, 13 insertions(+)

diff --git a/src/test/conf_examples/include_1/expected b/src/test/conf_examples/include_1/expected
new file mode 100644
index 000000000..4bbf52ce9
--- /dev/null
+++ b/src/test/conf_examples/include_1/expected
@@ -0,0 +1,3 @@
+ContactInfo includefile@xxxxxxxxxxx
+Nickname nested
+ORPort 8008
diff --git a/src/test/conf_examples/include_1/included.inc b/src/test/conf_examples/include_1/included.inc
new file mode 100644
index 000000000..8d1834345
--- /dev/null
+++ b/src/test/conf_examples/include_1/included.inc
@@ -0,0 +1,4 @@
+
+ContactInfo includefile@xxxxxxxxxxx
+
+%include "nested.inc"
\ No newline at end of file
diff --git a/src/test/conf_examples/include_1/nested.inc b/src/test/conf_examples/include_1/nested.inc
new file mode 100644
index 000000000..789b044a2
--- /dev/null
+++ b/src/test/conf_examples/include_1/nested.inc
@@ -0,0 +1,2 @@
+
+Nickname nested
\ No newline at end of file
diff --git a/src/test/conf_examples/include_1/torrc b/src/test/conf_examples/include_1/torrc
new file mode 100644
index 000000000..2ed4074f6
--- /dev/null
+++ b/src/test/conf_examples/include_1/torrc
@@ -0,0 +1,4 @@
+
+%include "included.inc"
+
+ORPort 8008



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits