2014-01-20 22:50:31 +04:00
|
|
|
include(RunCMake)
|
|
|
|
|
2015-01-14 21:22:29 +03:00
|
|
|
run_cmake_command(E_tar-bad-opt1 ${CMAKE_COMMAND} -E tar cvf bad.tar --bad)
|
|
|
|
run_cmake_command(E_tar-bad-mtime1 ${CMAKE_COMMAND} -E tar cvf bad.tar --mtime=bad .)
|
2015-01-26 21:28:31 +03:00
|
|
|
run_cmake_command(E_tar-bad-from1 ${CMAKE_COMMAND} -E tar cvf bad.tar --files-from=bad)
|
|
|
|
run_cmake_command(E_tar-bad-from2 ${CMAKE_COMMAND} -E tar cvf bad.tar --files-from=.)
|
|
|
|
run_cmake_command(E_tar-bad-from3 ${CMAKE_COMMAND} -E tar cvf bad.tar --files-from=${CMAKE_CURRENT_LIST_DIR}/E_tar-bad-from3.txt)
|
|
|
|
run_cmake_command(E_tar-bad-from4 ${CMAKE_COMMAND} -E tar cvf bad.tar --files-from=${CMAKE_CURRENT_LIST_DIR}/E_tar-bad-from4.txt)
|
|
|
|
run_cmake_command(E_tar-bad-from5 ${CMAKE_COMMAND} -E tar cvf bad.tar --files-from=${CMAKE_CURRENT_LIST_DIR}/E_tar-bad-from5.txt)
|
2015-01-14 21:22:29 +03:00
|
|
|
run_cmake_command(E_tar-end-opt1 ${CMAKE_COMMAND} -E tar cvf bad.tar -- --bad)
|
|
|
|
run_cmake_command(E_tar-end-opt2 ${CMAKE_COMMAND} -E tar cvf bad.tar --)
|
|
|
|
run_cmake_command(E_tar-mtime ${CMAKE_COMMAND} -E tar cvf bad.tar "--mtime=1970-01-01 00:00:00 UTC")
|
|
|
|
|
2014-06-03 19:36:25 +04:00
|
|
|
run_cmake_command(build-no-cache
|
|
|
|
${CMAKE_COMMAND} --build ${RunCMake_SOURCE_DIR})
|
|
|
|
run_cmake_command(build-no-generator
|
|
|
|
${CMAKE_COMMAND} --build ${RunCMake_SOURCE_DIR}/cache-no-generator)
|
|
|
|
run_cmake_command(build-bad-generator
|
|
|
|
${CMAKE_COMMAND} --build ${RunCMake_SOURCE_DIR}/cache-bad-generator)
|
|
|
|
|
2014-01-20 22:50:31 +04:00
|
|
|
if(UNIX)
|
|
|
|
run_cmake_command(E_create_symlink-missing-dir
|
|
|
|
${CMAKE_COMMAND} -E create_symlink T missing-dir/L
|
|
|
|
)
|
|
|
|
|
|
|
|
# Use a single build tree for a few tests without cleaning.
|
|
|
|
set(RunCMake_TEST_BINARY_DIR
|
|
|
|
${RunCMake_BINARY_DIR}/E_create_symlink-broken-build)
|
|
|
|
set(RunCMake_TEST_NO_CLEAN 1)
|
|
|
|
file(REMOVE_RECURSE "${RunCMake_TEST_BINARY_DIR}")
|
|
|
|
run_cmake_command(E_create_symlink-broken-create
|
|
|
|
${CMAKE_COMMAND} -E create_symlink T L
|
|
|
|
)
|
|
|
|
run_cmake_command(E_create_symlink-broken-replace
|
|
|
|
${CMAKE_COMMAND} -E create_symlink . L
|
|
|
|
)
|
|
|
|
unset(RunCMake_TEST_BINARY_DIR)
|
|
|
|
unset(RunCMake_TEST_NO_CLEAN)
|
|
|
|
|
|
|
|
run_cmake_command(E_create_symlink-no-replace-dir
|
|
|
|
${CMAKE_COMMAND} -E create_symlink T .
|
|
|
|
)
|
|
|
|
endif()
|
2014-01-21 22:48:30 +04:00
|
|
|
|
2014-06-24 00:33:33 +04:00
|
|
|
run_cmake_command(E_env-no-command0 ${CMAKE_COMMAND} -E env)
|
|
|
|
run_cmake_command(E_env-no-command1 ${CMAKE_COMMAND} -E env TEST_ENV=1)
|
|
|
|
run_cmake_command(E_env-bad-arg1 ${CMAKE_COMMAND} -E env -bad-arg1)
|
|
|
|
run_cmake_command(E_env-set ${CMAKE_COMMAND} -E env TEST_ENV=1 ${CMAKE_COMMAND} -P ${RunCMake_SOURCE_DIR}/E_env-set.cmake)
|
|
|
|
run_cmake_command(E_env-unset ${CMAKE_COMMAND} -E env TEST_ENV=1 ${CMAKE_COMMAND} -E env --unset=TEST_ENV ${CMAKE_COMMAND} -P ${RunCMake_SOURCE_DIR}/E_env-unset.cmake)
|
|
|
|
|
2014-12-17 00:11:40 +03:00
|
|
|
set(RunCMake_DEFAULT_stderr ".")
|
2014-01-21 22:48:30 +04:00
|
|
|
run_cmake_command(E_sleep-no-args ${CMAKE_COMMAND} -E sleep)
|
2014-12-17 00:11:40 +03:00
|
|
|
unset(RunCMake_DEFAULT_stderr)
|
2014-01-21 22:48:30 +04:00
|
|
|
run_cmake_command(E_sleep-bad-arg1 ${CMAKE_COMMAND} -E sleep x)
|
|
|
|
run_cmake_command(E_sleep-bad-arg2 ${CMAKE_COMMAND} -E sleep 1 -1)
|
|
|
|
run_cmake_command(E_sleep-one-tenth ${CMAKE_COMMAND} -E sleep 0.1)
|
2014-06-10 00:19:07 +04:00
|
|
|
|
|
|
|
run_cmake_command(P_directory ${CMAKE_COMMAND} -P ${RunCMake_SOURCE_DIR})
|
2014-10-20 20:17:03 +04:00
|
|
|
|
|
|
|
set(RunCMake_TEST_OPTIONS
|
|
|
|
"-DFOO=-DBAR:BOOL=BAZ")
|
|
|
|
run_cmake(D_nested_cache)
|
|
|
|
|
|
|
|
set(RunCMake_TEST_OPTIONS
|
|
|
|
"-DFOO:STRING=-DBAR:BOOL=BAZ")
|
|
|
|
run_cmake(D_typed_nested_cache)
|