Skip to content

Commit

Permalink
WIP: fixing bugs on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
vfonov committed Jan 15, 2023
1 parent 5a18b1c commit e214021
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions testdir/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
LINK_LIBRARIES(${LIBMINC_LIBRARIES})
find_program (SH_PROGRAM sh)

MACRO(minc_test cmd)
# minc 1 version
IF(HAVE_MINC1)
ADD_TEST(${cmd}-1 ${CMAKE_CURRENT_SOURCE_DIR}/run_test_cmake.sh ${CMAKE_CURRENT_BINARY_DIR}/${cmd} ${CMAKE_CURRENT_SOURCE_DIR}/${cmd}.out)
ADD_TEST(${cmd}-1 ${SH_PROGRAM} ${CMAKE_CURRENT_SOURCE_DIR}/run_test_cmake.sh ${CMAKE_CURRENT_BINARY_DIR}/${cmd} ${CMAKE_CURRENT_SOURCE_DIR}/${cmd}.out)
ENDIF(HAVE_MINC1)

ADD_TEST(${cmd}-2 ${CMAKE_CURRENT_SOURCE_DIR}/run_test2_cmake.sh ${CMAKE_CURRENT_BINARY_DIR}/${cmd} ${CMAKE_CURRENT_SOURCE_DIR}/${cmd}.out)
ADD_TEST(${cmd}-2 ${SH_PROGRAM} ${CMAKE_CURRENT_SOURCE_DIR}/run_test2_cmake.sh ${CMAKE_CURRENT_BINARY_DIR}/${cmd} ${CMAKE_CURRENT_SOURCE_DIR}/${cmd}.out)

IF(MINC_TEST_ENVIRONMENT)
set_tests_properties( ${cmd}-1 PROPERTIES ENVIRONMENT "${MINC_TEST_ENVIRONMENT}")
Expand Down

0 comments on commit e214021

Please sign in to comment.