The variable has nothing to do with the binary directory of deal.II itself.
Consequently, strip the "DEAL_II_"
-DTRGT=${_diff_target}
-DTEST=${_test_full}
-DEXPECT=${_expect}
- -DDEAL_II_BINARY_DIR=${CMAKE_BINARY_DIR}
+ -DBINARY_DIR=${CMAKE_BINARY_DIR}
-DGUARD_FILE=${CMAKE_CURRENT_BINARY_DIR}/${_target}/interrupt_guard.cc
-P ${DEAL_II_PATH}/${DEAL_II_SHARE_RELDIR}/scripts/run_test.cmake
WORKING_DIRECTORY ${_test_directory}
#
# TRGT - the name of the target that should be invoked
# TEST - the test name (used for status messages)
-# DEAL_II_BINARY_DIR - the build directory that contains the target
+# BINARY_DIR - the build directory that contains the target
#
# Optional options:
# EXPECT - the stage this test must reach to be considered successful
ENDIF()
EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND}
- --build ${DEAL_II_BINARY_DIR} --target ${TRGT}
+ --build ${BINARY_DIR} --target ${TRGT}
RESULT_VARIABLE _result_code # ignored ;-)
OUTPUT_VARIABLE _output
)
)
ADD_TEST(NAME ${_test}
COMMAND ${CMAKE_COMMAND} -DTRGT=${_target} -DTEST=${_test}
- -DDEAL_II_BINARY_DIR=${CMAKE_BINARY_DIR} -DEXPECT=CONFIGURE
+ -DBINARY_DIR=${CMAKE_BINARY_DIR} -DEXPECT=CONFIGURE
-P ${DEAL_II_PATH}/${DEAL_II_SHARE_RELDIR}/scripts/run_test.cmake
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
)
# And finally add the test:
ADD_TEST(NAME ${_test}
COMMAND ${CMAKE_COMMAND} -DTRGT=${_target}.build -DTEST=${_test}
- -DDEAL_II_BINARY_DIR=${CMAKE_BINARY_DIR}
+ -DBINARY_DIR=${CMAKE_BINARY_DIR}
-DGUARD_FILE=${CMAKE_CURRENT_BINARY_DIR}/${_target}_interrupt_guard.cc
-P ${DEAL_II_PATH}/${DEAL_II_SHARE_RELDIR}/scripts/run_test.cmake
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
# And finally add the test:
ADD_TEST(NAME ${_test}
COMMAND ${CMAKE_COMMAND} -DTRGT=${_target} -DTEST=${_test}
- -DDEAL_II_BINARY_DIR=${CMAKE_BINARY_DIR}
+ -DBINARY_DIR=${CMAKE_BINARY_DIR}
-DGUARD_FILE=${_step_dir}/interrupt_guard
-P ${DEAL_II_PATH}/${DEAL_II_SHARE_RELDIR}/scripts/run_test.cmake
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMAND ${CMAKE_COMMAND}
-DTRGT=${_mesh}.diff
-DTEST=${_test_full}
- -DDEAL_II_BINARY_DIR=${CMAKE_BINARY_DIR}
+ -DBINARY_DIR=${CMAKE_BINARY_DIR}
-P ${DEAL_II_SOURCE_DIR}/tests/run_test.cmake
WORKING_DIRECTORY ${_test_directory}
)
ADD_TEST(NAME ${_target}
COMMAND ${CMAKE_COMMAND} -DTRGT=${_target}.run -DTEST=${_target}
- -DDEAL_II_BINARY_DIR=${CMAKE_BINARY_DIR}
+ -DBINARY_DIR=${CMAKE_BINARY_DIR}
-P ${CMAKE_SOURCE_DIR}/cmake/scripts/run_test.cmake
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
)