diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-07-07 12:04:33 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-07-07 12:04:33 +0200 |
commit | 493d6a799be82a2df652b666d541a5e004ebcc76 (patch) | |
tree | 4d745d49abbde25f95cda0a7ebb59e81aabf7477 /tests/2.rstest | |
parent | 37fd063042821dc328c88e1f7366543decdcb76f (diff) | |
download | rsyslog-493d6a799be82a2df652b666d541a5e004ebcc76.tar.gz rsyslog-493d6a799be82a2df652b666d541a5e004ebcc76.tar.xz rsyslog-493d6a799be82a2df652b666d541a5e004ebcc76.zip |
changed RainerScript testbench to a full-blow test suite
it now works based on test case files, which enable to quickly
generate test cases.
Diffstat (limited to 'tests/2.rstest')
-rw-r--r-- | tests/2.rstest | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/2.rstest b/tests/2.rstest new file mode 100644 index 00000000..7fb5b799 --- /dev/null +++ b/tests/2.rstest @@ -0,0 +1,10 @@ +# a simple RainerScript test +result: 0 +in: +$msg contains 'test' then +$$$ +out: +00000000: PUSHMSGVAR msg[cstr] +00000001: PUSHCONSTANT test[cstr] +00000002: contains +$$$ |