diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2009-03-19 13:58:39 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2009-03-19 13:58:39 +0100 |
commit | 935018ed625bc4cf1d6b28fa16e0986078029aaf (patch) | |
tree | 90af715a240b1ec3642ebca62e2d74216d7d5f34 /tests/1.rstest | |
parent | 208f4e107c78b00c3bdf09301d1b1e43e1b9fdf8 (diff) | |
download | rsyslog-935018ed625bc4cf1d6b28fa16e0986078029aaf.tar.gz rsyslog-935018ed625bc4cf1d6b28fa16e0986078029aaf.tar.xz rsyslog-935018ed625bc4cf1d6b28fa16e0986078029aaf.zip |
adapted test framework to new script engine
Diffstat (limited to 'tests/1.rstest')
-rw-r--r-- | tests/1.rstest | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/tests/1.rstest b/tests/1.rstest index 5c152589..4716e8b3 100644 --- a/tests/1.rstest +++ b/tests/1.rstest @@ -4,23 +4,23 @@ in: 'test 1' <> $var or /* some comment */($SEVERITY == -4 +5 -(3 * - 2) and $fromhost == '127.0.0.1') then $$$ out: -00000000: PUSHCONSTANT test 1[cstr] -00000001: PUSHMSGVAR var[cstr] -00000002: != -00000003: PUSHMSGVAR severity[cstr] -00000004: PUSHCONSTANT 4[nbr] -00000005: UNARY_MINUS -00000006: PUSHCONSTANT 5[nbr] -00000007: + -00000008: PUSHCONSTANT 3[nbr] -00000009: PUSHCONSTANT 2[nbr] -00000010: UNARY_MINUS -00000011: * -00000012: - -00000013: == -00000014: PUSHMSGVAR fromhost[cstr] -00000015: PUSHCONSTANT 127.0.0.1[cstr] -00000016: == +00000000: push_const test 1[cstr] +00000001: push_msgvar var[cstr] +00000002: cmp_!= +00000003: push_msgvar severity[cstr] +00000004: push_const 4[nbr] +00000005: unary_minus +00000006: push_const 5[nbr] +00000007: add +00000008: push_const 3[nbr] +00000009: push_const 2[nbr] +00000010: unary_minus +00000011: mul +00000012: sub +00000013: cmp_== +00000014: push_msgvar fromhost[cstr] +00000015: push_const 127.0.0.1[cstr] +00000016: cmp_== 00000017: and 00000018: or $$$ |