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