File: test1.sh

package info (click to toggle)
dnscap 2.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,552 kB
  • sloc: ansic: 18,641; sh: 1,437; python: 1,162; makefile: 469; perl: 169
file content (15 lines) | stat: -rwxr-xr-x 490 bytes parent folder | download | duplicates (3)
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