mirror of
https://github.com/cryb-to/cryb-to.git
synced 2024-11-24 14:45:42 +00:00
Modify the coverage build script so that it only runs "make clean" if
coverage was not already enabled when the script was started.
This commit is contained in:
parent
dd18cd2995
commit
1826bb12bf
1 changed files with 20 additions and 6 deletions
|
@ -16,11 +16,25 @@ while getopts "j:" opt ; do
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if cov01 -sq >/dev/null ; then
|
||||||
|
cov=true
|
||||||
|
else
|
||||||
|
cov=false
|
||||||
|
fi
|
||||||
|
|
||||||
srcdir="@abs_top_srcdir@"
|
srcdir="@abs_top_srcdir@"
|
||||||
|
htmldir="${srcdir}/cov"
|
||||||
export COVFILE="${srcdir}/test.cov"
|
export COVFILE="${srcdir}/test.cov"
|
||||||
gmake -C "${srcdir}" clean
|
if ! $cov ; then
|
||||||
find "${srcdir}" -type f -name "${COVFILE##*/}" -delete
|
# Rebuild with coverage enabled
|
||||||
cov01 -1
|
gmake -C "${srcdir}" clean
|
||||||
gmake -C "${srcdir}" $j check || exit 1
|
cov01 -1
|
||||||
cov01 -0
|
fi
|
||||||
gmake -C "${srcdir}" clean
|
covclear
|
||||||
|
gmake -C "${srcdir}" $j check
|
||||||
|
covhtml "${htmldir}"
|
||||||
|
if ! $cov ; then
|
||||||
|
# Clean up
|
||||||
|
cov01 -0
|
||||||
|
gmake -C "${srcdir}" clean
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in a new issue