mirror of
https://github.com/bazel-contrib/bazel-lib
synced 2024-11-27 17:43:27 +00:00
e376f9a733
* Add shlib assertions * Remove obsolete code * Fix shellcheck warnings * Switch to explicit -o nounset * Switched boolean shortcuts to if-then statements * Review suggestion
36 lines
710 B
Python
36 lines
710 B
Python
sh_library(
|
|
name = "assert_fail",
|
|
testonly = True,
|
|
srcs = ["assert_fail.sh"],
|
|
)
|
|
|
|
sh_test(
|
|
name = "assert_equal_test",
|
|
srcs = ["assert_equal_test.sh"],
|
|
deps = [
|
|
":assert_fail",
|
|
"//shlib/lib:assertions",
|
|
"@bazel_tools//tools/bash/runfiles",
|
|
],
|
|
)
|
|
|
|
sh_test(
|
|
name = "assert_match_test",
|
|
srcs = ["assert_match_test.sh"],
|
|
deps = [
|
|
":assert_fail",
|
|
"//shlib/lib:assertions",
|
|
"@bazel_tools//tools/bash/runfiles",
|
|
],
|
|
)
|
|
|
|
sh_test(
|
|
name = "assert_no_match_test",
|
|
srcs = ["assert_no_match_test.sh"],
|
|
deps = [
|
|
":assert_fail",
|
|
"//shlib/lib:assertions",
|
|
"@bazel_tools//tools/bash/runfiles",
|
|
],
|
|
)
|