2
0
Fork 0
mirror of https://github.com/bazel-contrib/bazel-lib synced 2024-11-27 17:43:27 +00:00
bazel-lib/shlib/tests/lib_tests/assertions_tests/BUILD.bazel
Chuck Grindel e376f9a733
Add shlib/lib/assertions.sh and related tests (#237)
* Add shlib assertions

* Remove obsolete code

* Fix shellcheck warnings

* Switch to explicit -o nounset

* Switched boolean shortcuts to if-then statements

* Review suggestion
2022-09-13 10:35:47 -07:00

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",
],
)