diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2012-05-02 14:45:06 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2012-05-02 14:45:06 (GMT) |
commit | 62f6bce7a543a38965bfc2596afcd559e9fb7ee9 (patch) | |
tree | 8b133649b69819fe10385f4843d5b071e8aaca32 /Tests/MumpsCoverage | |
parent | f5c5db0753161726c6032178bb10eb41b1ddde02 (diff) | |
download | CMake-62f6bce7a543a38965bfc2596afcd559e9fb7ee9.zip CMake-62f6bce7a543a38965bfc2596afcd559e9fb7ee9.tar.gz CMake-62f6bce7a543a38965bfc2596afcd559e9fb7ee9.tar.bz2 |
Use a script to run the test because WORKING_DIRECTORY is not in 2.8.2.
add_test with WORKING_DIRECTORY is too new to use in cmake. This change
uses a configured script to run the command in the right directory.
Diffstat (limited to 'Tests/MumpsCoverage')
-rw-r--r-- | Tests/MumpsCoverage/RunTest.ctest.in | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/MumpsCoverage/RunTest.ctest.in b/Tests/MumpsCoverage/RunTest.ctest.in new file mode 100644 index 0000000..3f9022a --- /dev/null +++ b/Tests/MumpsCoverage/RunTest.ctest.in @@ -0,0 +1,8 @@ +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() |