Add YT_UNITTEST (with custom main needed for yt cli initialization)
@@ -632,6 +632,13 @@ module TOOL: PROGRAM {
# DISABLE(SANITIZER_TYPE)
}
+module UNITTEST_BASE: BASE_PROGRAM {
+ when ($UT_SKIP_EXCEPTIONS == "yes") {
+ C_DEFINES+=-DUT_SKIP_EXCEPTIONS
+ }
+ ADD_YTEST($REALPRJNAME unittest.py)
+}
+
### @usage: UNITTEST ([name])
###
### Project Definition-unit test.
@@ -639,13 +646,14 @@ module TOOL: PROGRAM {
### is used only in conjunction with the END() macro
### It is recommended not to specify the name (name) UNITTEST-and explicitly
### Documentation: https://wiki.yandex-team.ru/yatool/test/#opisanievya. make1
-module UNITTEST: BASE_PROGRAM {
+module UNITTEST: UNITTEST_BASE {
.NODE_TYPE=Test
PEERDIR(library/unittest/main)
- when ($UT_SKIP_EXCEPTIONS == "yes") {
- C_DEFINES+=-DUT_SKIP_EXCEPTIONS
}
- ADD_YTEST($REALPRJNAME unittest.py)
+
+module YT_UNITTEST: UNITTEST_BASE {
+ .NODE_TYPE=Test
+ PEERDIR(mapreduce/yt/library/utlib)
}
USE_AFL=no
