mirror of
https://github.com/cryb-to/cryb-to.git
synced 2024-11-24 22:56:00 +00:00
Accept a -jN argument which we pass on to gmake.
Delete all coverage files, not just the root one. Exit if the tests fail so we can inspect the result.
This commit is contained in:
parent
85defb9929
commit
889412ec40
1 changed files with 18 additions and 2 deletions
|
@ -1,10 +1,26 @@
|
|||
#!/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
|
||||
rm "${COVFILE}"
|
||||
find "${srcdir}" -type f -name "${COVFILE##*/}" -delete
|
||||
cov01 -1
|
||||
gmake -C "${srcdir}" check
|
||||
gmake -C "${srcdir}" $j check || exit 1
|
||||
cov01 -0
|
||||
gmake -C "${srcdir}" clean
|
||||
|
|
Loading…
Reference in a new issue