File tree Expand file tree Collapse file tree 1 file changed +2
-16
lines changed
Expand file tree Collapse file tree 1 file changed +2
-16
lines changed Original file line number Diff line number Diff 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." )
827813endfunction (add_caf_test)
828814
You can’t perform that action at this time.
0 commit comments