Skip to content

Commit f378303

Browse files
committed
Contract test conditionally supports proxies.
1 parent 2a49349 commit f378303

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

contract-tests/client-contract-tests/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ project(
88
LANGUAGES CXX
99
)
1010

11+
if (LD_CURL_NETWORKING)
12+
target_compile_definitions(${LIBNAME} PUBLIC LD_CURL_NETWORKING)
13+
endif()
14+
1115
include(${CMAKE_FILES}/json.cmake)
1216

1317
add_executable(client-tests

contract-tests/client-contract-tests/src/main.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ int main(int argc, char* argv[]) {
4747
srv.add_capability("tls:skip-verify-peer");
4848
srv.add_capability("tls:custom-ca");
4949
srv.add_capability("client-prereq-events");
50+
// Proxies are supported only with CURL networking.
51+
#ifdef LD_CURL_NETWORKING
5052
srv.add_capability("http-proxy");
53+
#endif
5154

5255
net::signal_set signals{ioc, SIGINT, SIGTERM};
5356

0 commit comments

Comments
 (0)