]> The Tcpdump Group git mirrors - tcpdump/blob - tests/nflog-e.sh
Fix a bug in test scripts (exposed in GH #613).
[tcpdump] / tests / nflog-e.sh
1 #!/bin/sh
2
3 exitcode=0
4
5 # NFLOG support depends on both DLT_NFLOG and working <pcap/nflog.h>
6
7 if grep '^#define HAVE_PCAP_NFLOG_H 1$' ../config.h >/dev/null
8 then
9 ./TESTonce nflog-e nflog.pcap nflog-e.out '-e'
10 [ $? -eq 0 ] || exitcode=1
11 else
12 printf ' %-35s: TEST SKIPPED (compiled w/o NFLOG)\n' 'nflog-e'
13 fi
14
15 exit $exitcode