summaryrefslogtreecommitdiffstats
path: root/src/test/test_regex_match.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-06-30 08:13:00 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-06-30 08:13:00 +0000
commite2505c32ec7b9d791d6b46f90e41ee4d5418af46 (patch)
tree44bb2ff75df015eaf5137876876d550de020a7f3 /src/test/test_regex_match.sh
parentReleasing debian version 2.1.2-1. (diff)
downloaddnscap-e2505c32ec7b9d791d6b46f90e41ee4d5418af46.tar.xz
dnscap-e2505c32ec7b9d791d6b46f90e41ee4d5418af46.zip
Merging upstream version 2.1.3.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-xsrc/test/test_regex_match.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/test_regex_match.sh b/src/test/test_regex_match.sh
new file mode 100755
index 0000000..184ca7b
--- /dev/null
+++ b/src/test/test_regex_match.sh
@@ -0,0 +1,11 @@
+#!/bin/sh -xe
+
+../dnscap -g -r dns.pcap-dist -x 'ns1' 2>test_regex_match.out
+../dnscap -g -r dns.pcap-dist -X 'ns1' 2>>test_regex_match.out
+../dnscap -g -r dns.pcap-dist -x 'ns1' -X 'ns1' 2>>test_regex_match.out
+
+mv test_regex_match.out test_regex_match.out.old
+grep -v "^libgcov profiling error:" test_regex_match.out.old > test_regex_match.out
+rm test_regex_match.out.old
+
+diff test_regex_match.out "$srcdir/test_regex_match.gold"