Instead, they honor the EIGEN_JOBS environment variable if defined.
* The syntax ${BLABLA} in bash scripts was conflicting with CMake configured
file syntax. Resolved by using the @ONLY option and the @BLABLA@ syntax.
23 lines
453 B
Bash
Executable File
23 lines
453 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ $# == 0 -o $# -ge 2 ]
|
|
then
|
|
echo "usage: ./buildtests regexp"
|
|
echo " Makes tests matching the regexp."
|
|
echo " The EIGEN_JOBS environment variable controls how many"
|
|
echo " concurrent jobs are launched."
|
|
exit 0
|
|
fi
|
|
|
|
TESTSLIST="@EIGEN_TESTS_LIST@"
|
|
targets_to_make=`echo "$TESTSLIST" | egrep "$1" | xargs echo`
|
|
|
|
if [ -n "${EIGEN_JOBS:+x}" ]
|
|
then
|
|
make $targets_to_make -j${EIGEN_JOBS}
|
|
else
|
|
make $targets_to_make
|
|
fi
|
|
exit $?
|
|
|