tests
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
@test 'Trigger BW01' {
|
||||
# shellcheck disable=SC2283,SC1068
|
||||
run =0 actually-intended-command with some args # see issue #578
|
||||
# no $status check because that should be done above (but isn't!)
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
@test "Don't trigger BW01 with checked exit code 127" {
|
||||
bats_require_minimum_version 1.5.0
|
||||
run -127 =0 actually-intended-command with some args
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
@test "Don't trigger BW01 with exit code !=127 and no check" {
|
||||
run exit 1
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
@test "Trigger BW02" {
|
||||
run --keep-empty-lines true
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
setup_suite() {
|
||||
:
|
||||
}
|
||||
|
||||
@test test {
|
||||
:
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
setup_suite() {
|
||||
:
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
setup_suite() {
|
||||
:
|
||||
}
|
||||
|
||||
# shellcheck disable=SC2034
|
||||
BATS_SETUP_SUITE_COMPLETED='suppress BW03'
|
||||
|
||||
@test test {
|
||||
:
|
||||
}
|
||||
Reference in New Issue
Block a user