aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/testing/unittest
diff options
context:
space:
mode:
authoralexv-smirnov <alex@ydb.tech>2023-03-15 19:59:12 +0300
committeralexv-smirnov <alex@ydb.tech>2023-03-15 19:59:12 +0300
commit056bb284ccf8dd6793ec3a54ffa36c4fb2b9ad11 (patch)
tree4740980126f32e3af7937ba0ca5f83e59baa4ab0 /library/cpp/testing/unittest
parent269126dcced1cc8b53eb4398b4a33e5142f10290 (diff)
downloadydb-056bb284ccf8dd6793ec3a54ffa36c4fb2b9ad11.tar.gz
add library/cpp/actors, ymake build to ydb oss export
Diffstat (limited to 'library/cpp/testing/unittest')
-rw-r--r--library/cpp/testing/unittest/fat/ya.make17
-rw-r--r--library/cpp/testing/unittest/pytests/test_subject/ya.make13
-rw-r--r--library/cpp/testing/unittest/pytests/ya.make21
-rw-r--r--library/cpp/testing/unittest/ut/ya.make8
-rw-r--r--library/cpp/testing/unittest/ya.make29
5 files changed, 88 insertions, 0 deletions
diff --git a/library/cpp/testing/unittest/fat/ya.make b/library/cpp/testing/unittest/fat/ya.make
new file mode 100644
index 0000000000..464f26818f
--- /dev/null
+++ b/library/cpp/testing/unittest/fat/ya.make
@@ -0,0 +1,17 @@
+UNITTEST()
+
+SRCS(
+ test_port_manager.cpp
+)
+
+SIZE(LARGE)
+
+# We need to run tests at the same time on the single machine
+FORK_SUBTESTS()
+
+TAG(
+ ya:fat
+ ya:force_sandbox
+)
+
+END()
diff --git a/library/cpp/testing/unittest/pytests/test_subject/ya.make b/library/cpp/testing/unittest/pytests/test_subject/ya.make
new file mode 100644
index 0000000000..c9990b674f
--- /dev/null
+++ b/library/cpp/testing/unittest/pytests/test_subject/ya.make
@@ -0,0 +1,13 @@
+UNITTEST()
+
+TAG(ya:manual)
+
+SRCS(
+ tests.cpp
+)
+
+PEERDIR(
+ library/cpp/testing/unittest
+)
+
+END()
diff --git a/library/cpp/testing/unittest/pytests/ya.make b/library/cpp/testing/unittest/pytests/ya.make
new file mode 100644
index 0000000000..bbc1c9dec3
--- /dev/null
+++ b/library/cpp/testing/unittest/pytests/ya.make
@@ -0,0 +1,21 @@
+PY3TEST()
+
+SIZE(MEDIUM)
+
+TEST_SRCS(
+ test_tear_down.py
+)
+
+PEERDIR(
+ library/python/testing/yatest_common
+)
+
+DEPENDS(
+ library/cpp/testing/unittest/pytests/test_subject
+)
+
+END()
+
+RECURSE(
+ test_subject
+)
diff --git a/library/cpp/testing/unittest/ut/ya.make b/library/cpp/testing/unittest/ut/ya.make
new file mode 100644
index 0000000000..86efa0d788
--- /dev/null
+++ b/library/cpp/testing/unittest/ut/ya.make
@@ -0,0 +1,8 @@
+UNITTEST_FOR(library/cpp/testing/unittest)
+
+SRCS(
+ main.cpp
+ registar_ut.cpp
+)
+
+END()
diff --git a/library/cpp/testing/unittest/ya.make b/library/cpp/testing/unittest/ya.make
new file mode 100644
index 0000000000..74bc67e83f
--- /dev/null
+++ b/library/cpp/testing/unittest/ya.make
@@ -0,0 +1,29 @@
+LIBRARY()
+
+PROVIDES(test_framework)
+
+PEERDIR(
+ library/cpp/colorizer
+ library/cpp/dbg_output
+ library/cpp/diff
+ library/cpp/json/writer
+ library/cpp/testing/common
+ library/cpp/testing/hook
+)
+
+SRCS(
+ gtest.cpp
+ checks.cpp
+ plugin.cpp
+ registar.cpp
+ tests_data.cpp
+ utmain.cpp
+)
+
+END()
+
+RECURSE_FOR_TESTS(
+ fat
+ pytests
+ ut
+)