git-svn-id: https://svn.dealii.org/branches/branch_port_the_testsuite@30418
0785d39b-7218-0410-832d-
ea1e28bc413d
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${_test}/diff
)
+ IF(CMAKE_GENERATOR MATCHES "Makefiles")
+ SET(_test_suffix "/fast")
+ ENDIF()
ADD_TEST(NAME ${_category}/${_test}
COMMAND ${CMAKE_COMMAND}
-DTEST=${_test}
+ -DTEST_SUFFIX=${_test_suffix}
-DDEAL_II_BINARY_DIR=${CMAKE_BINARY_DIR}
-P ${CMAKE_SOURCE_DIR}/cmake/scripts/run_test.cmake
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${_test}
#
-# The following variables have to be set:
+# TODO: The following variables have to be set:
#
# TEST
+# TEST_SUFFIX
# DEAL_II_BINARY_DIR
#
-MACRO(CALLBACK _target _msg_success _msg_error)
+MACRO(CALLBACK _target _target_suffix _msg_success _msg_error)
EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND}
- --build ${DEAL_II_BINARY_DIR} --target ${_target}
+ --build ${DEAL_II_BINARY_DIR} --target ${_target}${_target_suffix}
RESULT_VARIABLE _result_code
OUTPUT_VARIABLE _output
)
ENDMACRO()
-CALLBACK(${TEST}
+CALLBACK(${TEST} "${TEST_SUFFIX}"
"Build successful" "BUILD FAILED"
)
-CALLBACK(${TEST}.run
+CALLBACK(${TEST} ".run"
"Run successful" "RUN FAILED"
)
-CALLBACK(${TEST}.diff
+CALLBACK(${TEST} ".diff"
"Diff successful" "DIFF FAILED"
)
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams