Skip to content

Commit

Permalink
demos: Copy test files over instead of setting the workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg-nenashev committed Sep 24, 2023
1 parent 006c268 commit 26e3129
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions demo/wiremock/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@ set(TARGET_OUT demo_wiremock_module.out)
set(VANILLA_OUT demo_vanilla.out)

include_directories(${testcontainers-c_SOURCE_DIR})
# WORKING_DIRECTORY breaks shared lib loading
file(COPY test_data DESTINATION ${CMAKE_CURRENT_BINARY_DIR})

# Vanilla Demo for WireMock
add_executable(${VANILLA_OUT} wiremock_demo_vanilla.c)
add_dependencies(${VANILLA_OUT} testcontainers-c-shim)
target_link_libraries(${VANILLA_OUT} PRIVATE testcontainers-c)
add_test(NAME vanilla_smoke COMMAND ${VANILLA_OUT}
WORKING_DIRECTORY ${testcontainers-c-wiremock-demo_SOURCE_DIR})
add_test(NAME vanilla_smoke COMMAND ${VANILLA_OUT})

# WireMock Module demo
add_executable(${TARGET_OUT} wiremock_demo.c)
add_dependencies(${VANILLA_OUT} testcontainers-c-shim)
target_include_directories(${TARGET_OUT} PRIVATE ${testcontainers-c-wiremock_SOURCE_DIR})
target_link_libraries(${TARGET_OUT} PRIVATE testcontainers-c)
target_link_libraries(${TARGET_OUT} PRIVATE testcontainers-c-wiremock)
add_test(NAME wiremock_module_smoke COMMAND ${TARGET_OUT}
WORKING_DIRECTORY ${testcontainers-c-wiremock-demo_SOURCE_DIR})
add_test(NAME wiremock_module_smoke COMMAND ${TARGET_OUT})

0 comments on commit 26e3129

Please sign in to comment.