commit 80e858e3e63aa4141415cb177551893fb91b75df Author: Nick Mathewson nickm@torproject.org 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@example.com +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@example.com + +%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