summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/ctest_skipped_test/test.cmake.in
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2017-04-21 17:46:09 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2017-04-24 19:42:40 (GMT)
commitab8bbef9c6e588bc023ec8a773c78e33e3a61813 (patch)
tree200afa2cf5cf3f07cfbba6f7a7b224c19e8e06d7 /Tests/RunCMake/ctest_skipped_test/test.cmake.in
parent202a44a4cab0ebf2c89fb878cd2ee634fb83906c (diff)
downloadCMake-ab8bbef9c6e588bc023ec8a773c78e33e3a61813.zip
CMake-ab8bbef9c6e588bc023ec8a773c78e33e3a61813.tar.gz
CMake-ab8bbef9c6e588bc023ec8a773c78e33e3a61813.tar.bz2
cmCTestTestHandler: count skipped tests as disabled
The `Skipped` status is basically a runtime version of the `Disabled` status (set as a property on the test by the configure step), so treat them the same.
Diffstat (limited to 'Tests/RunCMake/ctest_skipped_test/test.cmake.in')
-rw-r--r--Tests/RunCMake/ctest_skipped_test/test.cmake.in16
1 files changed, 16 insertions, 0 deletions
diff --git a/Tests/RunCMake/ctest_skipped_test/test.cmake.in b/Tests/RunCMake/ctest_skipped_test/test.cmake.in
new file mode 100644
index 0000000..ca23c83
--- /dev/null
+++ b/Tests/RunCMake/ctest_skipped_test/test.cmake.in
@@ -0,0 +1,16 @@
+cmake_minimum_required(VERSION 3.7)
+
+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}")
+
+set(ctest_test_args "@CASE_CTEST_TEST_ARGS@")
+ctest_start(Experimental)
+ctest_configure()
+ctest_build()
+ctest_test(${ctest_test_args})