Skip to content

Issue #205 Fix library/cpp/threading/future tests #302

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ jobs:
shell: bash
run: |
ctest -j32 --preset release-unit
ctest --preset release-unit-mt

integration:
concurrency:
Expand Down
17 changes: 17 additions & 0 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,23 @@
"filter" : {
"include": {
"label": "unit"
},
"exclude": {
"label": "unit-multithreaded"
}
}
},
{
"name": "release-unit-mt",
"inherits": "common",
"configurePreset": "release-test",
"displayName": "Unit Release Mutlithreaded Tests",
"execution": {
"jobs": 1
},
"filter" : {
"include": {
"label": "unit-multithreaded"
}
}
},
Expand Down
61 changes: 60 additions & 1 deletion library/cpp/threading/future/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,69 @@
if (YDB_SDK_TESTS)
add_ydb_test(NAME threading-future-async_ut
SOURCES
async_ut.cpp
LINK_LIBRARIES
threading-future
cpp-testing-unittest_main
LABELS
unit
)

add_ydb_test(NAME threading-future-legacy_future_ut
SOURCES
legacy_future_ut.cpp
LINK_LIBRARIES
threading-future
cpp-testing-unittest_main
LABELS
unit
)

add_ydb_test(NAME threading-future-async_semaphore_ut
SOURCES
async_semaphore_ut.cpp
LINK_LIBRARIES
threading-future
cpp-testing-unittest_main
LABELS
unit
)

add_ydb_test(NAME threading-future-future_ut
SOURCES
future_ut.cpp
LINK_LIBRARIES
threading-future
cpp-testing-unittest_main
LABELS
unit
)

add_ydb_test(NAME threading-future-future_mt_ut
SOURCES
future_mt_ut.cpp
LINK_LIBRARIES
threading-future
cpp-testing-unittest_main
LABELS
unit-multithreaded
)
set_yunittest_property(
TEST
threading-future-future_mt_ut
PROPERTY
TIMEOUT
1500
)
endif(YDB_SDK_TESTS)

_ydb_sdk_add_library(threading-future)

target_link_libraries(threading-future PUBLIC
yutil
)

target_sources(threading-future
target_sources(threading-future
PRIVATE
async_semaphore.cpp
async.cpp
Expand Down
Loading