summaryrefslogtreecommitdiffstats
path: root/plugins/royparse/test1.sh
blob: ec078867bff45022f170ea91a740d6015228e15e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh -xe

plugin=`find . -name 'royparse.so' | head -n 1`
if [ -z "$plugin" ]; then
    echo "Unable to find the royparse plugin"
    exit 1
fi

ln -fs "$srcdir/../../src/test/dns.pcap" dns.pcap-dist

../../src/dnscap -r dns.pcap-dist -g -P "$plugin" -?
../../src/dnscap -r dns.pcap-dist -g -P "$plugin"
../../src/dnscap -r dns.pcap-dist -g -P "$plugin" -q test1.out
../../src/dnscap -r dns.pcap-dist -g -P "$plugin" -r test1.out
! ../../src/dnscap -r dns.pcap-dist -g -P "$plugin" -X