Gtest timeout fix (#4078)
* PT1 * typo * timeout * gtest_1.12.1 * cspell isnore cmakelistst , it seem to freeze when checking these files * timeout for cmake generate * timeout for cmake generate p2 * timeout for cmake generate p3 * timeout for cmake generate p4 * timeout for cmake generate p5 * PR * node 18 * nppm * npm * bug in cspell, freezed on txt files * AntonComment extra space * cspell
This commit is contained in:
Родитель
13100c5985
Коммит
1da78ce13e
|
@ -15,7 +15,7 @@ if(CMAKE_VERSION VERSION_LESS 3.11)
|
|||
download_project(
|
||||
PROJ googletest
|
||||
GIT_REPOSITORY https://github.com/google/googletest.git
|
||||
GIT_TAG release-1.11.0
|
||||
GIT_TAG release-1.12.1
|
||||
UPDATE_DISCONNECTED 1
|
||||
QUIET
|
||||
)
|
||||
|
@ -29,7 +29,7 @@ else()
|
|||
FetchContent_Declare(
|
||||
googletest
|
||||
GIT_REPOSITORY https://github.com/google/googletest.git
|
||||
GIT_TAG release-1.11.0
|
||||
GIT_TAG release-1.12.1
|
||||
)
|
||||
FetchContent_GetProperties(googletest)
|
||||
if(NOT googletest_POPULATED)
|
||||
|
|
|
@ -14,6 +14,9 @@ parameters:
|
|||
- name: CMakeSourceTestOptions
|
||||
type: object
|
||||
default: []
|
||||
- name: TimeoutInMinutes
|
||||
type: number
|
||||
default: 120
|
||||
|
||||
jobs:
|
||||
- template: /eng/common/pipelines/templates/jobs/archetype-sdk-tests-generate.yml
|
||||
|
|
|
@ -28,9 +28,13 @@ parameters:
|
|||
- name: JobName
|
||||
type: string
|
||||
default: CMakeGenerate
|
||||
- name: TimeoutInMinutes
|
||||
type: number
|
||||
default: 120
|
||||
|
||||
jobs:
|
||||
- job: ${{ parameters.JobName }}
|
||||
timeoutInMinutes: ${{ parameters.TimeoutInMinutes }}
|
||||
condition: >-
|
||||
and(
|
||||
succeededOrFailed(),
|
||||
|
|
|
@ -73,13 +73,16 @@ parameters:
|
|||
- name: PostTestSteps
|
||||
type: stepList
|
||||
default: []
|
||||
|
||||
- name: CMakeGenerationTimeoutInMinutes
|
||||
type: number
|
||||
default: 120
|
||||
|
||||
stages:
|
||||
- stage: CMakeGeneration
|
||||
jobs:
|
||||
- template: /eng/pipelines/templates/jobs/cmake-generate-jobs.yml
|
||||
parameters:
|
||||
TimeoutInMinutes: ${{ parameters.CMakeGenerationTimeoutInMinutes }}
|
||||
ServiceDirectory: ${{ parameters.ServiceDirectory }}
|
||||
Artifacts: ${{ parameters.Artifacts }}
|
||||
ArtifactsSource: ${{ parameters.ArtifactsSource }}
|
||||
|
|
|
@ -37,4 +37,6 @@ create_map_file(azure-security-attestation-test azure-security-attestation-test.
|
|||
|
||||
target_link_libraries(azure-security-attestation-test PRIVATE Azure::azure-security-attestation azure-identity azure-core-test-fw gtest_main)
|
||||
|
||||
gtest_discover_tests(azure-security-attestation-test TEST_PREFIX azure-security-attestation.)
|
||||
gtest_discover_tests(azure-security-attestation-test
|
||||
DISCOVERY_TIMEOUT 600
|
||||
TEST_PREFIX azure-security-attestation.)
|
||||
|
|
|
@ -67,4 +67,5 @@ create_map_file(azure-core-tracing-opentelemetry-test azure-core-tracing-opentel
|
|||
gtest_discover_tests(azure-core-tracing-opentelemetry-test
|
||||
TEST_PREFIX azure-core-tracing-opentelemetry.
|
||||
NO_PRETTY_TYPES
|
||||
NO_PRETTY_VALUES)
|
||||
NO_PRETTY_VALUES
|
||||
DISCOVERY_TIMEOUT 600)
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
"Type": "git",
|
||||
"git": {
|
||||
"RepositoryUrl": "https://github.com/google/googletest",
|
||||
"CommitHash": "e2239ee6043f73722e7aa812a459f54a28552929"
|
||||
"CommitHash": "58d77fa8070e8cec2dc1ed015d66b454c8d78850"
|
||||
}
|
||||
},
|
||||
"DevelopmentDependency": true
|
||||
|
|
|
@ -150,7 +150,8 @@ target_link_libraries(azure-core-global-context-test PRIVATE azure-core gtest_ma
|
|||
gtest_discover_tests(azure-core-test
|
||||
TEST_PREFIX azure-core.
|
||||
NO_PRETTY_TYPES
|
||||
NO_PRETTY_VALUES)
|
||||
NO_PRETTY_VALUES
|
||||
DISCOVERY_TIMEOUT 600)
|
||||
|
||||
if(BUILD_TRANSPORT_CURL)
|
||||
################## Azure Libcurl Core Test #################################
|
||||
|
@ -177,10 +178,12 @@ if(BUILD_TRANSPORT_CURL)
|
|||
|
||||
# Use the same prefix to run this test
|
||||
gtest_discover_tests(azure-core-libcurl-test
|
||||
TEST_PREFIX azure-core.)
|
||||
TEST_PREFIX azure-core.
|
||||
DISCOVERY_TIMEOUT 600)
|
||||
|
||||
endif()
|
||||
gtest_discover_tests(azure-core-global-context-test
|
||||
TEST_PREFIX azure-core.
|
||||
NO_PRETTY_TYPES
|
||||
NO_PRETTY_VALUES)
|
||||
NO_PRETTY_VALUES
|
||||
DISCOVERY_TIMEOUT 600)
|
||||
|
|
|
@ -70,5 +70,6 @@ target_link_libraries(azure-perf-unit-test PRIVATE azure-perf gtest gtest_main)
|
|||
gtest_discover_tests(azure-perf-unit-test
|
||||
TEST_PREFIX azure-perf-unittest.
|
||||
NO_PRETTY_TYPES
|
||||
NO_PRETTY_VALUES)
|
||||
NO_PRETTY_VALUES
|
||||
DISCOVERY_TIMEOUT 600)
|
||||
|
||||
|
|
|
@ -59,4 +59,5 @@ target_link_libraries(azure-identity-test PRIVATE azure-identity azure-core-test
|
|||
gtest_discover_tests(azure-identity-test
|
||||
TEST_PREFIX azure-identity.
|
||||
NO_PRETTY_TYPES
|
||||
NO_PRETTY_VALUES)
|
||||
NO_PRETTY_VALUES
|
||||
DISCOVERY_TIMEOUT 600)
|
||||
|
|
|
@ -37,4 +37,4 @@ gtest_discover_tests(azure-security-keyvault-certificates-test
|
|||
TEST_PREFIX azure-security-keyvault-certificates.
|
||||
NO_PRETTY_TYPES
|
||||
NO_PRETTY_VALUES
|
||||
)
|
||||
DISCOVERY_TIMEOUT 600)
|
||||
|
|
|
@ -62,4 +62,4 @@ gtest_discover_tests(azure-security-keyvault-keys-test
|
|||
TEST_PREFIX azure-security-keyvault-keys.
|
||||
NO_PRETTY_TYPES
|
||||
NO_PRETTY_VALUES
|
||||
)
|
||||
DISCOVERY_TIMEOUT 600)
|
||||
|
|
|
@ -44,4 +44,4 @@ gtest_discover_tests(azure-security-keyvault-secrets-test
|
|||
TEST_PREFIX azure-security-keyvault-secrets-unittest.
|
||||
NO_PRETTY_TYPES
|
||||
NO_PRETTY_VALUES
|
||||
)
|
||||
DISCOVERY_TIMEOUT 600)
|
||||
|
|
|
@ -48,4 +48,5 @@ target_link_libraries(azure-storage-blobs-test PRIVATE azure-identity azure-stor
|
|||
gtest_discover_tests(azure-storage-blobs-test
|
||||
TEST_PREFIX azure-storage-blobs.
|
||||
NO_PRETTY_TYPES
|
||||
NO_PRETTY_VALUES)
|
||||
NO_PRETTY_VALUES
|
||||
DISCOVERY_TIMEOUT 600)
|
||||
|
|
|
@ -40,4 +40,5 @@ target_link_libraries(azure-storage-common-test PRIVATE azure-storage-common azu
|
|||
gtest_discover_tests(azure-storage-common-test
|
||||
TEST_PREFIX azure-storage-common.
|
||||
NO_PRETTY_TYPES
|
||||
NO_PRETTY_VALUES)
|
||||
NO_PRETTY_VALUES
|
||||
DISCOVERY_TIMEOUT 600)
|
||||
|
|
|
@ -44,4 +44,5 @@ target_link_libraries(azure-storage-files-datalake-test PRIVATE azure-storage-fi
|
|||
gtest_discover_tests(azure-storage-files-datalake-test
|
||||
TEST_PREFIX azure-storage-files-datalake.
|
||||
NO_PRETTY_TYPES
|
||||
NO_PRETTY_VALUES)
|
||||
NO_PRETTY_VALUES
|
||||
DISCOVERY_TIMEOUT 600)
|
||||
|
|
|
@ -42,4 +42,5 @@ target_link_libraries(azure-storage-files-shares-test PRIVATE azure-storage-file
|
|||
gtest_discover_tests(azure-storage-files-shares-test
|
||||
TEST_PREFIX azure-storage-files-shares.
|
||||
NO_PRETTY_TYPES
|
||||
NO_PRETTY_VALUES)
|
||||
NO_PRETTY_VALUES
|
||||
DISCOVERY_TIMEOUT 600)
|
||||
|
|
|
@ -37,4 +37,5 @@ target_link_libraries(azure-storage-queues-test PRIVATE azure-storage-queues azu
|
|||
gtest_discover_tests(azure-storage-queues-test
|
||||
TEST_PREFIX azure-storage-queues.
|
||||
NO_PRETTY_TYPES
|
||||
NO_PRETTY_VALUES)
|
||||
NO_PRETTY_VALUES
|
||||
DISCOVERY_TIMEOUT 600)
|
||||
|
|
|
@ -25,4 +25,6 @@ if (MSVC)
|
|||
target_compile_options(azure-template-test PUBLIC /wd6326 /wd26495 /wd26812)
|
||||
endif()
|
||||
|
||||
gtest_discover_tests(azure-template-test TEST_PREFIX azure-template.)
|
||||
gtest_discover_tests(azure-template-test
|
||||
TEST_PREFIX azure-template.
|
||||
DISCOVERY_TIMEOUT 600)
|
||||
|
|
Загрузка…
Ссылка в новой задаче