2009-11-12 22:35:10 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
# mctestr : shorthand for make and ctest -R
|
|
|
|
|
|
|
|
|
|
if [ $# == 0 -o $# -ge 3 ]
|
|
|
|
|
then
|
|
|
|
|
echo "usage: ./mctestr regexp [jobs]"
|
|
|
|
|
echo " makes and runs tests matching the regexp, with <jobs> concurrent make jobs"
|
|
|
|
|
exit 0
|
|
|
|
|
fi
|
|
|
|
|
|
2009-11-16 08:26:28 +08:00
|
|
|
./buildtests $*
|
2009-11-12 22:35:10 +08:00
|
|
|
|
|
|
|
|
# TODO when ctest 2.8 comes out, honor the jobs parameter
|
|
|
|
|
ctest -R $1
|