mirror of
https://github.com/arun11299/cpp-subprocess.git
synced 2025-08-16 10:16:38 -04:00

* windows: add util functions * windows: add cmake files * windows: add travis.yml * windows: address compatibility - set cxx standard - conditionally exclude codecvt * windows: improve test coverage * windows: improve test coverage * windows: consolidate tests * windows: disable failing test * windows: modify read_atmost_n to use file object * windows: modify read_all to use file object * windows: update read_all test to use new api * windows: implement main subprocess logic * windows: add macro names * windows: setup comm channels * windows: compatibility fixes
20 lines
554 B
CMake
20 lines
554 B
CMake
set(test_names test_subprocess test_cat test_env test_err_redirection test_split test_main test_ret_code)
|
|
set(test_files env_script.sh write_err.sh write_err.txt)
|
|
|
|
foreach(test_name IN LISTS test_names)
|
|
add_executable(${test_name} ${test_name}.cc)
|
|
|
|
add_test(
|
|
NAME ${test_name}
|
|
COMMAND $<TARGET_FILE:${test_name}>
|
|
)
|
|
endforeach()
|
|
|
|
foreach(test_file IN LISTS test_files)
|
|
configure_file(
|
|
${CMAKE_CURRENT_SOURCE_DIR}/${test_file}
|
|
${CMAKE_CURRENT_BINARY_DIR}/${test_file}
|
|
COPYONLY
|
|
)
|
|
endforeach()
|