diff options
author | Craig Scott <craig.scott@crascit.com> | 2018-03-04 07:59:04 (GMT) |
---|---|---|
committer | Craig Scott <craig.scott@crascit.com> | 2018-03-04 11:27:59 (GMT) |
commit | a865f0beb2e9f8d92e021855c773ab90eaf24581 (patch) | |
tree | 711814282871d976767ca2cafdc97342db5990f1 /Tests/RunCMake/WorkingDirectory/test.cmake.in | |
parent | 0e362b23e10e0d2b6c3726a94f42ac603304f63a (diff) | |
download | CMake-a865f0beb2e9f8d92e021855c773ab90eaf24581.zip CMake-a865f0beb2e9f8d92e021855c773ab90eaf24581.tar.gz CMake-a865f0beb2e9f8d92e021855c773ab90eaf24581.tar.bz2 |
Tests: Confirm test working dir set successfully
Specifically, this tests that setting WORKING_DIRECTORY
to an invalid directory results in the test failing.
Diffstat (limited to 'Tests/RunCMake/WorkingDirectory/test.cmake.in')
-rw-r--r-- | Tests/RunCMake/WorkingDirectory/test.cmake.in | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Tests/RunCMake/WorkingDirectory/test.cmake.in b/Tests/RunCMake/WorkingDirectory/test.cmake.in new file mode 100644 index 0000000..8eccd79 --- /dev/null +++ b/Tests/RunCMake/WorkingDirectory/test.cmake.in @@ -0,0 +1,15 @@ +cmake_minimum_required(VERSION 3.11) + +set(CTEST_SITE "test-site") +set(CTEST_BUILD_NAME "test-build-name") +set(CTEST_SOURCE_DIRECTORY "@RunCMake_BINARY_DIR@/@CASE_NAME@") +set(CTEST_BINARY_DIRECTORY "@RunCMake_BINARY_DIR@/@CASE_NAME@-build") +set(CTEST_CMAKE_GENERATOR "@RunCMake_GENERATOR@") +set(CTEST_CMAKE_GENERATOR_PLATFORM "@RunCMake_GENERATOR_PLATFORM@") +set(CTEST_CMAKE_GENERATOR_TOOLSET "@RunCMake_GENERATOR_TOOLSET@") +set(CTEST_BUILD_CONFIGURATION "$ENV{CMAKE_CONFIG_TYPE}") + +ctest_start(Experimental) +ctest_configure() +ctest_build() +ctest_test() |