]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
ci: fix pcapng check on ubuntu
authorVictor Julien <victor@inliniac.net>
Mon, 18 Oct 2021 13:16:57 +0000 (15:16 +0200)
committerVictor Julien <victor@inliniac.net>
Mon, 18 Oct 2021 13:58:41 +0000 (15:58 +0200)
pcapng-check.sh

index 349853250ccc221ef3d3b66f5de230bb8f58f314..ba803d463d250c3bbff765454c6847af0c652cb2 100755 (executable)
@@ -1,12 +1,13 @@
 #!/bin/bash
   
-set -x
+#set -x
 
-PCAPNG=$(find tests/ -type f|xargs -L1 file|grep 'pcap-ng capture file')
-PCAPNGCNT=$(echo -n $PCAPNG | wc -l)
+PCAPNGCNT=$(find tests/ -type f|xargs -L1 file|grep -E "(pcap\-ng|pcapng) capture file"|wc -l)
 if [ $PCAPNGCNT -ne 0 ]; then
-    echo "pcap-ng tests found"
-    echo $PCAPNG
+    echo "$PCAPNGCNT pcap-ng files found:"
+    echo
+    find tests/ -type f|xargs -L1 file|grep -E "(pcap\-ng|pcapng) capture file"
+    echo
     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: "