Files
gui/core/test/CMakeLists.txt
Claude e5842d2223 Add file transfers to the Windows app
Port the file transfer protocols of the D-Modem app to libdmodemctl:
ZMODEM (with automatic receive for sz, rz and kermit -s), YMODEM,
XMODEM, XMODEM-1K, Kermit, Intel HEX, Motorola S-records and plain
text. Each transfer runs on its thread, with two queues to the app.

The Windows app gets a Transfer menu, Send File and Receive File
dialogs, a progress dialog, and Send and Receive buttons on the
Terminal page. A transfer uses the modem line or the Remote login.

Also:
- link_pump takes only as much session output as the port can hold.
  Before, a large output was cut.
- The winport shims for serial, pipes, the environment and Beep are
  guarded, because the latest clang-retro MFC layer has them.
- core/test/xfer_test tests each protocol on a clean and a noisy
  line, and against lrzsz and C-Kermit when they are installed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRekyRUhR43KbmGNXK
2026-11-20 22:01:10 +00:00

15 lines
628 B
CMake

add_executable(dmodemctl_test dmodemctl_test.c)
target_link_libraries(dmodemctl_test PRIVATE dmodemctl)
target_include_directories(dmodemctl_test PRIVATE ../src)
add_test(NAME dmodemctl COMMAND dmodemctl_test ${CMAKE_CURRENT_SOURCE_DIR})
# the file transfers: both ways in memory, and against lrzsz and C-Kermit
# when they are installed (a pseudo-terminal: POSIX only)
if(UNIX)
add_executable(xfer_test xfer_test.c)
target_link_libraries(xfer_test PRIVATE dmodemctl)
target_include_directories(xfer_test PRIVATE ../src)
add_test(NAME xfer COMMAND xfer_test)
set_tests_properties(xfer PROPERTIES TIMEOUT 600)
endif()