mirror of
https://github.com/cryb-to/cryb-to.git
synced 2024-12-22 04:21:08 +00:00
889412ec40
Delete all coverage files, not just the root one. Exit if the tests fail so we can inspect the result.
26 lines
392 B
Bash
Executable file
26 lines
392 B
Bash
Executable file
#!/bin/sh
|
|
|
|
usage() {
|
|
echo "usage: ${0##*/} [-jN]" >&2
|
|
exit 1
|
|
}
|
|
|
|
while getopts "j:" opt ; do
|
|
case $opt in
|
|
j)
|
|
j="-j$OPTARG"
|
|
;;
|
|
*)
|
|
usage
|
|
;;
|
|
esac
|
|
done
|
|
|
|
srcdir="@abs_top_srcdir@"
|
|
export COVFILE="${srcdir}/test.cov"
|
|
gmake -C "${srcdir}" clean
|
|
find "${srcdir}" -type f -name "${COVFILE##*/}" -delete
|
|
cov01 -1
|
|
gmake -C "${srcdir}" $j check || exit 1
|
|
cov01 -0
|
|
gmake -C "${srcdir}" clean
|