diff options
Diffstat (limited to 'contrib/tcpdump/tests/print-flags.sh')
-rwxr-xr-x | contrib/tcpdump/tests/print-flags.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/contrib/tcpdump/tests/print-flags.sh b/contrib/tcpdump/tests/print-flags.sh new file mode 100755 index 0000000..c99f782 --- /dev/null +++ b/contrib/tcpdump/tests/print-flags.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +uudecode print-flags.puu + +for i in x xx X XX A AA; do + if (../tcpdump -$i -s0 -nr print-flags.pcap | tee print-$i.new | diff - print-$i.out) + then + echo print-$i passed. + else + echo print-$i failed. + fi +done |