Skip to content

Commit e87860e

Browse files
authored
Fixed SDK tests without pq and topic tests (ydb-platform#127)
1 parent 747a847 commit e87860e

File tree

91 files changed

+295
-3416
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+295
-3416
lines changed

.github/actions/build/action.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ runs:
2121
cd ../build
2222
export CCACHE_BASEDIR=`realpath ..`
2323
export CCACHE_DIR=~/.ccache
24-
ninja
24+
ninja -j32
2525
ccache -s

.github/workflows/pr_check.yaml

+8-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ on:
77
pull_request:
88
branches:
99
- main
10-
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
12+
cancel-in-progress: true
1113
jobs:
1214
main:
1315
name: PR check for YDB C++ SDK
@@ -55,6 +57,11 @@ jobs:
5557
ubuntu-22.04-ccache-
5658
- name: Build
5759
uses: ./.github/actions/build
60+
- name: Test
61+
shell: bash
62+
run: |
63+
cd ../build/tests
64+
ctest -j32 --timeout 1200 --output-on-failure
5865
- name: Launch basic example
5966
shell: bash
6067
run: |

.gitignore

-15
Original file line numberDiff line numberDiff line change
@@ -55,21 +55,6 @@ __pycache__/
5555
*.kdev4
5656

5757
# Other symlinks
58-
contrib/python/protobuf/py3/google.protobuf.internal._api_implementation.reg3.cpp
59-
contrib/python/protobuf/py3/google.protobuf.pyext._message.reg3.cpp
60-
contrib/tools/python3/src/Modules/_sqlite/_sqlite3.reg3.cpp
61-
contrib/tools/ragel6/all_cd.cpp
62-
contrib/tools/ragel6/all_cs.cpp
63-
contrib/tools/ragel6/all_fs.cpp
64-
contrib/tools/ragel6/all_go.cpp
65-
contrib/tools/ragel6/all_ml.cpp
66-
contrib/tools/ragel6/all_other.cpp
67-
contrib/tools/ragel6/all_r.cpp
68-
library/python/runtime_py3/__res.pyx.cpp
69-
library/python/runtime_py3/__res.reg3.cpp
70-
library/python/runtime_py3/sitecustomize.pyx.cpp
71-
library/python/runtime_py3/sitecustomize.reg3.cpp
72-
library/python/symbols/module/library.python.symbols.module.syms.reg3.cpp
7358
util/all_datetime.cpp
7459
util/all_digest.cpp
7560
util/all_folder.cpp

CMakeLists.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ include(cmake/common.cmake)
2222
include(cmake/global_flags.cmake)
2323
include(cmake/protobuf.cmake)
2424
include(cmake/global_vars.cmake)
25-
2625
include(cmake/external_libs.cmake)
26+
include(cmake/testing.cmake)
2727

2828
add_subdirectory(tools)
2929
add_subdirectory(contrib)
@@ -32,3 +32,4 @@ add_subdirectory(util)
3232
add_subdirectory(ydb)
3333
add_subdirectory(client)
3434
add_subdirectory(examples)
35+
add_subdirectory(tests)

README.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ If you ok with this warning, then...
3636
- libidn11-dev (IDN)
3737
- libiconv (Iconv)
3838

39-
## Testing
39+
## Testing requirements
4040

4141
- gtest
4242
- gmock
@@ -114,3 +114,10 @@ cmake -G Ninja -DCMAKE_BUILD_TYPE=Release \
114114
cd build
115115
ninja
116116
```
117+
118+
## Test
119+
120+
```bash
121+
cd ../build/tests
122+
ctest -j32 --timeout 1200 --output-on-failure
123+
```

client/draft/CMakeLists.txt

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# add_subdirectory(ut)
2-
31
add_library(cpp-client-draft)
42

53
target_link_libraries(cpp-client-draft PUBLIC

client/draft/ut/CMakeLists.darwin-arm64.txt

-72
This file was deleted.

client/draft/ut/CMakeLists.darwin-x86_64.txt

-73
This file was deleted.

client/draft/ut/CMakeLists.linux-aarch64.txt

-76
This file was deleted.

client/draft/ut/CMakeLists.linux-x86_64.txt

-78
This file was deleted.

0 commit comments

Comments
 (0)