Skip to content

Commit b1a2b73

Browse files
authored
Split statistics tests (#7122)
1 parent ca82090 commit b1a2b73

File tree

14 files changed

+94
-11
lines changed

14 files changed

+94
-11
lines changed

ydb/core/statistics/ut/ut_aggregator.cpp renamed to ydb/core/statistics/aggregator/ut/ut_aggregator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "ut_common.h"
1+
#include <ydb/core/statistics/ut_common/ut_common.h>
22

33
#include <ydb/library/actors/testlib/test_runtime.h>
44

ydb/core/statistics/ut/ya.make renamed to ydb/core/statistics/aggregator/ut/ya.make

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
UNITTEST_FOR(ydb/core/statistics)
1+
UNITTEST_FOR(ydb/core/statistics/aggregator)
22

33
FORK_SUBTESTS()
44

@@ -17,15 +17,11 @@ PEERDIR(
1717
library/cpp/testing/unittest
1818
ydb/core/protos
1919
ydb/core/testlib/default
20+
ydb/core/statistics/ut_common
2021
)
2122

2223
SRCS(
23-
ut_common.h
24-
ut_common.cpp
2524
ut_aggregator.cpp
26-
ut_statistics.cpp
27-
ut_database.cpp
28-
#ut_service.cpp
2925
)
3026

3127
END()

ydb/core/statistics/aggregator/ya.make

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,7 @@ PEERDIR(
3636
YQL_LAST_ABI_VERSION()
3737

3838
END()
39+
40+
RECURSE_FOR_TESTS(
41+
ut
42+
)

ydb/core/statistics/ut/ut_database.cpp renamed to ydb/core/statistics/database/ut/ut_database.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "ut_common.h"
1+
#include <ydb/core/statistics/ut_common/ut_common.h>
22

33
#include <ydb/core/statistics/events.h>
44
#include <ydb/core/statistics/database/database.h>
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
UNITTEST_FOR(ydb/core/statistics/database)
2+
3+
FORK_SUBTESTS()
4+
5+
IF (WITH_VALGRIND)
6+
TIMEOUT(3600)
7+
SIZE(LARGE)
8+
TAG(ya:fat)
9+
ELSE()
10+
TIMEOUT(600)
11+
SIZE(MEDIUM)
12+
ENDIF()
13+
14+
YQL_LAST_ABI_VERSION()
15+
16+
PEERDIR(
17+
library/cpp/testing/unittest
18+
ydb/core/protos
19+
ydb/core/testlib/default
20+
ydb/core/statistics/ut_common
21+
)
22+
23+
SRCS(
24+
ut_database.cpp
25+
)
26+
27+
END()

ydb/core/statistics/database/ya.make

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,7 @@ PEERDIR(
1717
YQL_LAST_ABI_VERSION()
1818

1919
END()
20+
21+
RECURSE_FOR_TESTS(
22+
ut
23+
)

ydb/core/statistics/ut/ut_statistics.cpp renamed to ydb/core/statistics/service/ut/ut_basic_statistics.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "ut_common.h"
1+
#include <ydb/core/statistics/ut_common/ut_common.h>
22

33
#include <ydb/library/actors/testlib/test_runtime.h>
44

@@ -82,7 +82,7 @@ void ValidateRowCount(TTestActorRuntime& runtime, ui32 nodeIndex, TPathId pathId
8282

8383
} // namespace
8484

85-
Y_UNIT_TEST_SUITE(Statistics) {
85+
Y_UNIT_TEST_SUITE(BasicStatistics) {
8686

8787
Y_UNIT_TEST(Simple) {
8888
TTestEnv env(1, 1);
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
UNITTEST_FOR(ydb/core/statistics/service)
2+
3+
FORK_SUBTESTS()
4+
5+
IF (WITH_VALGRIND)
6+
TIMEOUT(3600)
7+
SIZE(LARGE)
8+
TAG(ya:fat)
9+
ELSE()
10+
TIMEOUT(600)
11+
SIZE(MEDIUM)
12+
ENDIF()
13+
14+
YQL_LAST_ABI_VERSION()
15+
16+
PEERDIR(
17+
library/cpp/testing/unittest
18+
ydb/core/protos
19+
ydb/core/testlib/default
20+
ydb/core/statistics/ut_common
21+
)
22+
23+
SRCS(
24+
ut_basic_statistics.cpp
25+
ut_service.cpp
26+
)
27+
28+
END()
29+

ydb/core/statistics/service/ya.make

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,8 @@ PEERDIR(
2121
YQL_LAST_ABI_VERSION()
2222

2323
END()
24+
25+
RECURSE_FOR_TESTS(
26+
ut
27+
)
28+

ydb/core/statistics/ut_common/ya.make

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
LIBRARY()
2+
3+
SRCS(
4+
ut_common.cpp
5+
ut_common.h
6+
)
7+
8+
PEERDIR(
9+
ydb/core/testlib
10+
)
11+
12+
YQL_LAST_ABI_VERSION()
13+
14+
END()
15+

ydb/core/statistics/ya.make

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,11 @@ RECURSE(
2020
aggregator
2121
database
2222
service
23+
ut_common
2324
)
2425

2526
RECURSE_FOR_TESTS(
26-
ut
27+
aggregator/ut
28+
database/ut
29+
service/ut
2730
)

0 commit comments

Comments
 (0)