]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
test/parseconf: Update conf_examples to use expected_log
authorteor <teor@torproject.org>
Tue, 12 Nov 2019 05:10:07 +0000 (15:10 +1000)
committerteor <teor@torproject.org>
Thu, 14 Nov 2019 02:57:34 +0000 (12:57 +1000)
Part of 32451.

72 files changed:
src/test/conf_examples/badnick_1/expected_log_no_dirauth_relay [new file with mode: 0644]
src/test/conf_examples/badnick_2/expected_log_no_dirauth_relay [new file with mode: 0644]
src/test/conf_examples/bridgeauth_1/expected_log [new file with mode: 0644]
src/test/conf_examples/contactinfo_notutf8/expected_log_no_dirauth_relay [new file with mode: 0644]
src/test/conf_examples/crypto_accel/expected_log [new file with mode: 0644]
src/test/conf_examples/crypto_accel/expected_log_nss [moved from src/test/conf_examples/nss_1/error_nss with 100% similarity]
src/test/conf_examples/crypto_accel/expected_nss [new file with mode: 0644]
src/test/conf_examples/crypto_accel_req/expected_log_nss [new file with mode: 0644]
src/test/conf_examples/dirauth_1/expected_log [new file with mode: 0644]
src/test/conf_examples/empty_1/expected_log [new file with mode: 0644]
src/test/conf_examples/empty_2/expected_log [new file with mode: 0644]
src/test/conf_examples/empty_3/expected_log [new file with mode: 0644]
src/test/conf_examples/example_1/expected_log [new file with mode: 0644]
src/test/conf_examples/example_3/expected_log [new file with mode: 0644]
src/test/conf_examples/include_1/expected_log [new file with mode: 0644]
src/test/conf_examples/include_bug_31408/expected_log [new file with mode: 0644]
src/test/conf_examples/large_1/expected_log [new file with mode: 0644]
src/test/conf_examples/lzma_zstd_1/expected [new file with mode: 0644]
src/test/conf_examples/lzma_zstd_1/expected_log [moved from src/test/conf_examples/lzma_zstd_1/error with 100% similarity]
src/test/conf_examples/lzma_zstd_1/expected_log_lzma [moved from src/test/conf_examples/lzma_zstd_1/error_lzma with 100% similarity]
src/test/conf_examples/lzma_zstd_1/expected_log_lzma_zstd [moved from src/test/conf_examples/lzma_zstd_1/error_lzma_zstd with 100% similarity]
src/test/conf_examples/lzma_zstd_1/expected_log_zstd [moved from src/test/conf_examples/lzma_zstd_1/error_zstd with 100% similarity]
src/test/conf_examples/lzma_zstd_1/expected_lzma [new file with mode: 0644]
src/test/conf_examples/lzma_zstd_1/expected_lzma_zstd [new file with mode: 0644]
src/test/conf_examples/lzma_zstd_1/expected_zstd [new file with mode: 0644]
src/test/conf_examples/lzma_zstd_1/torrc
src/test/conf_examples/nss_1/expected [new file with mode: 0644]
src/test/conf_examples/nss_1/expected_log [moved from src/test/conf_examples/nss_1/error with 100% similarity]
src/test/conf_examples/nss_1/expected_log_nss [new file with mode: 0644]
src/test/conf_examples/nss_1/expected_nss [new file with mode: 0644]
src/test/conf_examples/nss_1/torrc
src/test/conf_examples/obsolete_1/expected_log [new file with mode: 0644]
src/test/conf_examples/obsolete_1/torrc
src/test/conf_examples/obsolete_2/expected_log [new file with mode: 0644]
src/test/conf_examples/obsolete_2/torrc
src/test/conf_examples/obsolete_3/expected [new file with mode: 0644]
src/test/conf_examples/obsolete_3/expected_log [new file with mode: 0644]
src/test/conf_examples/obsolete_3/torrc [new file with mode: 0644]
src/test/conf_examples/ops_1/expected_log [new file with mode: 0644]
src/test/conf_examples/ops_2/expected_log [new file with mode: 0644]
src/test/conf_examples/ops_3/expected_log [new file with mode: 0644]
src/test/conf_examples/ops_4/expected_log [new file with mode: 0644]
src/test/conf_examples/ops_5/expected_log [new file with mode: 0644]
src/test/conf_examples/ops_6/expected_log [new file with mode: 0644]
src/test/conf_examples/pt_01/expected_log [new file with mode: 0644]
src/test/conf_examples/pt_02/expected_log_no_dirauth_relay [new file with mode: 0644]
src/test/conf_examples/pt_03/expected_log [new file with mode: 0644]
src/test/conf_examples/pt_03/expected_log_no_dirauth_relay [new file with mode: 0644]
src/test/conf_examples/pt_03/expected_no_dirauth_relay [new file with mode: 0644]
src/test/conf_examples/pt_04/expected_log [new file with mode: 0644]
src/test/conf_examples/pt_04/expected_log_no_dirauth_relay [new file with mode: 0644]
src/test/conf_examples/pt_04/expected_no_dirauth_relay [new file with mode: 0644]
src/test/conf_examples/pt_05/expected_log [new file with mode: 0644]
src/test/conf_examples/pt_06/expected_log [new file with mode: 0644]
src/test/conf_examples/pt_06/expected_log_no_dirauth_relay [new file with mode: 0644]
src/test/conf_examples/pt_06/expected_no_dirauth_relay [new file with mode: 0644]
src/test/conf_examples/pt_07/expected_log [new file with mode: 0644]
src/test/conf_examples/pt_08/expected_log_no_dirauth_relay [new file with mode: 0644]
src/test/conf_examples/relay_01/expected_log [new file with mode: 0644]
src/test/conf_examples/relay_03/expected_log [new file with mode: 0644]
src/test/conf_examples/relay_04/expected_log [new file with mode: 0644]
src/test/conf_examples/relay_05/expected_log [new file with mode: 0644]
src/test/conf_examples/relay_06/expected_log [new file with mode: 0644]
src/test/conf_examples/relay_07/expected_log [new file with mode: 0644]
src/test/conf_examples/relay_08/expected_log [new file with mode: 0644]
src/test/conf_examples/relay_09/expected_log [new file with mode: 0644]
src/test/conf_examples/relay_10/expected_log [new file with mode: 0644]
src/test/conf_examples/relay_14/expected_log [new file with mode: 0644]
src/test/conf_examples/relay_17/expected_log [new file with mode: 0644]
src/test/conf_examples/relay_19/expected_log [new file with mode: 0644]
src/test/conf_examples/relay_21/expected_log [new file with mode: 0644]
src/test/conf_examples/relay_29/expected_log [new file with mode: 0644]

diff --git a/src/test/conf_examples/badnick_1/expected_log_no_dirauth_relay b/src/test/conf_examples/badnick_1/expected_log_no_dirauth_relay
new file mode 100644 (file)
index 0000000..9190a33
--- /dev/null
@@ -0,0 +1 @@
+Read configuration file .*badnick_1[./]*torrc
diff --git a/src/test/conf_examples/badnick_2/expected_log_no_dirauth_relay b/src/test/conf_examples/badnick_2/expected_log_no_dirauth_relay
new file mode 100644 (file)
index 0000000..a15c7b0
--- /dev/null
@@ -0,0 +1 @@
+Read configuration file .*badnick_2[./]*torrc
diff --git a/src/test/conf_examples/bridgeauth_1/expected_log b/src/test/conf_examples/bridgeauth_1/expected_log
new file mode 100644 (file)
index 0000000..cabe9d3
--- /dev/null
@@ -0,0 +1 @@
+Read configuration file .*bridgeauth_1[./]*torrc
diff --git a/src/test/conf_examples/contactinfo_notutf8/expected_log_no_dirauth_relay b/src/test/conf_examples/contactinfo_notutf8/expected_log_no_dirauth_relay
new file mode 100644 (file)
index 0000000..caa07ac
--- /dev/null
@@ -0,0 +1 @@
+Read configuration file .*contactinfo_notutf8[./]*torrc
diff --git a/src/test/conf_examples/crypto_accel/expected_log b/src/test/conf_examples/crypto_accel/expected_log
new file mode 100644 (file)
index 0000000..7fab0c8
--- /dev/null
@@ -0,0 +1 @@
+Unable to load dynamic OpenSSL engine "nonexistent_chartreuse_accelerator"
diff --git a/src/test/conf_examples/crypto_accel/expected_nss b/src/test/conf_examples/crypto_accel/expected_nss
new file mode 100644 (file)
index 0000000..ea80ca1
--- /dev/null
@@ -0,0 +1,2 @@
+AccelName nonexistent_chartreuse_accelerator
+HardwareAccel 1
diff --git a/src/test/conf_examples/crypto_accel_req/expected_log_nss b/src/test/conf_examples/crypto_accel_req/expected_log_nss
new file mode 100644 (file)
index 0000000..c0fe7b0
--- /dev/null
@@ -0,0 +1 @@
+Tor 0.* running on .* with Libevent .*, NSS .*, Zlib .*, Liblzma .*, and Libzstd .*
diff --git a/src/test/conf_examples/dirauth_1/expected_log b/src/test/conf_examples/dirauth_1/expected_log
new file mode 100644 (file)
index 0000000..b788be2
--- /dev/null
@@ -0,0 +1 @@
+Read configuration file .*dirauth_1[./]*torrc
diff --git a/src/test/conf_examples/empty_1/expected_log b/src/test/conf_examples/empty_1/expected_log
new file mode 100644 (file)
index 0000000..4c6b000
--- /dev/null
@@ -0,0 +1 @@
+Read configuration file .*empty_1[./]*torrc
diff --git a/src/test/conf_examples/empty_2/expected_log b/src/test/conf_examples/empty_2/expected_log
new file mode 100644 (file)
index 0000000..9c846a0
--- /dev/null
@@ -0,0 +1 @@
+Read configuration file .*empty_2[./]*torrc\.defaults
diff --git a/src/test/conf_examples/empty_3/expected_log b/src/test/conf_examples/empty_3/expected_log
new file mode 100644 (file)
index 0000000..a42514f
--- /dev/null
@@ -0,0 +1 @@
+Included configuration .*directory at recursion level 1.*included
diff --git a/src/test/conf_examples/example_1/expected_log b/src/test/conf_examples/example_1/expected_log
new file mode 100644 (file)
index 0000000..8f83eec
--- /dev/null
@@ -0,0 +1 @@
+Read configuration file .*example_1[./]*torrc
diff --git a/src/test/conf_examples/example_3/expected_log b/src/test/conf_examples/example_3/expected_log
new file mode 100644 (file)
index 0000000..807f9c2
--- /dev/null
@@ -0,0 +1 @@
+Read configuration file .*example_3[./]*torrc
diff --git a/src/test/conf_examples/include_1/expected_log b/src/test/conf_examples/include_1/expected_log
new file mode 100644 (file)
index 0000000..f95cad0
--- /dev/null
@@ -0,0 +1 @@
+Included configuration file .*at recursion level 2.*nested\.inc
diff --git a/src/test/conf_examples/include_bug_31408/expected_log b/src/test/conf_examples/include_bug_31408/expected_log
new file mode 100644 (file)
index 0000000..a42514f
--- /dev/null
@@ -0,0 +1 @@
+Included configuration .*directory at recursion level 1.*included
diff --git a/src/test/conf_examples/large_1/expected_log b/src/test/conf_examples/large_1/expected_log
new file mode 100644 (file)
index 0000000..21248bb
--- /dev/null
@@ -0,0 +1 @@
+Your log may contain sensitive information
diff --git a/src/test/conf_examples/lzma_zstd_1/expected b/src/test/conf_examples/lzma_zstd_1/expected
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/src/test/conf_examples/lzma_zstd_1/expected_lzma b/src/test/conf_examples/lzma_zstd_1/expected_lzma
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/src/test/conf_examples/lzma_zstd_1/expected_lzma_zstd b/src/test/conf_examples/lzma_zstd_1/expected_lzma_zstd
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/src/test/conf_examples/lzma_zstd_1/expected_zstd b/src/test/conf_examples/lzma_zstd_1/expected_zstd
new file mode 100644 (file)
index 0000000..e69de29
index 91a4656b7777717e6ecd409c73e2bab263b037a2..f873d7902878631802dd71ad64ea098bf52af2ad 100644 (file)
@@ -1,4 +1 @@
-# Deliberately bad options, to cause an error message
-# But this test actually checks for the optional library list in tor's logs,
-# not the error message
-bad bad bad
\ No newline at end of file
+# This test checks for the optional library list in tor's logs
diff --git a/src/test/conf_examples/nss_1/expected b/src/test/conf_examples/nss_1/expected
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/src/test/conf_examples/nss_1/expected_log_nss b/src/test/conf_examples/nss_1/expected_log_nss
new file mode 100644 (file)
index 0000000..c0fe7b0
--- /dev/null
@@ -0,0 +1 @@
+Tor 0.* running on .* with Libevent .*, NSS .*, Zlib .*, Liblzma .*, and Libzstd .*
diff --git a/src/test/conf_examples/nss_1/expected_nss b/src/test/conf_examples/nss_1/expected_nss
new file mode 100644 (file)
index 0000000..e69de29
index 91a4656b7777717e6ecd409c73e2bab263b037a2..f873d7902878631802dd71ad64ea098bf52af2ad 100644 (file)
@@ -1,4 +1 @@
-# Deliberately bad options, to cause an error message
-# But this test actually checks for the optional library list in tor's logs,
-# not the error message
-bad bad bad
\ No newline at end of file
+# This test checks for the optional library list in tor's logs
diff --git a/src/test/conf_examples/obsolete_1/expected_log b/src/test/conf_examples/obsolete_1/expected_log
new file mode 100644 (file)
index 0000000..52f6f70
--- /dev/null
@@ -0,0 +1 @@
+Skipping obsolete configuration option
index 3cd9a6d777d98dcbdc9feacd83f63d6d7f030fa0..e711fe4065198c009de1c5e408484b463da6a32b 100644 (file)
@@ -1,68 +1,70 @@
 # These options are obsolete as of 0.4.2
-AllowDotExit
-AllowInvalidNodes
-AllowSingleHopCircuits
-AllowSingleHopExits
-AlternateHSAuthority
-AuthDirBadDir
-AuthDirBadDirCCs
-AuthDirRejectUnlisted
-AuthDirListBadDirs
-AuthDirMaxServersPerAuthAddr
-CircuitIdleTimeout
-ControlListenAddress
-DirListenAddress
-DisableIOCP
-DisableV2DirectoryInfo_
-DynamicDHGroups
-DNSListenAddress
-TestingEnableTbEmptyEvent
-ExcludeSingleHopRelays
-FallbackNetworkstatusFile
-FastFirstHopPK
-FetchV2Networkstatus
-Group
-HidServDirectoryV2
-CloseHSClientCircuitsImmediatelyOnTimeout
-CloseHSServiceRendCircuitsImmediatelyOnTimeout
-MaxOnionsPending
-NamingAuthoritativeDirectory
-NATDListenAddress
-PredictedPortsRelevanceTime
-WarnUnsafeSocks
-ORListenAddress
-PathBiasDisableRate
-PathBiasScaleFactor
-PathBiasMultFactor
-PathBiasUseCloseCounts
-PortForwarding
-PortForwardingHelper
-PreferTunneledDirConns
-RecommendedPackages
-RunTesting
-SchedulerLowWaterMark__
-SchedulerHighWaterMark__
-SchedulerMaxFlushCells__
-SocksListenAddress
-StrictEntryNodes
-StrictExitNodes
-Support022HiddenServices
-Tor2webMode
-Tor2webRendezvousPoints
-TLSECGroup
-TransListenAddress
-TunnelDirConns
-UseEntryGuardsAsDirGuards
-UseNTorHandshake
-UserspaceIOCPBuffers
-V1AuthoritativeDirectory
-V2AuthoritativeDirectory
-VoteOnHidServDirectoriesV2
-UseFilteringSSLBufferevents
-__UseFilteringSSLBufferevents
-TestingConsensusMaxDownloadTries
-ClientBootstrapConsensusMaxDownloadTries
-ClientBootstrapConsensusAuthorityOnlyMaxDownloadTries
-TestingDescriptorMaxDownloadTries
-TestingMicrodescMaxDownloadTries
-TestingCertMaxDownloadTries
+# Obsolete options without arguments, or with an empty argument,
+# are silently ignored. So we give each one of these options an argument.
+AllowDotExit 1
+AllowInvalidNodes 1
+AllowSingleHopCircuits 1
+AllowSingleHopExits 1
+AlternateHSAuthority 1
+AuthDirBadDir 1
+AuthDirBadDirCCs 1
+AuthDirRejectUnlisted 1
+AuthDirListBadDirs 1
+AuthDirMaxServersPerAuthAddr 1
+CircuitIdleTimeout 1
+ControlListenAddress 1
+DirListenAddress 1
+DisableIOCP 1
+DisableV2DirectoryInfo_ 1
+DynamicDHGroups 1
+DNSListenAddress 1
+TestingEnableTbEmptyEvent 1
+ExcludeSingleHopRelays 1
+FallbackNetworkstatusFile 1
+FastFirstHopPK 1
+FetchV2Networkstatus 1
+Group 1
+HidServDirectoryV2 1
+CloseHSClientCircuitsImmediatelyOnTimeout 1
+CloseHSServiceRendCircuitsImmediatelyOnTimeout 1
+MaxOnionsPending 1
+NamingAuthoritativeDirectory 1
+NATDListenAddress 1
+PredictedPortsRelevanceTime 1
+WarnUnsafeSocks 1
+ORListenAddress 1
+PathBiasDisableRate 1
+PathBiasScaleFactor 1
+PathBiasMultFactor 1
+PathBiasUseCloseCounts 1
+PortForwarding 1
+PortForwardingHelper 1
+PreferTunneledDirConns 1
+RecommendedPackages 1
+RunTesting 1
+SchedulerLowWaterMark__ 1
+SchedulerHighWaterMark__ 1
+SchedulerMaxFlushCells__ 1
+SocksListenAddress 1
+StrictEntryNodes 1
+StrictExitNodes 1
+Support022HiddenServices 1
+Tor2webMode 1
+Tor2webRendezvousPoints 1
+TLSECGroup 1
+TransListenAddress 1
+TunnelDirConns 1
+UseEntryGuardsAsDirGuards 1
+UseNTorHandshake 1
+UserspaceIOCPBuffers 1
+V1AuthoritativeDirectory 1
+V2AuthoritativeDirectory 1
+VoteOnHidServDirectoriesV2 1
+UseFilteringSSLBufferevents 1
+__UseFilteringSSLBufferevents 1
+TestingConsensusMaxDownloadTries 1
+ClientBootstrapConsensusMaxDownloadTries 1
+ClientBootstrapConsensusAuthorityOnlyMaxDownloadTries 1
+TestingDescriptorMaxDownloadTries 1
+TestingMicrodescMaxDownloadTries 1
+TestingCertMaxDownloadTries 1
diff --git a/src/test/conf_examples/obsolete_2/expected_log b/src/test/conf_examples/obsolete_2/expected_log
new file mode 100644 (file)
index 0000000..2160355
--- /dev/null
@@ -0,0 +1 @@
+Read configuration file .*obsolete_2[./]*torrc
index 4f78d47625cb29beeb4b68e0a78b6f24637af03f..b83e7a73691f6468691e2c66868d04bcfbfc960f 100644 (file)
@@ -1,2 +1,5 @@
 # This option has been obsolete for some time
+# Obsolete options without arguments, or with an empty argument,
+# are silently ignored.
 AllowDotExit
+AllowInvalidNodes ""
diff --git a/src/test/conf_examples/obsolete_3/expected b/src/test/conf_examples/obsolete_3/expected
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/src/test/conf_examples/obsolete_3/expected_log b/src/test/conf_examples/obsolete_3/expected_log
new file mode 100644 (file)
index 0000000..82d76ec
--- /dev/null
@@ -0,0 +1 @@
+Skipping obsolete configuration option "AllowDotExit"
diff --git a/src/test/conf_examples/obsolete_3/torrc b/src/test/conf_examples/obsolete_3/torrc
new file mode 100644 (file)
index 0000000..e0efe75
--- /dev/null
@@ -0,0 +1,4 @@
+# This option has been obsolete for some time
+# Obsolete options without arguments, or with an empty argument,
+# are silently ignored. So we give this option an argument.
+AllowDotExit 1
diff --git a/src/test/conf_examples/ops_1/expected_log b/src/test/conf_examples/ops_1/expected_log
new file mode 100644 (file)
index 0000000..b785d7f
--- /dev/null
@@ -0,0 +1 @@
+Read configuration file .*ops_1[./]*torrc
diff --git a/src/test/conf_examples/ops_2/expected_log b/src/test/conf_examples/ops_2/expected_log
new file mode 100644 (file)
index 0000000..17fbc3f
--- /dev/null
@@ -0,0 +1 @@
+Read configuration file .*ops_2[./]*torrc
diff --git a/src/test/conf_examples/ops_3/expected_log b/src/test/conf_examples/ops_3/expected_log
new file mode 100644 (file)
index 0000000..151498f
--- /dev/null
@@ -0,0 +1 @@
+Read configuration file .*ops_3[./]*torrc
diff --git a/src/test/conf_examples/ops_4/expected_log b/src/test/conf_examples/ops_4/expected_log
new file mode 100644 (file)
index 0000000..7632b22
--- /dev/null
@@ -0,0 +1 @@
+Read configuration file .*ops_4[./]*torrc\.defaults
diff --git a/src/test/conf_examples/ops_5/expected_log b/src/test/conf_examples/ops_5/expected_log
new file mode 100644 (file)
index 0000000..ec63cb0
--- /dev/null
@@ -0,0 +1 @@
+Read configuration file .*ops_5[./]*torrc\.defaults
diff --git a/src/test/conf_examples/ops_6/expected_log b/src/test/conf_examples/ops_6/expected_log
new file mode 100644 (file)
index 0000000..f9b1ca0
--- /dev/null
@@ -0,0 +1 @@
+Read configuration file .*ops_6[./]*torrc\.defaults
diff --git a/src/test/conf_examples/pt_01/expected_log b/src/test/conf_examples/pt_01/expected_log
new file mode 100644 (file)
index 0000000..65bfa7a
--- /dev/null
@@ -0,0 +1 @@
+Linelist option 'ExtORPort' has no value\. Skipping
diff --git a/src/test/conf_examples/pt_02/expected_log_no_dirauth_relay b/src/test/conf_examples/pt_02/expected_log_no_dirauth_relay
new file mode 100644 (file)
index 0000000..0e48dca
--- /dev/null
@@ -0,0 +1 @@
+Read configuration file .*pt_02[./]*torrc
diff --git a/src/test/conf_examples/pt_03/expected_log b/src/test/conf_examples/pt_03/expected_log
new file mode 100644 (file)
index 0000000..285a189
--- /dev/null
@@ -0,0 +1 @@
+We use pluggable transports but the Extended ORPort is disabled
diff --git a/src/test/conf_examples/pt_03/expected_log_no_dirauth_relay b/src/test/conf_examples/pt_03/expected_log_no_dirauth_relay
new file mode 100644 (file)
index 0000000..88f4e5b
--- /dev/null
@@ -0,0 +1 @@
+Read configuration file .*pt_03[./]*torrc
diff --git a/src/test/conf_examples/pt_03/expected_no_dirauth_relay b/src/test/conf_examples/pt_03/expected_no_dirauth_relay
new file mode 100644 (file)
index 0000000..f849f2a
--- /dev/null
@@ -0,0 +1 @@
+ServerTransportPlugin bad3 exec /
diff --git a/src/test/conf_examples/pt_04/expected_log b/src/test/conf_examples/pt_04/expected_log
new file mode 100644 (file)
index 0000000..5b3ab51
--- /dev/null
@@ -0,0 +1 @@
+Tor is not configured as a relay but you specified a ServerTransportPlugin line.*The ServerTransportPlugin line will be ignored
diff --git a/src/test/conf_examples/pt_04/expected_log_no_dirauth_relay b/src/test/conf_examples/pt_04/expected_log_no_dirauth_relay
new file mode 100644 (file)
index 0000000..2b989bf
--- /dev/null
@@ -0,0 +1 @@
+Read configuration file .*pt_04[./]*torrc
diff --git a/src/test/conf_examples/pt_04/expected_no_dirauth_relay b/src/test/conf_examples/pt_04/expected_no_dirauth_relay
new file mode 100644 (file)
index 0000000..9087f60
--- /dev/null
@@ -0,0 +1,3 @@
+ExtORPortCookieAuthFile /
+ExtORPort 1
+ServerTransportPlugin bad3 exec /
diff --git a/src/test/conf_examples/pt_05/expected_log b/src/test/conf_examples/pt_05/expected_log
new file mode 100644 (file)
index 0000000..c05a093
--- /dev/null
@@ -0,0 +1 @@
+Your ContactInfo config option is not set
diff --git a/src/test/conf_examples/pt_06/expected_log b/src/test/conf_examples/pt_06/expected_log
new file mode 100644 (file)
index 0000000..5b3ab51
--- /dev/null
@@ -0,0 +1 @@
+Tor is not configured as a relay but you specified a ServerTransportPlugin line.*The ServerTransportPlugin line will be ignored
diff --git a/src/test/conf_examples/pt_06/expected_log_no_dirauth_relay b/src/test/conf_examples/pt_06/expected_log_no_dirauth_relay
new file mode 100644 (file)
index 0000000..f35a380
--- /dev/null
@@ -0,0 +1 @@
+Read configuration file .*pt_06[./]*torrc
diff --git a/src/test/conf_examples/pt_06/expected_no_dirauth_relay b/src/test/conf_examples/pt_06/expected_no_dirauth_relay
new file mode 100644 (file)
index 0000000..d5788b9
--- /dev/null
@@ -0,0 +1,6 @@
+ExtORPortCookieAuthFile /
+ExtORPortCookieAuthFileGroupReadable 1
+ExtORPort 1
+ServerTransportListenAddr bad3 127.0.0.1:2
+ServerTransportOptions bad3 a=b
+ServerTransportPlugin bad3 exec /
diff --git a/src/test/conf_examples/pt_07/expected_log b/src/test/conf_examples/pt_07/expected_log
new file mode 100644 (file)
index 0000000..5afaf02
--- /dev/null
@@ -0,0 +1 @@
+You specified a public address .* for ExtORPort
diff --git a/src/test/conf_examples/pt_08/expected_log_no_dirauth_relay b/src/test/conf_examples/pt_08/expected_log_no_dirauth_relay
new file mode 100644 (file)
index 0000000..79dcbc1
--- /dev/null
@@ -0,0 +1 @@
+Read configuration file .*pt_08[./]*torrc
diff --git a/src/test/conf_examples/relay_01/expected_log b/src/test/conf_examples/relay_01/expected_log
new file mode 100644 (file)
index 0000000..32e8c99
--- /dev/null
@@ -0,0 +1 @@
+Linelist option 'ORPort' has no value\. Skipping
diff --git a/src/test/conf_examples/relay_03/expected_log b/src/test/conf_examples/relay_03/expected_log
new file mode 100644 (file)
index 0000000..46ab723
--- /dev/null
@@ -0,0 +1 @@
+Read configuration file .*relay_03[./]*torrc
diff --git a/src/test/conf_examples/relay_04/expected_log b/src/test/conf_examples/relay_04/expected_log
new file mode 100644 (file)
index 0000000..c05a093
--- /dev/null
@@ -0,0 +1 @@
+Your ContactInfo config option is not set
diff --git a/src/test/conf_examples/relay_05/expected_log b/src/test/conf_examples/relay_05/expected_log
new file mode 100644 (file)
index 0000000..483c2e2
--- /dev/null
@@ -0,0 +1 @@
+Read configuration file .*relay_05[./]*torrc
diff --git a/src/test/conf_examples/relay_06/expected_log b/src/test/conf_examples/relay_06/expected_log
new file mode 100644 (file)
index 0000000..70eb18d
--- /dev/null
@@ -0,0 +1 @@
+Read configuration file .*relay_06[./]*torrc
diff --git a/src/test/conf_examples/relay_07/expected_log b/src/test/conf_examples/relay_07/expected_log
new file mode 100644 (file)
index 0000000..14729a7
--- /dev/null
@@ -0,0 +1 @@
+DirCache is disabled and we are configured as a relay
diff --git a/src/test/conf_examples/relay_08/expected_log b/src/test/conf_examples/relay_08/expected_log
new file mode 100644 (file)
index 0000000..b0168c8
--- /dev/null
@@ -0,0 +1 @@
+Read configuration file .*relay_08[./]*torrc
diff --git a/src/test/conf_examples/relay_09/expected_log b/src/test/conf_examples/relay_09/expected_log
new file mode 100644 (file)
index 0000000..d3ab4f6
--- /dev/null
@@ -0,0 +1 @@
+By default, Tor does not run as an exit relay
diff --git a/src/test/conf_examples/relay_10/expected_log b/src/test/conf_examples/relay_10/expected_log
new file mode 100644 (file)
index 0000000..5b81a90
--- /dev/null
@@ -0,0 +1 @@
+Can't set a DirPort on a bridge relay
diff --git a/src/test/conf_examples/relay_14/expected_log b/src/test/conf_examples/relay_14/expected_log
new file mode 100644 (file)
index 0000000..9b0c820
--- /dev/null
@@ -0,0 +1 @@
+Read configuration file .*relay_14[./]*torrc
diff --git a/src/test/conf_examples/relay_17/expected_log b/src/test/conf_examples/relay_17/expected_log
new file mode 100644 (file)
index 0000000..7711f90
--- /dev/null
@@ -0,0 +1 @@
+You have set AccountingMax to use hibernation
diff --git a/src/test/conf_examples/relay_19/expected_log b/src/test/conf_examples/relay_19/expected_log
new file mode 100644 (file)
index 0000000..17656ba
--- /dev/null
@@ -0,0 +1 @@
+Read configuration file .*relay_19[./]*torrc
diff --git a/src/test/conf_examples/relay_21/expected_log b/src/test/conf_examples/relay_21/expected_log
new file mode 100644 (file)
index 0000000..ba0d56f
--- /dev/null
@@ -0,0 +1 @@
+PublishServerDescriptor v1 has no effect
diff --git a/src/test/conf_examples/relay_29/expected_log b/src/test/conf_examples/relay_29/expected_log
new file mode 100644 (file)
index 0000000..f46c609
--- /dev/null
@@ -0,0 +1 @@
+Linelist option 'MyFamily' has no value\. Skipping