]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
travis: add check for pcap-ng files
authorVictor Julien <victor@inliniac.net>
Tue, 23 Jul 2019 08:57:59 +0000 (10:57 +0200)
committerVictor Julien <victor@inliniac.net>
Tue, 23 Jul 2019 09:52:13 +0000 (11:52 +0200)
.travis.yml [new file with mode: 0644]
travis.sh [new file with mode: 0755]

diff --git a/.travis.yml b/.travis.yml
new file mode 100644 (file)
index 0000000..d3dc038
--- /dev/null
@@ -0,0 +1,3 @@
+language: bash
+
+script: ./travis.sh
diff --git a/travis.sh b/travis.sh
new file mode 100755 (executable)
index 0000000..3498532
--- /dev/null
+++ b/travis.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+  
+set -x
+
+PCAPNG=$(find tests/ -type f|xargs -L1 file|grep 'pcap-ng capture file')
+PCAPNGCNT=$(echo -n $PCAPNG | wc -l)
+if [ $PCAPNGCNT -ne 0 ]; then
+    echo "pcap-ng tests found"
+    echo $PCAPNG
+    echo "PCAP-NG files are currently not allowed for tests due to not "
+    echo "all platforms supporting it at this time. Please convert the "
+    echo "pcap file(s) to regular pcap format: "
+    echo "tshark -F pcap -r <pcapng file> -w <pcap file>"
+    exit 1
+fi
+
+exit 0