Add a helper script for running the test suite with coverage analysis

enabled.
This commit is contained in:
Dag-Erling Smørgrav 2014-07-13 21:21:43 +00:00 committed by des
parent 3ed82792fc
commit f1907404b1
3 changed files with 14 additions and 1 deletions

View file

@ -11,4 +11,6 @@ EXTRA_DIST = \
LICENSE \
README \
RELNOTES \
autogen.sh
autogen.sh \
tools/coverage.sh.in \
tools/setprops.sh

View file

@ -126,5 +126,6 @@ AC_CONFIG_FILES([
lib/rand/Makefile
lib/rsaref/Makefile
t/Makefile
tools/coverage.sh
])
AC_OUTPUT

10
tools/coverage.sh.in Executable file
View file

@ -0,0 +1,10 @@
#!/bin/sh
srcdir="@abs_top_srcdir@"
export COVFILE="${srcdir}/test.cov"
gmake -C "${srcdir}" clean
rm "${COVFILE}"
cov01 -1
gmake -C "${srcdir}" check
cov01 -0
gmake -C "${srcdir}" clean