You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
522 B

  1. #!/bin/bash
  2. if [[ $# != 1 || $1 == *help ]]
  3. then
  4. echo "usage: ./check regexp"
  5. echo " Builds tests matching the regexp."
  6. echo " The EIGEN_MAKE_ARGS environment variable allows to pass args to 'make'."
  7. echo " For example, to launch 5 concurrent builds, use EIGEN_MAKE_ARGS='-j5'"
  8. exit 0
  9. fi
  10. TESTSLIST="@EIGEN_TESTS_LIST@"
  11. targets_to_make=`echo "$TESTSLIST" | egrep "$1" | xargs echo`
  12. if [ -n "${EIGEN_MAKE_ARGS:+x}" ]
  13. then
  14. make $targets_to_make ${EIGEN_MAKE_ARGS}
  15. else
  16. make $targets_to_make
  17. fi
  18. exit $?