Skip to content

Commit

Permalink
test: add bazelignore test
Browse files Browse the repository at this point in the history
  • Loading branch information
jbedard authored and fmeum committed Sep 14, 2024
1 parent 8c64e02 commit c18d05c
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 c18d05c

Please sign in to comment.