* 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

View File

@@ -162,6 +162,3 @@ if(CMAKE_COMPILER_IS_GNUCXX)
endif(CMAKE_COMPILER_IS_GNUCXX)
ei_add_property(EIGEN_TESTING_SUMMARY "CXX_FLAGS: ${CMAKE_CXX_FLAGS}\n")
ei_add_property(EIGEN_TESTING_SUMMARY "Sparse lib flags: ${SPARSE_LIBS}\n")
configure_file(maketests.in ${CMAKE_BINARY_DIR}/maketests)
configure_file(mctestr.in ${CMAKE_BINARY_DIR}/mctestr)

View File

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

View File

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

View File

@@ -148,7 +148,7 @@ endif(NOT EIGEN_NO_UPDATE)
# which ctest command to use for running the dashboard
SET (CTEST_COMMAND "${EIGEN_CMAKE_DIR}ctest -D ${EIGEN_MODE}")
# what cmake command to use for configuring this dashboard
SET (CTEST_CMAKE_COMMAND "${EIGEN_CMAKE_DIR}cmake -DEIGEN_CMAKE_RUN_FROM_CTEST=ON")
SET (CTEST_CMAKE_COMMAND "${EIGEN_CMAKE_DIR}cmake -DEIGEN_LEAVE_TEST_IN_ALL_TARGET=ON")
####################################################################
# The values in this section are optional you can either