diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2009-04-03 18:20:52 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2009-04-03 18:20:52 +0200 |
commit | 04b06af335bedcb651ccffd852863b7d17bf20dc (patch) | |
tree | 420db042ae322b6c0b29b3e6b25398e78531e0cb /tests/testsuites | |
parent | ce6b7e86cdd63ba1540d20aa22403d2b13d2e59f (diff) | |
download | rsyslog-04b06af335bedcb651ccffd852863b7d17bf20dc.tar.gz rsyslog-04b06af335bedcb651ccffd852863b7d17bf20dc.tar.xz rsyslog-04b06af335bedcb651ccffd852863b7d17bf20dc.zip |
improved parser test suite
new tests added, now much better
Diffstat (limited to 'tests/testsuites')
-rw-r--r-- | tests/testsuites/2.parse1 | 3 | ||||
-rw-r--r-- | tests/testsuites/date1.parse1 | 3 | ||||
-rw-r--r-- | tests/testsuites/date2.parse1 | 3 | ||||
-rw-r--r-- | tests/testsuites/date3.parse1 | 3 | ||||
-rw-r--r-- | tests/testsuites/date4.parse1 | 3 | ||||
-rw-r--r-- | tests/testsuites/date5.parse1 | 3 |
6 files changed, 18 insertions, 0 deletions
diff --git a/tests/testsuites/2.parse1 b/tests/testsuites/2.parse1 new file mode 100644 index 00000000..628e06df --- /dev/null +++ b/tests/testsuites/2.parse1 @@ -0,0 +1,3 @@ +<38>Mar 27 19:06:53 source_server sshd(pam_unix)[12750]: session opened for user foo by (uid=0) +38,auth,info,Mar 27 19:06:53,source_server,sshd(pam_unix),sshd(pam_unix)[12750]:, session opened for user foo by (uid=0) +# yet another real-life sample where we had some issues with diff --git a/tests/testsuites/date1.parse1 b/tests/testsuites/date1.parse1 new file mode 100644 index 00000000..ffc7c373 --- /dev/null +++ b/tests/testsuites/date1.parse1 @@ -0,0 +1,3 @@ +<38> Mar 7 19:06:53 example tag: testmessage (only date actually tested) +38,auth,info,Mar 7 19:06:53,example,tag,tag:, testmessage (only date actually tested) +# one space in front of the date diff --git a/tests/testsuites/date2.parse1 b/tests/testsuites/date2.parse1 new file mode 100644 index 00000000..8d587d9d --- /dev/null +++ b/tests/testsuites/date2.parse1 @@ -0,0 +1,3 @@ +<38>Mar 7 19:06:53 example tag: testmessage (only date actually tested) +38,auth,info,Mar 7 19:06:53,example,tag,tag:, testmessage (only date actually tested) +# only one space between "Mar" and "7" diff --git a/tests/testsuites/date3.parse1 b/tests/testsuites/date3.parse1 new file mode 100644 index 00000000..940d261e --- /dev/null +++ b/tests/testsuites/date3.parse1 @@ -0,0 +1,3 @@ +<38>Mar 7 2008 19:06:53: example tag: testmessage (only date actually tested) +38,auth,info,Mar 7 19:06:53,example,tag,tag:, testmessage (only date actually tested) +# the year should not be there, nor the colon after the date, but we accept it... diff --git a/tests/testsuites/date4.parse1 b/tests/testsuites/date4.parse1 new file mode 100644 index 00000000..eee5fb09 --- /dev/null +++ b/tests/testsuites/date4.parse1 @@ -0,0 +1,3 @@ +<38>Mar 7 2008 19:06:53 example tag: testmessage (only date actually tested) +38,auth,info,Mar 7 19:06:53,example,tag,tag:, testmessage (only date actually tested) +# the year should not be there, but we accept it... diff --git a/tests/testsuites/date5.parse1 b/tests/testsuites/date5.parse1 new file mode 100644 index 00000000..be32e605 --- /dev/null +++ b/tests/testsuites/date5.parse1 @@ -0,0 +1,3 @@ +<38>Mar 7 19:06:53: example tag: testmessage (only date actually tested) +38,auth,info,Mar 7 19:06:53,example,tag,tag:, testmessage (only date actually tested) +# colon after timestamp is strictly not ok, but we accept it |