summaryrefslogtreecommitdiffstats
path: root/Tests/MumpsCoverage
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/MumpsCoverage
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/MumpsCoverage')
-rw-r--r--Tests/MumpsCoverage/.gitattributes4
-rw-r--r--Tests/MumpsCoverage/RunTest.ctest.in8
2 files changed, 2 insertions, 10 deletions
diff --git a/Tests/MumpsCoverage/.gitattributes b/Tests/MumpsCoverage/.gitattributes
index 77a41f8..b680612 100644
--- a/Tests/MumpsCoverage/.gitattributes
+++ b/Tests/MumpsCoverage/.gitattributes
@@ -1,2 +1,2 @@
-*.cmcov -whitespace
-*.mcov -whitespace
+*.cmcov -crlf -whitespace
+*.mcov -crlf -whitespace
diff --git a/Tests/MumpsCoverage/RunTest.ctest.in b/Tests/MumpsCoverage/RunTest.ctest.in
deleted file mode 100644
index 3f9022a..0000000
--- a/Tests/MumpsCoverage/RunTest.ctest.in
+++ /dev/null
@@ -1,8 +0,0 @@
-execute_process(COMMAND "@CMAKE_CTEST_COMMAND@" -T Coverage --debug
- WORKING_DIRECTORY "@CMake_BINARY_DIR@/Testing/@_MUMPS_TEST_DIR@"
- RESULT_VARIABLE RES)
-if(${RES} EQUAL 0)
- message("Test passed")
-else()
- message(FATAL_ERROR "Error code running ctest=${RES}")
-endif()