Browse Source

Cmake export semantics for YT-flavored UNITTESTs
f8d44be84710e6f8e5469c46e39ba6ac61a44ce8

svidyuk 10 months ago
parent
commit
45ae70c23d
1 changed files with 3 additions and 1 deletions
  1. 3 1
      build/ymake.core.conf

+ 3 - 1
build/ymake.core.conf

@@ -1290,6 +1290,7 @@ module _BASE_UNITTEST: _BASE_PROGRAM {
     .FINAL_TARGET=no
     .NODE_TYPE=Program
     .ALLOWED=YT_SPEC
+    .DEFAULT_NAME_GENERATOR=FullPath
     when ($UT_SKIP_EXCEPTIONS == "yes") {
         C_DEFINES+=-DUT_SKIP_EXCEPTIONS
     }
@@ -1320,7 +1321,6 @@ UNITTEST_SEM=$CPP_PROGRAM_SEM \
 ### Documentation: https://wiki.yandex-team.ru/yatool/test/#opisanievya.make1
 module UNITTEST: _BASE_UNITTEST {
     .SEM=UNITTEST_SEM
-    .DEFAULT_NAME_GENERATOR=FullPath
     .ARGS_PARSER=Base
     PEERDIR(library/cpp/testing/unittest_main)
     ADD_YTEST($MODULE_PREFIX$REALPRJNAME unittest.py)
@@ -1346,6 +1346,7 @@ module UNITTEST: _BASE_UNITTEST {
 ###
 ### YT Unit test module based on library/cpp/testing/unittest with NYT::Initialize hook
 module YT_UNITTEST: _BASE_UNITTEST {
+    .SEM=UNITTEST_SEM
     PEERDIR(library/cpp/testing/unittest_main yt/cpp/mapreduce/tests/yt_initialize_hook)
     ADD_YTEST($MODULE_PREFIX$REALPRJNAME unittest.py)
 }
@@ -1355,6 +1356,7 @@ module YT_UNITTEST: _BASE_UNITTEST {
 ###
 ### Generic unit test module.
 module UNITTEST_WITH_CUSTOM_ENTRY_POINT: _BASE_UNITTEST {
+    .SEM=UNITTEST_SEM
     ADD_YTEST($MODULE_PREFIX$REALPRJNAME unittest.py)
 }