summaryrefslogtreecommitdiffstats
path: root/src/test/test_regex_match.sh
diff options
context:
space:
mode:
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"