summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/ctest_coverage/test.cmake.in
diff options
context:
space:
mode:
authorZack Galbreath <zack.galbreath@kitware.com>2015-02-17 20:57:26 (GMT)
committerBrad King <brad.king@kitware.com>2015-02-23 15:02:00 (GMT)
commitfc58bdb9ad90ddd41c5336bc1ab2e35fa0f74d41 (patch)
tree1f31cbc8688ad652568ac4005eea084477e2434f /Tests/RunCMake/ctest_coverage/test.cmake.in
parent876a680d4851a39e77b49daa3c670fe2e535c1e6 (diff)
downloadCMake-fc58bdb9ad90ddd41c5336bc1ab2e35fa0f74d41.zip
CMake-fc58bdb9ad90ddd41c5336bc1ab2e35fa0f74d41.tar.gz
CMake-fc58bdb9ad90ddd41c5336bc1ab2e35fa0f74d41.tar.bz2
ctest_coverage: Add QUIET option
Diffstat (limited to 'Tests/RunCMake/ctest_coverage/test.cmake.in')
-rw-r--r--Tests/RunCMake/ctest_coverage/test.cmake.in18
1 files changed, 18 insertions, 0 deletions
diff --git a/Tests/RunCMake/ctest_coverage/test.cmake.in b/Tests/RunCMake/ctest_coverage/test.cmake.in
new file mode 100644
index 0000000..1788e66
--- /dev/null
+++ b/Tests/RunCMake/ctest_coverage/test.cmake.in
@@ -0,0 +1,18 @@
+cmake_minimum_required(VERSION 3.1)
+
+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_COVERAGE_COMMAND "@COVERAGE_COMMAND@")
+
+set(ctest_coverage_args "@CASE_CTEST_COVERAGE_ARGS@")
+ctest_start(Experimental)
+ctest_configure()
+ctest_build()
+ctest_test()
+ctest_coverage(${ctest_coverage_args})