diff options
author | Alexander Neundorf <neundorf@kde.org> | 2008-11-14 20:55:01 +0000 |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2008-11-14 20:55:01 +0000 |
commit | f56b4fe57bccfb3bc5611bf75c8fb54c02bcd48c (patch) | |
tree | cfc3baf358b5671211b330891c80cde8eb198012 /modules-tests/RunAllModuleTests.cmake | |
parent | de54277a5fca412232a166928233861106c99f7a (diff) | |
download | extra-cmake-modules-f56b4fe57bccfb3bc5611bf75c8fb54c02bcd48c.tar.gz extra-cmake-modules-f56b4fe57bccfb3bc5611bf75c8fb54c02bcd48c.tar.bz2 |
-add a test for FindBlitz.cmake
-change output prefix from ">>" to "::" (doesn't have to be quoted when grepping)
-add option CLEAN_DIRS to RunAllModuleTests.cmake, if you set this to TRUE, the previous test build directories will be removed before running the tests
Alex
svn path=/trunk/KDE/kdelibs/; revision=884400
Diffstat (limited to 'modules-tests/RunAllModuleTests.cmake')
-rw-r--r-- | modules-tests/RunAllModuleTests.cmake | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/modules-tests/RunAllModuleTests.cmake b/modules-tests/RunAllModuleTests.cmake index 537072c1..3e529a96 100644 --- a/modules-tests/RunAllModuleTests.cmake +++ b/modules-tests/RunAllModuleTests.cmake @@ -1,13 +1,16 @@ # run this script via "cmake -P RunAllModuletests.cmake" to # execute all module tests in one go. # To see only the results and not the other cmake output, -# you can grep for ">>". +# you can grep for "::". +# To have it delete the previous test build dirs, run it with -DCLEAN_DIRS=TRUE get_filename_component(currentDir "${CMAKE_CURRENT_LIST_FILE}" PATH) function(execute_one_test name) set(workingDir "${currentDir}/${name}/build") - file(REMOVE_RECURSE "${workingDir}") + if(CLEAN_DIRS) + file(REMOVE_RECURSE "${workingDir}") + endif(CLEAN_DIRS) file(MAKE_DIRECTORY "${workingDir}") execute_process(COMMAND ${CMAKE_COMMAND} "${currentDir}/${name}" WORKING_DIRECTORY "${workingDir}") @@ -16,5 +19,6 @@ endfunction(execute_one_test) execute_one_test(Xine) execute_one_test(Flex) execute_one_test(QCA2) +execute_one_test(Blitz) |