Warning, /frameworks/kdelibs4support/cmake/modules-tests/RunAllModuleTests.cmake is written in an unsupported language. File is not indexed.
0001 # Run this script via "cmake -P RunAllModuletests.cmake" to 0002 # execute all module tests in one go. 0003 # Run this script with "cmake -DMODULE=foo -P RunAllModuletests.cmake" to 0004 # test only the one specified module. 0005 # To see only the results and not the other cmake output, 0006 # you can grep for "::". 0007 # To have it delete the previous test build dirs, run it with -DCLEAN_DIRS=TRUE 0008 0009 get_filename_component(currentDir "${CMAKE_CURRENT_LIST_FILE}" PATH) 0010 0011 function(execute_one_test name) 0012 set(workingDir "${currentDir}/${name}/build") 0013 if(CLEAN_DIRS) 0014 file(REMOVE_RECURSE "${workingDir}") 0015 endif(CLEAN_DIRS) 0016 file(MAKE_DIRECTORY "${workingDir}") 0017 execute_process(COMMAND ${CMAKE_COMMAND} "${currentDir}/${name}" 0018 WORKING_DIRECTORY "${workingDir}") 0019 # now the same with pkg-config disabled 0020 set(workingDir "${currentDir}/${name}/build-no-pkgconfig") 0021 if(CLEAN_DIRS) 0022 file(REMOVE_RECURSE "${workingDir}") 0023 endif(CLEAN_DIRS) 0024 file(MAKE_DIRECTORY "${workingDir}") 0025 execute_process(COMMAND ${CMAKE_COMMAND} -DPKG_CONFIG_EXECUTABLE=echo "${currentDir}/${name}" 0026 WORKING_DIRECTORY "${workingDir}") 0027 endfunction(execute_one_test) 0028 0029 if(DEFINED MODULE) 0030 set(modulesToTest ${MODULE}) 0031 else(DEFINED MODULE) 0032 set(modulesToTest AGG 0033 Blitz 0034 BlueZ 0035 ENCHANT 0036 Eigen2 0037 FFmpeg 0038 Flac 0039 GObject 0040 GStreamer 0041 LCMS 0042 LibArt 0043 OpenEXR 0044 PCRE 0045 QCA2 0046 QImageBlitz 0047 Sqlite 0048 USB 0049 Xine 0050 Xmms) 0051 endif(DEFINED MODULE) 0052 0053 foreach(currentModule ${modulesToTest}) 0054 execute_one_test(${currentModule}) 0055 endforeach(currentModule ${modulesToTest}) 0056