eigen/test/maketests.in
Benoit Jacob bc18ba7e49 * add maketests script. It is like make but takes a regexp allowing to build selected targets. Next step will be a "mctestr" script doing that and then calling ctest -R.
* in runtest.sh, don't override the default number of repeats. If one thinks the default should be changed, let's change it at the source.
2009-11-11 21:25:21 -05:00

23 lines
420 B
Bash
Executable File

#!/bin/bash
if [ $# == 0 -o $# -ge 3 ]
then
echo "usage: ./maketests regexp [jobs]"
echo " makes tests matching the regexp, with <jobs> concurrent make jobs"
exit 0
fi
SRCDIR=${CMAKE_CURRENT_SOURCE_DIR}
TESTSLIST="${cmake_tests_list}"
targets_to_make=`echo "$TESTSLIST" | grep "$1" | sed s/^/test_/g | xargs`
if [ $# == 1 ]
then
make $targets_to_make
fi
if [ $# == 2 ]
then
make -j $2 $targets_to_make
fi