mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-08-22 15:11:31 +00:00
[client] clipboard: introduce streamed transfers
This commit is contained in:
@@ -428,6 +428,10 @@ set(CLIPBOARD_CASES
|
||||
generation
|
||||
local
|
||||
reentrant
|
||||
stream-local
|
||||
stream-blocked
|
||||
stream-remote
|
||||
stream-legacy
|
||||
)
|
||||
foreach(name IN LISTS CLIPBOARD_CASES)
|
||||
add_test(NAME clipboard-${name}
|
||||
@@ -438,6 +442,34 @@ foreach(name IN LISTS CLIPBOARD_CASES)
|
||||
)
|
||||
endforeach()
|
||||
|
||||
add_executable(spice-clipboard-tests
|
||||
spice_clipboard_test.c
|
||||
../src/clipboard.c
|
||||
../transports/SPICE/clipboard.c
|
||||
)
|
||||
target_compile_definitions(spice-clipboard-tests PRIVATE
|
||||
CIMGUI_DEFINE_ENUMS_AND_STRUCTS=1
|
||||
)
|
||||
target_include_directories(spice-clipboard-tests PRIVATE
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/../src"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/../transports/SPICE"
|
||||
"${PROJECT_TOP}/repos/PureSpice/include"
|
||||
"${PROJECT_TOP}/repos/gui/cimgui"
|
||||
"${PROJECT_TOP}/repos/gui/cimgui/imgui"
|
||||
)
|
||||
target_link_libraries(spice-clipboard-tests
|
||||
${EXE_FLAGS}
|
||||
lg_common
|
||||
)
|
||||
foreach(name IN ITEMS outbound inbound)
|
||||
add_test(NAME spice-clipboard-${name}
|
||||
COMMAND spice-clipboard-tests ${name}
|
||||
)
|
||||
set_tests_properties(spice-clipboard-${name} PROPERTIES
|
||||
TIMEOUT 10
|
||||
)
|
||||
endforeach()
|
||||
|
||||
add_executable(transport-fallback-tests
|
||||
transport_fallback_test.c
|
||||
../src/transport_fallback.c
|
||||
|
||||
Reference in New Issue
Block a user