зеркало из https://github.com/microsoft/CCF.git
Construct perf TESTS_SUFFIX in cmake (#931)
This commit is contained in:
Родитель
5eaf260f8e
Коммит
79388b9dc2
|
@ -14,7 +14,6 @@ jobs:
|
|||
parameters:
|
||||
artifact_name: ${{ parameters.artifact_name }}
|
||||
cmake_args: ${{ parameters.cmake_args }}
|
||||
suite_label_suffix: '${{ parameters.target }}_${{ parameters.consensus }}'
|
||||
- template: test.yml
|
||||
parameters:
|
||||
ctest_filter: ${{ parameters.ctest_filter }}
|
||||
|
|
|
@ -15,7 +15,5 @@ steps:
|
|||
|
||||
- script: |
|
||||
cmake -L ${{ parameters.cmake_args }} -GNinja ..
|
||||
env:
|
||||
TESTS_SUFFIX: ${{ parameters.suite_label_suffix }}
|
||||
displayName: Re-generate test metadata
|
||||
workingDirectory: build
|
|
@ -11,8 +11,6 @@ project(
|
|||
LANGUAGES C CXX
|
||||
)
|
||||
|
||||
set(TESTS_SUFFIX $ENV{TESTS_SUFFIX})
|
||||
message(STATUS "Setting TESTS_SUFFIX on performance tests to '${TESTS_SUFFIX}'")
|
||||
set(ENV{BETTER_EXCEPTIONS} 1)
|
||||
|
||||
# Set the default install prefix for CCF. Users may override this value with the
|
||||
|
|
|
@ -467,10 +467,20 @@ function(add_perf_test)
|
|||
unset(VERIFICATION_ARG)
|
||||
endif()
|
||||
|
||||
set(TESTS_SUFFIX "")
|
||||
if("sgx" IN_LIST TARGET)
|
||||
set(TESTS_SUFFIX "${TESTS_SUFFIX}_SGX")
|
||||
endif()
|
||||
if("raft" STREQUAL ${PARSED_ARGS_CONSENSUS})
|
||||
set(TESTS_SUFFIX "${TESTS_SUFFIX}_CFT")
|
||||
elseif("pbft" STREQUAL ${PARSED_ARGS_CONSENSUS})
|
||||
set(TESTS_SUFFIX "${TESTS_SUFFIX}_BFT")
|
||||
endif()
|
||||
|
||||
if(PARSED_ARGS_LABEL)
|
||||
set(LABEL_ARG "${PARSED_ARGS_LABEL}_${TESTS_SUFFIX}^")
|
||||
set(LABEL_ARG "${PARSED_ARGS_LABEL}${TESTS_SUFFIX}^")
|
||||
else()
|
||||
set(LABEL_ARG "${PARSED_ARGS_NAME}_${TESTS_SUFFIX}^")
|
||||
set(LABEL_ARG "${PARSED_ARGS_NAME}${TESTS_SUFFIX}^")
|
||||
endif()
|
||||
|
||||
add_test(
|
||||
|
|
|
@ -42,7 +42,7 @@ if(BUILD_TESTS)
|
|||
PYTHON_SCRIPT ${CMAKE_CURRENT_LIST_DIR}/tests/small_bank_client.py
|
||||
CLIENT_BIN ./small_bank_client
|
||||
VERIFICATION_FILE ${SMALL_BANK_VERIFICATION_FILE}
|
||||
LABEL SB_${CONSENSUS}
|
||||
LABEL SB
|
||||
CONSENSUS ${CONSENSUS}
|
||||
ADDITIONAL_ARGS
|
||||
--transactions ${SMALL_BANK_ITERATIONS} --max-writes-ahead 1000
|
||||
|
|
Загрузка…
Ссылка в новой задаче