summaryrefslogtreecommitdiffstats
path: root/src/test/test_icmp.sh
blob: 43f44e8677853068c18fc68e94e7bdd1a2c6b7d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh -xe

test -e icmp.pcap || ln -s "$srcdir/icmp.pcap" icmp.pcap

../dnscap -g -I -r icmp.pcap 2>test_icmp.out

mv test_icmp.out test_icmp.out.old
grep -v "^libgcov profiling error:" test_icmp.out.old > test_icmp.out
rm test_icmp.out.old

diff test_icmp.out "$srcdir/icmp.gold"