#!/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: "