summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeLists.txt
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2012-05-02 15:51:38 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2012-05-02 15:51:38 (GMT)
commit220afcaf842b9df501b4235df841395878c971e8 (patch)
tree885f9ebed20e9c62f38e8017f1457f4642caad5e /Tests/CMakeLists.txt
parent62f6bce7a543a38965bfc2596afcd559e9fb7ee9 (diff)
downloadCMake-220afcaf842b9df501b4235df841395878c971e8.zip
CMake-220afcaf842b9df501b4235df841395878c971e8.tar.gz
CMake-220afcaf842b9df501b4235df841395878c971e8.tar.bz2
Use <TARGET_FILE> expression to run ctest so it works with Xcode and VS IDE.
Also add -crlf to the .gitconfig to handle the coverage data.
Diffstat (limited to 'Tests/CMakeLists.txt')
-rw-r--r--Tests/CMakeLists.txt24
1 files changed, 8 insertions, 16 deletions
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt
index fbcd97e..f2175fc 100644
--- a/Tests/CMakeLists.txt
+++ b/Tests/CMakeLists.txt
@@ -1719,14 +1719,10 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=master -P ${CMake_SOURCE_DIR}/Utilities/
"${CMake_BINARY_DIR}/Testing/MumpsCoverage/gtm_coverage.mcov")
file(COPY "${CMake_SOURCE_DIR}/Tests/MumpsCoverage/VistA-FOIA"
DESTINATION "${CMake_BINARY_DIR}/Testing/MumpsCoverage")
- set(_MUMPS_TEST_DIR MumpsCoverage)
- configure_file(
- "${CMake_SOURCE_DIR}/Tests/MumpsCoverage/RunTest.ctest.in"
- "${CMake_BINARY_DIR}/Testing/MumpsCoverage/RunTest.ctest"
- @ONLY)
- add_test(CTestGTMCoverage
- ${CMAKE_CTEST_COMMAND}
- -S ${CMake_BINARY_DIR}/Testing/MumpsCoverage/RunTest.ctest)
+ add_test(NAME CTestGTMCoverage
+ COMMAND cmake -E chdir
+ ${CMake_BINARY_DIR}/Testing/MumpsCoverage
+ $<TARGET_FILE:ctest> -T Coverage --debug)
set_tests_properties(CTestGTMCoverage PROPERTIES
PASS_REGULAR_EXPRESSION
"Process file.*XINDEX.m.*Total LOC:.*127.*Percentage Coverage: 85.83.*")
@@ -1739,14 +1735,10 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=master -P ${CMake_SOURCE_DIR}/Utilities/
"${CMake_BINARY_DIR}/Testing/MumpsCacheCoverage/cache_coverage.cmcov")
file(COPY "${CMake_SOURCE_DIR}/Tests/MumpsCoverage/VistA-FOIA"
DESTINATION "${CMake_BINARY_DIR}/Testing/MumpsCacheCoverage")
- set(_MUMPS_TEST_DIR MumpsCacheCoverage)
- configure_file(
- "${CMake_SOURCE_DIR}/Tests/MumpsCoverage/RunTest.ctest.in"
- "${CMake_BINARY_DIR}/Testing/MumpsCacheCoverage/RunTest.ctest"
- @ONLY)
- add_test(CTestCacheCoverage
- ${CMAKE_CTEST_COMMAND}
- -S ${CMake_BINARY_DIR}/Testing/MumpsCacheCoverage/RunTest.ctest)
+ add_test(NAME CTestCacheCoverage
+ COMMAND cmake -E chdir
+ ${CMake_BINARY_DIR}/Testing/MumpsCacheCoverage
+ $<TARGET_FILE:ctest> -T Coverage --debug)
set_tests_properties(CTestCacheCoverage PROPERTIES
PASS_REGULAR_EXPRESSION
"Process file.*XINDEX.m.*Total LOC:.*125.*Percentage Coverage: 85.60.*")