File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ UNIT = "unit"
23
23
# Name for a integration test
24
24
INTEGRATION = "integration"
25
25
26
+ TEST_SRCS = "test_srcs"
27
+
26
28
# Coding Standard levels
27
29
#
28
30
# Throughout this file and others there are references to coding
@@ -271,6 +273,9 @@ def _add_library(**kwargs):
271
273
kwargs ["tags" ] = [LIBRARY , level ] + (["portable" ] if portable else []) + kwargs .get ("tags" , [])
272
274
kwargs ["target_compatible_with" ] = kwargs .get ("target_compatible_with" , [])
273
275
276
+ if "test_library" in kwargs ["tags" ]:
277
+ kwargs ["tags" ].append ("test_srcs" )
278
+
274
279
_create_srcs (** kwargs )
275
280
_create_hdrs (** kwargs )
276
281
@@ -476,6 +481,10 @@ def swift_cc_test_library(**kwargs):
476
481
if "exceptions" not in kwargs :
477
482
kwargs ["exceptions" ] = True
478
483
484
+ if "tags" not in kwargs :
485
+ kwargs ["tags" ] = []
486
+ kwargs ["tags" ].append ("test_library" )
487
+
479
488
kwargs ["target_compatible_with" ] = _test_compatible_with ()
480
489
481
490
_add_library (lang = "cc" , level = INTERNAL , portable = False , ** kwargs )
You can’t perform that action at this time.
0 commit comments