introduce check target, and some renaming

This commit is contained in:
Benoit Jacob
2009-11-12 15:02:52 -05:00
parent 8b563d7163
commit 9b7708f660
6 changed files with 11 additions and 4 deletions

21
test/buildtests.in Executable file
View File

@@ -0,0 +1,21 @@
#!/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
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