Skip to content

Commit 6efdad8

Browse files
committed
Exclude test case via option
1 parent 23be804 commit 6efdad8

File tree

3 files changed

+4
-14
lines changed

3 files changed

+4
-14
lines changed

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,5 @@ ctest -j$(nproc) --preset release-integration
143143
Note that some tests use a legacy test library instead of GoogleTest, see `./<test_target> --help` for details. If you need to run only certain test cases, here is an alternative for `--gtest_filter` option:
144144

145145
```bash
146-
cat <<EOF | ./<test_target> --filter-file /dev/fd/0
147-
-ExcludedTestCase
148-
+IncludedTestCase
149-
+IncludedTestCase::TestName
150-
EOF
146+
./<test_target> --filter-file -ExcludedTestSuite +IncludedTestSuite::TestName
151147
```

library/cpp/blockcodecs/CMakeLists.txt

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,8 @@ if (YDB_SDK_TESTS)
88
LABELS
99
unit
1010
TEST_ARG
11-
--filter-file filter.txt
12-
)
13-
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/filter.txt
14-
# Exclude this test case, because we don't use zstd06
15-
"-TBlockCodecsTest::TestListAllCodecs"
11+
# Exclude this test case, because we don't use zstd06
12+
-TBlockCodecsTest::TestListAllCodecs
1613
)
1714
endif(YDB_SDK_TESTS)
1815

util/CMakeLists.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,7 @@ if (YDB_SDK_TESTS)
185185
LABELS
186186
unit
187187
TEST_ARG
188-
--filter-file filter.txt
189-
)
190-
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/random/filter.txt
191-
"-TestCommonRNG::TestStlCompatibility"
188+
-TestCommonRNG::TestStlCompatibility
192189
)
193190

194191
add_ydb_test(NAME util-stream-ut

0 commit comments

Comments
 (0)