]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
readme: document shell checks
authorJason Ish <jason.ish@oisf.net>
Tue, 18 Feb 2020 17:29:57 +0000 (11:29 -0600)
committerJason Ish <jason.ish@oisf.net>
Fri, 21 Feb 2020 21:12:24 +0000 (15:12 -0600)
README.md

index 36005677fabeea55f5a94ae2c90a365f18bcd176..29751920ea823dc0cea6d73c2d3d969be37e7a6c 100644 (file)
--- 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
 ```