* 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.
23 lines
420 B
Bash
Executable File
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
|