aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorThomas Vanbesien <tvanbesi@proton.me>2026-02-18 22:17:30 +0100
committerThomas Vanbesien <tvanbesi@proton.me>2026-02-18 22:17:30 +0100
commit77e70beff33d89f30082f3e5d513cd657fa529ea (patch)
tree2943ddf1eb2709c8dc4414f93e4e8461d889cea5 /CMakeLists.txt
parent95f40458a9dd927fba35624564b64b5f973dd9fe (diff)
downloadBobinkCOpcUa-77e70beff33d89f30082f3e5d513cd657fa529ea.tar.gz
BobinkCOpcUa-77e70beff33d89f30082f3e5d513cd657fa529ea.zip
Add download-cert client operation with integration test
Retrieves the server's DER certificate via GetEndpoints and writes it to a local file. The test starts a secure ServerLDS, downloads its certificate, and verifies it matches the original.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 78b8711..5b117b6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -78,3 +78,9 @@ foreach(_name _policy IN ZIP_LISTS _test_names _test_policies)
set_tests_properties("${_name}" PROPERTIES WORKING_DIRECTORY
"${CMAKE_SOURCE_DIR}" TIMEOUT 30)
endforeach()
+
+add_test(NAME "download_cert"
+ COMMAND bash "${CMAKE_SOURCE_DIR}/tests/run_download_cert_test.sh"
+ "tests/secure_anonymous")
+set_tests_properties(
+ "download_cert" PROPERTIES WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}" TIMEOUT 30)