summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/WorkingDirectory/RunCMakeTest.cmake
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2018-03-04 10:30:35 (GMT)
committerCraig Scott <craig.scott@crascit.com>2018-03-04 11:27:59 (GMT)
commite654622aee22655c418a9c663fad79243ca0c819 (patch)
tree059f37f02283b368388e50f360ffbace9e8f0a49 /Tests/RunCMake/WorkingDirectory/RunCMakeTest.cmake
parenta865f0beb2e9f8d92e021855c773ab90eaf24581 (diff)
downloadCMake-e654622aee22655c418a9c663fad79243ca0c819.zip
CMake-e654622aee22655c418a9c663fad79243ca0c819.tar.gz
CMake-e654622aee22655c418a9c663fad79243ca0c819.tar.bz2
Tests: Add --build-and-test test case
Checks that giving an invalid build directory to ctest --build-and-test will fail.
Diffstat (limited to 'Tests/RunCMake/WorkingDirectory/RunCMakeTest.cmake')
-rw-r--r--Tests/RunCMake/WorkingDirectory/RunCMakeTest.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/RunCMake/WorkingDirectory/RunCMakeTest.cmake b/Tests/RunCMake/WorkingDirectory/RunCMakeTest.cmake
index a57cacb..a7685ae 100644
--- a/Tests/RunCMake/WorkingDirectory/RunCMakeTest.cmake
+++ b/Tests/RunCMake/WorkingDirectory/RunCMakeTest.cmake
@@ -1,3 +1,9 @@
include(RunCTest)
run_ctest(dirNotExist)
+run_ctest(buildAndTestNoBuildDir
+ --build-and-test
+ ${RunCMake_BINARY_DIR}/buildAndTestNoBuildDir
+ ${RunCMake_BINARY_DIR}/buildAndTestNoBuildDir/CMakeLists.txt # Deliberately a file
+ --build-generator "${RunCMake_GENERATOR}"
+)