diff options
author | Alexander Neundorf <neundorf@kde.org> | 2008-11-14 20:45:30 +0000 |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2008-11-14 20:45:30 +0000 |
commit | de54277a5fca412232a166928233861106c99f7a (patch) | |
tree | af211ecbc650824be6d353b0939f13b2460c4db7 /modules-tests/RunAllModuleTests.cmake | |
parent | edbb4a8a70a894c46be88fa9cb7ef38a6032fcc1 (diff) | |
download | extra-cmake-modules-de54277a5fca412232a166928233861106c99f7a.tar.gz extra-cmake-modules-de54277a5fca412232a166928233861106c99f7a.tar.bz2 |
-add a test for FindQCA2.cmake
-add a macro test_find_package(<package> <prefix> <var_without_prefix1>...<var_without_prefixN>) for executing a mdoule and printing the results
-add cmake script RunAllModuleTests.cmake which can be used to run all existing tests in one go
Alex
svn path=/trunk/KDE/kdelibs/; revision=884395
Diffstat (limited to 'modules-tests/RunAllModuleTests.cmake')
-rw-r--r-- | modules-tests/RunAllModuleTests.cmake | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/modules-tests/RunAllModuleTests.cmake b/modules-tests/RunAllModuleTests.cmake new file mode 100644 index 00000000..537072c1 --- /dev/null +++ b/modules-tests/RunAllModuleTests.cmake @@ -0,0 +1,20 @@ +# 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 ">>". + +get_filename_component(currentDir "${CMAKE_CURRENT_LIST_FILE}" PATH) + +function(execute_one_test name) + set(workingDir "${currentDir}/${name}/build") + file(REMOVE_RECURSE "${workingDir}") + file(MAKE_DIRECTORY "${workingDir}") + execute_process(COMMAND ${CMAKE_COMMAND} "${currentDir}/${name}" + WORKING_DIRECTORY "${workingDir}") +endfunction(execute_one_test) + +execute_one_test(Xine) +execute_one_test(Flex) +execute_one_test(QCA2) + + |