summaryrefslogtreecommitdiffstats
path: root/src/test/test3.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-09-04 09:27:04 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-09-04 09:27:04 +0000
commit81fa0bc63909a67cdd6d321617a2e5648a6a94a2 (patch)
tree2b0a2eae7aed22e3c6f707283d7617d8c02b3fbe /src/test/test3.sh
parentAdding upstream version 2.1.3. (diff)
downloaddnscap-upstream.tar.xz
dnscap-upstream.zip
Adding upstream version 2.2.0.upstream/2.2.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-xsrc/test/test3.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/test/test3.sh b/src/test/test3.sh
index 4b65121..db521ad 100755
--- a/src/test/test3.sh
+++ b/src/test/test3.sh
@@ -1,6 +1,8 @@
#!/bin/sh -xe
-../dnscap -g -f -r frags.pcap-dist -o use_layers=yes -o defrag_ipv4=yes -o max_ipv4_fragments_per_packet=64 2>frags.out
+test -e frags.pcap || ln -s "$srcdir/frags.pcap" frags.pcap
+
+../dnscap -g -f -r frags.pcap -o use_layers=yes -o defrag_ipv4=yes -o max_ipv4_fragments_per_packet=64 2>frags.out
# remove timestamp
sed -i -e 's%^\(\[[0-9]*\]\)[^\[]*\[%\1 [%g' frags.out
@@ -8,6 +10,6 @@ sed -i -e 's%^\(\[[0-9]*\]\)[^\[]*\[%\1 [%g' frags.out
# create gold file
cp "$srcdir/dns.gold" frags.gold
sed -i -e 's%^\(\[[0-9]*\]\)[^\[]*\[%\1 [%g' frags.gold
-sed -i -e 's%dns.pcap-dist%frags.pcap-dist%g' frags.gold
+sed -i -e 's%dns.pcap%frags.pcap%g' frags.gold
diff frags.out frags.gold