From: Jason Ish Date: Tue, 18 Feb 2020 17:29:57 +0000 (-0600) Subject: readme: document shell checks X-Git-Tag: suricata-6.0.4~352 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9bccf0aed7a75b72716429dad4e13583167a03e;p=thirdparty%2Fsuricata-verify.git readme: document shell checks --- diff --git a/README.md b/README.md index 36005677f..29751920e 100644 --- a/README.md +++ b/README.md @@ -118,4 +118,15 @@ checks: # Check that a field does not exist: not-has-key: flow + + - shell: + # A simple shell check. If the command exits with a non-0 exit code the + # check will fail. The script is run in the output directory of the + # test. + args: grep "GPL ATTACK_RESPONSE" fast.log + + - shell: + # A shell check that also tests the output of the command. + args: cat fast.log | wc -l | xargs + expect: 1 ```