]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
empty rule file test
authorJason Ish <ish@unx.ca>
Fri, 7 Apr 2017 21:38:56 +0000 (15:38 -0600)
committerJason Ish <ish@unx.ca>
Fri, 7 Apr 2017 21:38:56 +0000 (15:38 -0600)
test-config-empty-rule-file/empty.rules [new file with mode: 0644]
test-config-empty-rule-file/run.sh [new file with mode: 0755]
test-config-empty-rule-file/suricata.yaml [new file with mode: 0644]

diff --git a/test-config-empty-rule-file/empty.rules b/test-config-empty-rule-file/empty.rules
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/test-config-empty-rule-file/run.sh b/test-config-empty-rule-file/run.sh
new file mode 100755 (executable)
index 0000000..2620280
--- /dev/null
@@ -0,0 +1,12 @@
+#! /bin/sh
+
+run() {
+    if ! ./src/suricata -T -c ${TEST_DIR}/suricata.yaml -vvv \
+        --set default-rule-path="${TEST_DIR}"; then
+       exit 1
+    fi
+}
+
+run
+
+exit 0
diff --git a/test-config-empty-rule-file/suricata.yaml b/test-config-empty-rule-file/suricata.yaml
new file mode 100644 (file)
index 0000000..33497b8
--- /dev/null
@@ -0,0 +1,7 @@
+%YAML 1.1
+---
+
+include: ../etc/suricata-3.1.2.yaml
+
+rule-files:
+  - empty.rules