bunpen: integration_test: add logging tests
This commit is contained in:
@@ -45,6 +45,17 @@ test_09_forwards_stdout() {
|
||||
test "$stdout" = "hello"
|
||||
}
|
||||
|
||||
test_10_no_logging_by_default() {
|
||||
local stdout=$(bunpen --bunpen-path / true)
|
||||
test -z "$stdout"
|
||||
}
|
||||
|
||||
test_11_logs_something() {
|
||||
local stdout=$(bunpen --bunpen-debug=4 --bunpen-path / true 2>&1)
|
||||
test -n "$stdout"
|
||||
}
|
||||
|
||||
|
||||
rc=0
|
||||
for f in $(declare -F); do
|
||||
if [[ "$f" =~ test_* ]]; then
|
||||
|
Reference in New Issue
Block a user