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

plugin=`find . -name 'template.so' | head -n 1`
if [ -z "$plugin" ]; then
    echo "Unable to find the template 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" -X