eigen/scripts/check.in
Jitse Niesen 32f6242b60 Set default for second argument for check script.
Otherwise, buildtests will be run with a second argument of "" if check
is called with only one argument, which leads to infinitely many jobs.
2009-12-21 11:35:08 +00:00

13 lines
327 B
Bash
Executable File

#!/bin/bash
# check : shorthand for make and ctest -R
if [ $# == 0 -o $# -ge 3 ]
then
echo "usage: ./check regexp [jobs]"
echo " makes and runs tests matching the regexp, with [jobs] concurrent make jobs"
exit 0
fi
# TODO when ctest 2.8 comes out, honor the jobs parameter
./buildtests "$1" "${2:-1}" && ctest -R "$1"