From: Victor Julien Date: Tue, 23 Jul 2019 08:57:59 +0000 (+0200) Subject: travis: add check for pcap-ng files X-Git-Tag: suricata-6.0.4~408 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed039d3294ea6a458454220b34e6b7baee6c0f92;p=thirdparty%2Fsuricata-verify.git travis: add check for pcap-ng files --- diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..d3dc0386f --- /dev/null +++ b/.travis.yml @@ -0,0 +1,3 @@ +language: bash + +script: ./travis.sh diff --git a/travis.sh b/travis.sh new file mode 100755 index 000000000..349853250 --- /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 -w " + exit 1 +fi + +exit 0