Skip to content

Commit

Permalink
uniform bash invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
jcschaff committed Jul 28, 2024
1 parent 3ab17cf commit 85351be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion NFsim_v1.11/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ else (MINGW)
set(test_src_dir ${CMAKE_CURRENT_SOURCE_DIR}/tests/test1)
set(test_nfsim_exe ${CMAKE_BINARY_DIR}/bin/${exe_target})
add_test(NAME ${exe_target}_test1 COMMAND ${test_src_dir}/test1.py ${test_nfsim_exe} WORKING_DIRECTORY ${test_src_dir})
add_test(NAME ${exe_target}_test2 COMMAND ${test_src_dir}/test2.sh ${test_nfsim_exe} WORKING_DIRECTORY ${test_src_dir})
# add_test(NAME ${exe_target}_test2 COMMAND ${test_src_dir}/test2.sh ${test_nfsim_exe} WORKING_DIRECTORY ${test_src_dir})
add_test(NAME ${exe_target}_test2 COMMAND bash -c "${test_src_dir}/test2.sh ${test_nfsim_exe}" WORKING_DIRECTORY ${test_src_dir})
endif (MINGW)

install(TARGETS ${exe_target} RUNTIME DESTINATION ${OPTION_EXE_DIRECTORY})
Expand Down

0 comments on commit 85351be

Please sign in to comment.