From: Jason Ish Date: Fri, 7 Apr 2017 21:38:56 +0000 (-0600) Subject: empty rule file test X-Git-Tag: suricata-6.0.4~596 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5355d7168b7efb439dc4b7bcd351ec7d0c149f88;p=thirdparty%2Fsuricata-verify.git empty rule file test --- diff --git a/test-config-empty-rule-file/empty.rules b/test-config-empty-rule-file/empty.rules new file mode 100644 index 000000000..e69de29bb diff --git a/test-config-empty-rule-file/run.sh b/test-config-empty-rule-file/run.sh new file mode 100755 index 000000000..262028098 --- /dev/null +++ b/test-config-empty-rule-file/run.sh @@ -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 index 000000000..33497b837 --- /dev/null +++ b/test-config-empty-rule-file/suricata.yaml @@ -0,0 +1,7 @@ +%YAML 1.1 +--- + +include: ../etc/suricata-3.1.2.yaml + +rule-files: + - empty.rules