Merged in f5soh/librepilot/update_credits (pull request #529)
[librepilot.git] / ground / gcs / src / libs / eigen / scripts / buildtests.in
blob526d5b74b9421b613d03f67603510fe33903caa4
1 #!/bin/bash
3 if [[ $# != 1 || $1 == *help ]]
4 then
5 echo "usage: $0 regexp"
6 echo " Builds tests matching the regexp."
7 echo " The EIGEN_MAKE_ARGS environment variable allows to pass args to 'make'."
8 echo " For example, to launch 5 concurrent builds, use EIGEN_MAKE_ARGS='-j5'"
9 exit 0
12 TESTSLIST="@EIGEN_TESTS_LIST@"
13 targets_to_make=`echo "$TESTSLIST" | egrep "$1" | xargs echo`
15 if [ -n "${EIGEN_MAKE_ARGS:+x}" ]
16 then
17 @CMAKE_MAKE_PROGRAM@ $targets_to_make ${EIGEN_MAKE_ARGS}
18 else
19 @CMAKE_MAKE_PROGRAM@ $targets_to_make @EIGEN_TEST_BUILD_FLAGS@
21 exit $?