From 42ed39da5af85552a35626348bb77e5576e18aa4 Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Sun, 6 Mar 2022 14:25:13 +0000 Subject: Utilities: fix exiqgrep perl syntax, add testcases. Bug 2821 Broken-by: df618101a5 --- test/stdout/0611 | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 test/stdout/0611 (limited to 'test/stdout') diff --git a/test/stdout/0611 b/test/stdout/0611 new file mode 100644 index 000000000..11867c03a --- /dev/null +++ b/test/stdout/0611 @@ -0,0 +1,62 @@ +Exim message queue display utility. + + -h This help message. + -C Specify which exim.conf to use. + -E Specify exim binary to use. + +Selection criteria: + -f Match sender address sender (field is "< >" wrapped) + -r Match recipient address + -s Match against the size field from long output + -y Message younger than + -o Message older than + -z Frozen messages only (exclude non-frozen) + -x Non-frozen messages only (exclude frozen) + -G Match in given queue only + +[ NB: for regexps, provided string sits in // ] + +Display options: + -c Display match count + -l Long Format [Default] + -i Message IDs only + -b Brief Format + -R Reverse order + -a All recipients (including delivered) +exiqgrep exit code = 0 + 0m sss 10HmaX-0005vi-00 + a@test.ex + b@test.ex + c@test.ex + +exiqgrep exit code = 0 +Exim message queue display utility. + + -h This help message. + -C Specify which exim.conf to use. + -E Specify exim binary to use. + +Selection criteria: + -f Match sender address sender (field is "< >" wrapped) + -r Match recipient address + -s Match against the size field from long output + -y Message younger than + -o Message older than + -z Frozen messages only (exclude non-frozen) + -x Non-frozen messages only (exclude frozen) + -G Match in given queue only + +[ NB: for regexps, provided string sits in // ] + +Display options: + -c Display match count + -l Long Format [Default] + -i Message IDs only + -b Brief Format + -R Reverse order + -a All recipients (including delivered) +exiqgrep exit code = 1 +1 matches out of 1 messages +exiqgrep exit code = 0 +1 matches out of 1 messages +exiqgrep exit code = 0 -- cgit v1.2.3