2014-07-13 21:21:43 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2014-12-29 17:04:30 +00:00
|
|
|
usage() {
|
|
|
|
echo "usage: ${0##*/} [-jN]" >&2
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
|
|
|
while getopts "j:" opt ; do
|
|
|
|
case $opt in
|
|
|
|
j)
|
|
|
|
j="-j$OPTARG"
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
usage
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
2014-07-13 21:21:43 +00:00
|
|
|
srcdir="@abs_top_srcdir@"
|
|
|
|
export COVFILE="${srcdir}/test.cov"
|
|
|
|
gmake -C "${srcdir}" clean
|
2014-12-29 17:04:30 +00:00
|
|
|
find "${srcdir}" -type f -name "${COVFILE##*/}" -delete
|
2014-07-13 21:21:43 +00:00
|
|
|
cov01 -1
|
2014-12-29 17:04:30 +00:00
|
|
|
gmake -C "${srcdir}" $j check || exit 1
|
2014-07-13 21:21:43 +00:00
|
|
|
cov01 -0
|
|
|
|
gmake -C "${srcdir}" clean
|