Fix ctest gmssl path bug

This commit is contained in:
Zhi Guan
2024-06-02 13:06:06 +08:00
parent c0f0ed0449
commit 86d6284d9a
6 changed files with 23 additions and 23 deletions

View File

@@ -16,7 +16,7 @@ if(NOT EXISTS enckey.pem)
endif()
execute_process(
COMMAND bash -c "sudo nohup gmssl tls12_server -port 4333 -cert tls_server_certs.pem -key signkey.pem -pass P@ssw0rd > tls12_server.log 2>&1 &"
COMMAND bash -c "sudo nohup bin/gmssl tls12_server -port 4333 -cert tls_server_certs.pem -key signkey.pem -pass P@ssw0rd > tls12_server.log 2>&1 &"
RESULT_VARIABLE SERVER_RESULT
TIMEOUT 5
)
@@ -27,7 +27,7 @@ endif()
execute_process(COMMAND ${CMAKE_COMMAND} -E sleep 2)
execute_process(
COMMAND bash -c "gmssl tls12_client -host localhost -port 4333 -cacert rootcacert.pem > tls12_client.log 2>&1"
COMMAND bash -c "bin/gmssl tls12_client -host localhost -port 4333 -cacert rootcacert.pem > tls12_client.log 2>&1"
RESULT_VARIABLE CLIENT_RESULT
TIMEOUT 5
)