Skip to content

Commit 049c6d3

Browse files
committed
Revert "REMOVE? Testfix"
This reverts commit ec765d5.
1 parent ae78079 commit 049c6d3

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

CMakeLists.txt

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -804,25 +804,11 @@ function(add_caf_test name num_caf_img test_target)
804804
endif()
805805
endif()
806806
set(test_parameters -np ${num_caf_img} ${test_parameters})
807-
if(WIN32)
808-
set(LAUNCHER "${CMAKE_INSTALL_BINDIR}/cafrun.bat")
809-
else()
810-
set(LAUNCHER "${BASH_EXECUTABLE}" "${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_BINDIR}/cafrun")
811-
endif()
812807
if(DEFINED ARGN)
813-
add_test(
814-
NAME ${name}
815-
COMMAND "${LAUNCHER}" ${test_parameters} "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${test_target}" ${ARGN}
816-
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
817-
)
808+
add_test(NAME ${name} COMMAND "${BASH_EXECUTABLE}" "${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_BINDIR}/cafrun" ${test_parameters} "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${test_target}" ${ARGN})
818809
else()
819-
add_test(
820-
NAME ${name}
821-
COMMAND "${LAUNCHER}" ${test_parameters} "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${test_target}"
822-
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
823-
)
810+
add_test(NAME ${name} COMMAND "${BASH_EXECUTABLE}" "${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_BINDIR}/cafrun" ${test_parameters} "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${test_target}")
824811
endif()
825-
set_property(TEST ${name} PROPERTY TEST_LAUCHNER "")
826812
set_property(TEST ${name} PROPERTY PASS_REGULAR_EXPRESSION "Test passed.")
827813
endfunction(add_caf_test)
828814

0 commit comments

Comments
 (0)