[master] b3532c1a1 Cover the rest of the vsl_glob_test program too
Poul-Henning Kamp
phk at FreeBSD.org
Mon Jan 28 15:05:11 UTC 2019
commit b3532c1a14abc5b1bdd7eef830c99139e342079a
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Mon Jan 28 15:04:14 2019 +0000
Cover the rest of the vsl_glob_test program too
diff --git a/lib/libvarnishapi/Makefile.am b/lib/libvarnishapi/Makefile.am
index 77e96d666..fa0f3078b 100644
--- a/lib/libvarnishapi/Makefile.am
+++ b/lib/libvarnishapi/Makefile.am
@@ -98,10 +98,16 @@ vxp_test_CFLAGS = \
vxp_test_LDADD = @PCRE_LIBS@ \
${RT_LIBS} ${LIBM} ${PTHREAD_LIBS}
-TESTS = vsl_glob_test
+TESTS = vsl_glob_test vsl_glob_test_coverage
noinst_PROGRAMS += ${TESTS}
vsl_glob_test_SOURCES = vsl_glob_test.c
vsl_glob_test_CFLAGS = @SAN_CFLAGS@
vsl_glob_test_LDADD = libvarnishapi.la @SAN_LDFLAGS@
+
+vsl_glob_test_coverage:
+ echo './vsl_glob_test 1 2 3 2> /dev/null || true' > ${builddir}/_
+ echo './vsl_glob_test "Req*" > /dev/null' >> ${builddir}/_
+ mv ${builddir}/_ ${builddir}/vsl_glob_test_coverage
+ chmod +x ${builddir}/vsl_glob_test_coverage
More information about the varnish-commit
mailing list