Skip to content

Commit

Permalink
test: add bazelignore test (#1912)
Browse files Browse the repository at this point in the history
**What type of PR is this?**

> Other

**What package or component does this PR mostly affect?**

> all

**What does this PR do? Why is it needed?**

Additional tests for `.bazelignore`

**Which issues(s) does this PR fix?**

Fixes #

**Other notes for review**
  • Loading branch information
jbedard authored Sep 14, 2024
1 parent 79da9ea commit ec581c6
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/bazelignore/.bazelignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
file1
sub1
sub2/file1
10 changes: 10 additions & 0 deletions tests/bazelignore/BUILD.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
filegroup(
name = "all_files",
testonly = True,
srcs = [
".bazelignore",
"WORKSPACE",
"//sub2:all_files",
],
visibility = ["//visibility:public"],
)
Empty file added tests/bazelignore/WORKSPACE
Empty file.
Empty file added tests/bazelignore/file1
Empty file.
Empty file added tests/bazelignore/sub1/file2
Empty file.
6 changes: 6 additions & 0 deletions tests/bazelignore/sub2/BUILD.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
filegroup(
name = "all_files",
testonly = True,
srcs = ["file3"],
visibility = ["//visibility:public"],
)
Empty file added tests/bazelignore/sub2/file1
Empty file.
Empty file added tests/bazelignore/sub2/file3
Empty file.

0 comments on commit ec581c6

Please sign in to comment.