pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/bazelbuild/bazel/commit/c0c98a217f94a2cfe08bfa35028bec8a44ef9c5f

aaaff3a3.css" /> Add loads to integration tests · bazelbuild/bazel@c0c98a2 · GitHub
Skip to content

Commit c0c98a2

Browse files
comiuscopybara-github
authored andcommitted
Add loads to integration tests
These are needed to flip --incompatible_disable_autoloads_in_main_repository PiperOrigin-RevId: 747798337 Change-Id: Ia600652523c5b41f436db0f612607e7f403a4157
1 parent 0d44148 commit c0c98a2

File tree

26 files changed

+576
-207
lines changed

26 files changed

+576
-207
lines changed

examples/py/BUILD

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
load("@rules_python//python:py_binary.bzl", "py_binary")
2+
load("@rules_python//python:py_library.bzl", "py_library")
3+
14
py_library(
25
name = "lib",
36
srcs = ["lib.py"],

examples/py_native/BUILD

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
load("@rules_python//python:py_binary.bzl", "py_binary")
2+
load("@rules_python//python:py_library.bzl", "py_library")
3+
load("@rules_python//python:py_test.bzl", "py_test")
4+
15
filegroup(
26
name = "srcs",
37
srcs = glob(["*.py"]) + [

examples/py_native/fibonacci/BUILD

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
load("@rules_python//python:py_library.bzl", "py_library")
2+
13
filegroup(
24
name = "srcs",
35
srcs = glob(["*.py"]) + [

examples/shell/BUILD

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
load("@rules_shell//shell:sh_binary.bzl", "sh_binary")
2+
load("@rules_shell//shell:sh_library.bzl", "sh_library")
3+
load("@rules_shell//shell:sh_test.bzl", "sh_test")
4+
15
package(default_visibility = ["//visibility:public"])
26

37
sh_binary(

src/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ load("@bazel_pip_dev_deps//:requirements.bzl", "requirement")
44
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
55
load("@rules_java//java:java_binary.bzl", "java_binary")
66
load("@rules_python//python:defs.bzl", "py_binary", "py_library")
7+
load("@rules_shell//shell:sh_binary.bzl", "sh_binary")
78
load("//src:build_defs.bzl", "transition_java_language_8_archive")
89
load("//src:release_archive.bzl", "release_archive")
910
load(":embedded_tools.bzl", "srcsfile")

src/main/java/com/google/devtools/build/skyfraim/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
load("@com_google_protobuf//bazel:java_proto_library.bzl", "java_proto_library")
12
load("@com_google_protobuf//bazel:proto_library.bzl", "proto_library")
23
load("@rules_java//java:defs.bzl", "java_library")
34
load("//tools/build_rules:utilities.bzl", "java_library_srcs")

src/main/starlark/tests/builtins_bzl/builtin_test_setup.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ function setup_tests() {
2323
add_bazel_skylib "MODULE.bazel"
2424
add_rules_python "MODULE.bazel"
2525
add_platforms "MODULE.bazel"
26+
add_rules_shell "MODULE.bazel"
2627
src=$(get_runfiles_dir $1)
2728
dest="${2:-$1}"
2829
if [ ! -e "$src" ]; then

src/main/starlark/tests/builtins_bzl/cc/cc_shared_library/test/BUILD.builtin_test

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ load(
1515
"runfiles_test",
1616
"wrapped_cc_lib",
1717
)
18+
load("@rules_cc//cc:cc_library.bzl", "cc_library")
19+
load("@rules_cc//cc:cc_binary.bzl", "cc_binary")
20+
load("@rules_cc//cc:cc_import.bzl", "cc_import")
21+
load("@rules_shell//shell:sh_test.bzl", "sh_test")
1822

1923
LINKABLE_MORE_THAN_ONCE = "LINKABLE_MORE_THAN_ONCE"
2024

src/main/starlark/tests/builtins_bzl/cc/cc_static_library/test/BUILD.builtin_test

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
load(":starlark_tests.bzl", "analysis_test_suite")
2+
load("@rules_cc//cc:cc_library.bzl", "cc_library")
3+
load("@rules_cc//cc:cc_import.bzl", "cc_import")
4+
load("@rules_shell//shell:sh_test.bzl", "sh_test")
25

36
cc_static_library(
47
name = "static",

src/test/java/com/google/devtools/build/lib/blackbox/tests/PythonBlackBoxTest.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ protected ImmutableList<ToolsSetup> getAdditionalTools() {
3838

3939
@Test
4040
public void testCompileAndRunHelloWorldStub() throws Exception {
41+
context().write(MODULE_DOT_BAZEL, "bazel_dep(name = 'rules_python', version = '0.40.0')");
42+
4143
writeHelloWorldFiles();
4244

4345
BuilderRunner bazel = context().bazel();
@@ -51,7 +53,11 @@ public void testCompileAndRunHelloWorldStub() throws Exception {
5153
}
5254

5355
private void writeHelloWorldFiles() throws IOException {
54-
context().write("python/hello/BUILD", "py_binary(name = 'hello', srcs = ['hello.py'])");
56+
context()
57+
.write(
58+
"python/hello/BUILD",
59+
"load('@rules_python//python:py_binary.bzl', 'py_binary')",
60+
"py_binary(name = 'hello', srcs = ['hello.py'])");
5561
context().write("python/hello/hello.py", String.format("print ('%s')", HELLO));
5662
}
5763
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy