* add ./debug and ./release scripts

* update the messages
* rename EIGEN_CMAKE_RUN_FROM_CTEST to something saner
This commit is contained in:
Benoit Jacob
2009-11-12 12:07:18 -05:00
parent fc492b6264
commit 358452bbe6
9 changed files with 26 additions and 18 deletions

4
scripts/CMakeLists.txt Normal file
View File

@@ -0,0 +1,4 @@
configure_file(maketests.in ${CMAKE_BINARY_DIR}/maketests)
configure_file(mctestr.in ${CMAKE_BINARY_DIR}/mctestr)
configure_file(debug.in ${CMAKE_BINARY_DIR}/debug)
configure_file(release.in ${CMAKE_BINARY_DIR}/release)

3
scripts/debug.in Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/sh
cmake -DCMAKE_BUILD_TYPE=Debug .

21
scripts/maketests.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

14
scripts/mctestr.in Executable file
View File

@@ -0,0 +1,14 @@
#!/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
./maketests $*
# TODO when ctest 2.8 comes out, honor the jobs parameter
ctest -R $1

3
scripts/release.in Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/sh
cmake -DCMAKE_BUILD_TYPE=Release .