ENH: Enabled testing during release build.
This commit is contained in:
parent
100a96297e
commit
0dfef723f7
|
@ -282,12 +282,26 @@ build()
|
|||
) >Logs/build.log 2>&1 || error_log Logs/build.log
|
||||
}
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
tests()
|
||||
{
|
||||
[ -z "${DONE_tests}" ] || return 0 ; DONE_tests="yes"
|
||||
config || return 1
|
||||
[ -f "cmake-${VERSION}-${PLATFORM}/Source/ccmake" ] || build || return 1
|
||||
echo "Running tests ..." &&
|
||||
(
|
||||
cd "cmake-${VERSION}-${PLATFORM}" &&
|
||||
rm -rf Tests &&
|
||||
./Source/ctest -V
|
||||
) >Logs/tests.log 2>&1 || error_log Logs/tests.log
|
||||
}
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
install()
|
||||
{
|
||||
[ -z "${DONE_install}" ] || return 0 ; DONE_install="yes"
|
||||
config || return 1
|
||||
[ -f "cmake-${VERSION}-${PLATFORM}/Source/ccmake" ] || build || return 1
|
||||
[ -d "cmake-${VERSION}-${PLATFORM}/Tests/Simple" ] || tests || return 1
|
||||
echo "Running make install ..." &&
|
||||
(
|
||||
rm -rf Install &&
|
||||
|
|
|
@ -6,6 +6,6 @@ CXX="xlC"
|
|||
write_cache()
|
||||
{
|
||||
cat > CMakeCache.txt <<EOF
|
||||
BUILD_TESTING:BOOL=OFF
|
||||
BUILD_TESTING:BOOL=ON
|
||||
EOF
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ WX_RESOURCES=${WX_PREFIX}/lib/libwx_mac-2.3.rsrc
|
|||
write_cache()
|
||||
{
|
||||
cat > CMakeCache.txt <<EOF
|
||||
BUILD_TESTING:BOOL=OFF
|
||||
BUILD_TESTING:BOOL=ON
|
||||
CURSES_LIBRARY:FILEPATH=/usr/local/lib/libncurses.a
|
||||
CMAKE_BUILD_WX_DIALOG:BOOL=ON
|
||||
CMAKE_WX_CONFIG:FILEPATH=${WX_PREFIX}/bin/wx-config
|
||||
|
|
|
@ -13,7 +13,7 @@ SET(CMAKE_DL_LIBS "")
|
|||
EOF
|
||||
|
||||
cat > CMakeCache.txt <<EOF
|
||||
BUILD_TESTING:BOOL=OFF
|
||||
BUILD_TESTING:BOOL=ON
|
||||
CMAKE_EXE_LINKER_FLAGS:STRING=-ldld -Wl,-a,archive_shared
|
||||
CMAKE_USER_MAKE_RULES_OVERRIDE:STRING=${BINDIR}/UserMakeRules.cmake
|
||||
CMAKE_SKIP_RPATH:BOOL=1
|
||||
|
|
|
@ -8,7 +8,7 @@ CXX="c++"
|
|||
write_cache()
|
||||
{
|
||||
cat > CMakeCache.txt <<EOF
|
||||
BUILD_TESTING:BOOL=OFF
|
||||
BUILD_TESTING:BOOL=ON
|
||||
CMAKE_EXE_LINKER_FLAGS:STRING=-static
|
||||
CMAKE_SKIP_RPATH:BOOL=1
|
||||
CURSES_LIBRARY:FILEPATH=${CURSES_LIBRARY}
|
||||
|
|
|
@ -10,7 +10,7 @@ TCL_TCLSH="/usr/local/bin/tclsh8.3"
|
|||
write_cache()
|
||||
{
|
||||
cat > CMakeCache.txt <<EOF
|
||||
BUILD_TESTING:BOOL=OFF
|
||||
BUILD_TESTING:BOOL=ON
|
||||
FLTK_INCLUDE_PATH:PATH=${FLTK_INCLUDE_PATH}
|
||||
FLTK_LIBRARY:FILEPATH=${FLTK_LIBRARY}
|
||||
TCL_TCLSH:FILEPATH=${TCL_TCLSH}
|
||||
|
|
|
@ -14,7 +14,7 @@ SET(CMAKE_DL_LIBS "")
|
|||
EOF
|
||||
|
||||
cat > CMakeCache.txt <<EOF
|
||||
BUILD_TESTING:BOOL=OFF
|
||||
BUILD_TESTING:BOOL=ON
|
||||
CMAKE_EXE_LINKER_FLAGS:STRING=-Wl,-Bdynamic -ldl -Wl,-Bstatic
|
||||
CMAKE_USER_MAKE_RULES_OVERRIDE:STRING=${BINDIR}/UserMakeRules.cmake
|
||||
CMAKE_SKIP_RPATH:BOOL=1
|
||||
|
|
Loading…
Reference in New Issue