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:12:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-06-30 08:12:55 +0000
commitaa278ae46dffc031baf51faa506add8a34d51c1b (patch)
tree035e9f39bf9cad467db3ef58de2805a7a88cb273 /src/test/test_regex_match.sh
parentAdding upstream version 2.1.2. (diff)
downloaddnscap-aa278ae46dffc031baf51faa506add8a34d51c1b.tar.xz
dnscap-aa278ae46dffc031baf51faa506add8a34d51c1b.zip
Adding upstream version 2.1.3.upstream/2.1.3
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/test_regex_match.sh')
-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"