-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add a child workspace to use as the BCR presubmit test. - Update BCR presubmit config to run tests in the new workspace. Related to bazelbuild/bazel-central-registry#1390.
- Loading branch information
Showing
8 changed files
with
56 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
test/bcr_test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
try-import %workspace%/.bazelrc.user |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
7.0.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
load(":test.bzl", "bazel_features_test_suite") | ||
|
||
bazel_features_test_suite(name = "bazel_features_test") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
bazel_dep(name = "bazel_skylib", version = "1.4.2") | ||
bazel_dep(name = "bazel_features") | ||
local_path_override( | ||
module_name = "bazel_features", | ||
path = "../..", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
load("@bazel_features//:features.bzl", "bazel_features") | ||
load("@bazel_skylib//lib:unittest.bzl", "asserts", "unittest") | ||
|
||
"""Tests for `bazel_features` module.""" | ||
|
||
def _is_bzlmod_enabled_test(ctx): | ||
env = unittest.begin(ctx) | ||
|
||
asserts.true(env, bazel_features.external_deps.is_bzlmod_enabled) | ||
|
||
return unittest.end(env) | ||
|
||
is_bzlmod_enabled_test = unittest.make(_is_bzlmod_enabled_test) | ||
|
||
def bazel_features_test_suite(name): | ||
return unittest.suite( | ||
name, | ||
is_bzlmod_enabled_test, | ||
) |