2009-11-12 22:35:10 +08:00
|
|
|
#!/bin/bash
|
2009-12-21 19:35:08 +08:00
|
|
|
# check : shorthand for make and ctest -R
|
2009-11-12 22:35:10 +08:00
|
|
|
|
2010-01-01 05:13:56 +08:00
|
|
|
if [[ $# != 1 || $1 == *help ]]
|
2009-11-12 22:35:10 +08:00
|
|
|
then
|
2016-05-12 01:39:09 +08:00
|
|
|
echo "usage: $0 regexp"
|
2010-01-01 05:13:56 +08:00
|
|
|
echo " Builds and runs tests matching the regexp."
|
|
|
|
echo " The EIGEN_MAKE_ARGS environment variable allows to pass args to 'make'."
|
|
|
|
echo " For example, to launch 5 concurrent builds, use EIGEN_MAKE_ARGS='-j5'"
|
|
|
|
echo " The EIGEN_CTEST_ARGS environment variable allows to pass args to 'ctest'."
|
|
|
|
echo " For example, with CTest 2.8, you can use EIGEN_CTEST_ARGS='-j5'."
|
2009-11-12 22:35:10 +08:00
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
2010-01-01 05:13:56 +08:00
|
|
|
if [ -n "${EIGEN_CTEST_ARGS:+x}" ]
|
|
|
|
then
|
2010-05-31 03:58:11 +08:00
|
|
|
./buildtests.sh "$1" && ctest -R "$1" ${EIGEN_CTEST_ARGS}
|
2010-01-01 05:13:56 +08:00
|
|
|
else
|
2010-05-31 03:58:11 +08:00
|
|
|
./buildtests.sh "$1" && ctest -R "$1"
|
2010-01-01 05:13:56 +08:00
|
|
|
fi
|
|
|
|
exit $?
|