Skip to content

Commit

Permalink
systemtests: minio: certgen only when found minio
Browse files Browse the repository at this point in the history
  • Loading branch information
pstorz authored and arogge committed Jan 9, 2024
1 parent 81b499b commit 622e60b
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions systemtests/CMakeLists.txt
Expand Up @@ -184,17 +184,19 @@ else()
set(TEST_INFO_TEXT "running system tests on the sourcetree")
endif()

execute_process(
COMMAND "${CMAKE_BINARY_DIR}/systemtests/scripts/generate_minio_certs.sh"
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/systemtests/tls/minio/"
RESULT_VARIABLE RESULT_GENERATE_MINIO_CERTS
OUTPUT_QUIET ERROR_QUIET
)
if(NOT "${RESULT_GENERATE_MINIO_CERTS}" STREQUAL "0")
message(
FATAL_ERROR
"Creation of certificates failed: ${RESULT_GENERATE_MINIO_CERTS} ${CMAKE_BINARY_DIR}"
if(MINIO)
execute_process(
COMMAND "${CMAKE_BINARY_DIR}/systemtests/scripts/generate_minio_certs.sh"
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/systemtests/tls/minio/"
RESULT_VARIABLE RESULT_GENERATE_MINIO_CERTS
OUTPUT_QUIET ERROR_QUIET
)
if(NOT "${RESULT_GENERATE_MINIO_CERTS}" STREQUAL "0")
message(
FATAL_ERROR
"Creation of certificates failed: ${RESULT_GENERATE_MINIO_CERTS} ${CMAKE_BINARY_DIR}"
)
endif()
endif()

configure_file(
Expand Down

0 comments on commit 622e60b

Please sign in to comment.