source: pacpussensors/trunk/Vislab/lib3dv/eigen/scripts/buildtests.in@ 138

Last change on this file since 138 was 136, checked in by ldecherf, 8 years ago

Doc

File size: 522 bytes
Line 
1#!/bin/bash
2
3if [[ $# != 1 || $1 == *help ]]
4then
5 echo "usage: ./check 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
10fi
11
12TESTSLIST="@EIGEN_TESTS_LIST@"
13targets_to_make=`echo "$TESTSLIST" | egrep "$1" | xargs echo`
14
15if [ -n "${EIGEN_MAKE_ARGS:+x}" ]
16then
17 make $targets_to_make ${EIGEN_MAKE_ARGS}
18else
19 make $targets_to_make
20fi
21exit $?
22
Note: See TracBrowser for help on using the repository browser.