summaryrefslogtreecommitdiffstats
path: root/Tests/BootstrapTest.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-11-14 14:18:51 (GMT)
committerBrad King <brad.king@kitware.com>2013-11-18 13:26:22 (GMT)
commit8ee6b4763034439ce5aada285de5fa584144c6c6 (patch)
tree51d95672e9ea2f33e0522bcfd3b7906bd23c916b /Tests/BootstrapTest.cmake
parent7fc7624af5403e6bff9dbc99da398be314c0b223 (diff)
downloadCMake-8ee6b4763034439ce5aada285de5fa584144c6c6.zip
CMake-8ee6b4763034439ce5aada285de5fa584144c6c6.tar.gz
CMake-8ee6b4763034439ce5aada285de5fa584144c6c6.tar.bz2
Tests: Launch BootstrapTest through cmake instead of ctest
Run the bootstrap script through "cmake -P" instead of "ctest --build-and-test" so that we do not need to abuse the --build-makeprogram option of the latter.
Diffstat (limited to 'Tests/BootstrapTest.cmake')
-rw-r--r--Tests/BootstrapTest.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/Tests/BootstrapTest.cmake b/Tests/BootstrapTest.cmake
new file mode 100644
index 0000000..9c9fe09
--- /dev/null
+++ b/Tests/BootstrapTest.cmake
@@ -0,0 +1,10 @@
+file(MAKE_DIRECTORY "${bin_dir}")
+message(STATUS "running bootstrap: ${bootstrap}")
+execute_process(
+ COMMAND ${bootstrap}
+ WORKING_DIRECTORY "${bin_dir}"
+ RESULT_VARIABLE result
+ )
+if(result)
+ message(FATAL_ERROR "bootstrap failed: ${result}")
+endif()