1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
|
function(addtest name)
add_test(
NAME "test.${name}"
COMMAND bash ${CMAKE_SOURCE_DIR}/test/run ${name}
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
)
set_tests_properties(
"test.${name}"
PROPERTIES
ENVIRONMENT "CCACHE=$<TARGET_FILE:ccache>;EXIT_IF_SKIPPED=true"
SKIP_RETURN_CODE 125)
endfunction()
if(${CMAKE_VERSION} VERSION_LESS "3.15")
set(clean_files_prop_name ADDITIONAL_MAKE_CLEAN_FILES)
else()
set(clean_files_prop_name ADDITIONAL_CLEAN_FILES)
endif()
set_property(
DIRECTORY PROPERTY
${clean_files_prop_name} "${CMAKE_BINARY_DIR}/testdir")
addtest(base)
addtest(basedir)
addtest(cache_levels)
addtest(clang_cu)
addtest(clang_cu_alias)
addtest(clang_cu_direct)
addtest(cleanup)
addtest(color_diagnostics)
addtest(config)
addtest(debug_compilation_dir)
addtest(debug_prefix_map)
addtest(depend)
addtest(direct)
addtest(fileclone)
addtest(hardlink)
addtest(inode_cache)
addtest(input_charset)
addtest(ivfsoverlay)
addtest(masquerading)
addtest(modules)
addtest(multi_arch)
addtest(namespace)
addtest(no_compression)
addtest(nvcc)
addtest(nvcc_direct)
addtest(nvcc_ldir)
addtest(pch)
addtest(profiling)
addtest(profiling_clang)
addtest(profiling_gcc)
addtest(profiling_gcc_10+)
addtest(profiling_hip_clang)
addtest(readonly)
addtest(readonly_direct)
addtest(remote_file)
if(HTTP_STORAGE_BACKEND)
addtest(remote_http)
endif()
addtest(remote_only)
addtest(remote_redis)
addtest(remote_redis_unix)
addtest(remote_url)
addtest(sanitize_blacklist)
addtest(serialize_diagnostics)
addtest(source_date_epoch)
addtest(split_dwarf)
addtest(stats_log)
addtest(trim_dir)
addtest(upgrade)
|