mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
* add ./debug and ./release scripts
* update the messages * rename EIGEN_CMAKE_RUN_FROM_CTEST to something saner
This commit is contained in:
4
scripts/CMakeLists.txt
Normal file
4
scripts/CMakeLists.txt
Normal 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
3
scripts/debug.in
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
cmake -DCMAKE_BUILD_TYPE=Debug .
|
||||
21
scripts/maketests.in
Executable file
21
scripts/maketests.in
Executable 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
14
scripts/mctestr.in
Executable 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
3
scripts/release.in
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
cmake -DCMAKE_BUILD_TYPE=Release .
|
||||
Reference in New Issue
Block a user