]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
readme: document check.yaml
authorJason Ish <ish@unx.ca>
Tue, 9 Jan 2018 13:01:21 +0000 (07:01 -0600)
committerJason Ish <ish@unx.ca>
Tue, 9 Jan 2018 13:01:21 +0000 (07:01 -0600)
README.md

index 2b9dc083c25f634db64f48ee11f28d9c702c5f17..1ce47a0d10f5b791f1ddf9d8123351bcdc19da9d 100644 (file)
--- a/README.md
+++ b/README.md
@@ -30,7 +30,7 @@ Or to run a single test:
 
     Note: You may want to add something like:
     ```
-    include: ../../etc/suricata-3.1.2
+    include: ../../etc/suricata-4.0.3.yaml
     ```
     to the top and then just make the necessary overrides in the tests
     suricata.yaml.
@@ -40,7 +40,26 @@ Or to run a single test:
 
 - Add any rules required to ${dir}/test.rules.
 
-- Add a "check.sh" script. This script is run after Suricata is
-  executed and should validate any Suricata output. It is executed
-  with the test directory as the working directory. This script should
-  exit 1 for failure, and 0 for success.
+- Add a *test.yaml* descriptor file to add further control to your
+  tests such as restricting features required for the test, and
+  validating output.
+
+## Example test.yaml
+
+```
+# Override the default command. This is also an example of how it can
+# be broken up over multiple lines for readability.
+command: |
+  ${SRCDIR}/src/suricata -T -c ${TEST_DIR}/suricata.yaml -vvv \
+      -l ${TEST_DIR}/output --set default-rule-path="${TEST_DIR}"
+
+requires:
+
+  # Require the presence of specific features.
+  features:
+    # Restrict the test to builds with HAVE_LUA.
+    - HAVE_LUA
+
+  # Require that Suricata not be built with specific features.
+  not-features:
+    - RUST