Skip to content

Commit

Permalink
Propagate tags to more targets.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 570684107
  • Loading branch information
cpovirk authored and copybara-github committed Oct 4, 2023
1 parent b6d3f6a commit d92d143
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
3 changes: 2 additions & 1 deletion build_defs/internal_do_not_use/gen_j2cl_tests.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ gen_j2cl_tests(
"""

load(":j2cl_test.bzl", "j2cl_test")
load(":j2cl_library.bzl", "j2cl_library")
load(":j2cl_test.bzl", "j2cl_test")
load(":j2cl_util.bzl", "get_java_package")

def gen_j2cl_tests(
Expand Down Expand Up @@ -66,6 +66,7 @@ def gen_j2cl_tests(
deps = deps + lib_deps,
srcs = supporting_lib_files,
plugins = lib_plugins + plugins,
tags = tags,
testonly = 1,
generate_build_test = generate_build_test,
# Safe here as this is for tests only and there are no downstream users.
Expand Down
5 changes: 3 additions & 2 deletions build_defs/internal_do_not_use/gen_j2kt_tests.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ gen_j2cl_tests(
"""

load(":j2kt_test.bzl", "j2kt_native_test")
load(":j2kt_library.bzl", "j2kt_native_library")
load(":j2cl_util.bzl", "get_java_package")
load(":j2kt_library.bzl", "j2kt_native_library")
load(":j2kt_test.bzl", "j2kt_native_test")

def gen_j2kt_native_tests(
name,
Expand Down Expand Up @@ -61,6 +61,7 @@ def gen_j2kt_native_tests(
deps = deps + lib_deps,
srcs = supporting_lib_files,
plugins = lib_plugins + plugins,
tags = tags,
testonly = 1,
)

Expand Down
3 changes: 2 additions & 1 deletion build_defs/internal_do_not_use/gen_j2wasm_tests.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ gen_j2wasm_tests(
"""

load(":j2cl_util.bzl", "get_java_package")
load(":j2wasm_library.bzl", "j2wasm_library")
load(":j2wasm_test.bzl", "j2wasm_test")
load(":j2cl_util.bzl", "get_java_package")

def gen_j2wasm_tests(
name,
Expand Down Expand Up @@ -59,6 +59,7 @@ def gen_j2wasm_tests(
deps = deps + lib_deps,
srcs = supporting_lib_files,
plugins = lib_plugins + plugins,
tags = tags,
)

for test_file in test_files:
Expand Down
3 changes: 3 additions & 0 deletions build_defs/internal_do_not_use/j2kt_generate_unit_test.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def j2kt_generate_unit_test(name, test_class, deps, platform = "J2KT-JVM", tags
extract_kotlin_srcjar(
name = name + "_transpile_gen",
input_jar = out_jar,
tags = tags,
)

if platform == "J2KT-JVM":
Expand All @@ -74,6 +75,7 @@ def j2kt_generate_unit_test(name, test_class, deps, platform = "J2KT-JVM", tags
"//third_party/kotlin/kotlin:kotlin_test_junit",
"//build_defs/internal_do_not_use:internal_junit_runtime-j2kt-jvm",
],
tags = tags,
testonly = 1,
)

Expand All @@ -86,6 +88,7 @@ def j2kt_generate_unit_test(name, test_class, deps, platform = "J2KT-JVM", tags
":" + name + "_lib",
"//build_defs/internal_do_not_use:internal_junit_runtime-j2kt-native",
],
tags = tags,
)

def _extract_kotlin_srcjar(ctx):
Expand Down

0 comments on commit d92d143

Please sign in to comment.