diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-09-13 17:10:15 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-09-14 19:00:41 -0400 |
commit | 617679df420234019f1395d61f051a6521eb4062 (patch) | |
tree | b010f5778b0c0b9df4f1b905c6670be12d56c300 | |
parent | 80e858e3e63aa4141415cb177551893fb91b75df (diff) | |
download | tor-617679df420234019f1395d61f051a6521eb4062.tar.gz tor-617679df420234019f1395d61f051a6521eb4062.zip |
Add a few error test cases
-rw-r--r-- | src/test/conf_examples/badnick_1/error | 1 | ||||
-rw-r--r-- | src/test/conf_examples/badnick_1/torrc | 2 | ||||
-rw-r--r-- | src/test/conf_examples/badnick_2/error | 1 | ||||
-rw-r--r-- | src/test/conf_examples/badnick_2/torrc | 2 | ||||
-rw-r--r-- | src/test/conf_examples/contactinfo_notutf8/error | 1 | ||||
-rw-r--r-- | src/test/conf_examples/contactinfo_notutf8/torrc | 1 | ||||
-rw-r--r-- | src/test/conf_examples/relpath_rad/error | 1 | ||||
-rw-r--r-- | src/test/conf_examples/relpath_rad/torrc | 4 |
8 files changed, 13 insertions, 0 deletions
diff --git a/src/test/conf_examples/badnick_1/error b/src/test/conf_examples/badnick_1/error new file mode 100644 index 0000000000..3e92ddc832 --- /dev/null +++ b/src/test/conf_examples/badnick_1/error @@ -0,0 +1 @@ +nicknames must be between 1 and 19 characters inclusive diff --git a/src/test/conf_examples/badnick_1/torrc b/src/test/conf_examples/badnick_1/torrc new file mode 100644 index 0000000000..41ee4894f1 --- /dev/null +++ b/src/test/conf_examples/badnick_1/torrc @@ -0,0 +1,2 @@ +# This nickname is too long; we won't accept it. +Nickname TooManyCharactersInThisNickname diff --git a/src/test/conf_examples/badnick_2/error b/src/test/conf_examples/badnick_2/error new file mode 100644 index 0000000000..ceac99f012 --- /dev/null +++ b/src/test/conf_examples/badnick_2/error @@ -0,0 +1 @@ +must contain only the characters \[a-zA-Z0-9\] diff --git a/src/test/conf_examples/badnick_2/torrc b/src/test/conf_examples/badnick_2/torrc new file mode 100644 index 0000000000..07acc61698 --- /dev/null +++ b/src/test/conf_examples/badnick_2/torrc @@ -0,0 +1,2 @@ +# this nickname has spaces in it and won't work. +Nickname has a space diff --git a/src/test/conf_examples/contactinfo_notutf8/error b/src/test/conf_examples/contactinfo_notutf8/error new file mode 100644 index 0000000000..6d165152ce --- /dev/null +++ b/src/test/conf_examples/contactinfo_notutf8/error @@ -0,0 +1 @@ +ContactInfo config option must be UTF-8 diff --git a/src/test/conf_examples/contactinfo_notutf8/torrc b/src/test/conf_examples/contactinfo_notutf8/torrc new file mode 100644 index 0000000000..2ee4d093c5 --- /dev/null +++ b/src/test/conf_examples/contactinfo_notutf8/torrc @@ -0,0 +1 @@ +ContactInfo ÄëÄëÄë@example.com diff --git a/src/test/conf_examples/relpath_rad/error b/src/test/conf_examples/relpath_rad/error new file mode 100644 index 0000000000..e131744475 --- /dev/null +++ b/src/test/conf_examples/relpath_rad/error @@ -0,0 +1 @@ +RunAsDaemon is not compatible with relative paths. diff --git a/src/test/conf_examples/relpath_rad/torrc b/src/test/conf_examples/relpath_rad/torrc new file mode 100644 index 0000000000..fe02441c3f --- /dev/null +++ b/src/test/conf_examples/relpath_rad/torrc @@ -0,0 +1,4 @@ + +# Relative-path data directories are incompatible with RunAsDaemon +DataDirectory ./datadir +RunAsDaemon 1 |