bunpen: integration_test: add logging tests

This commit is contained in:
2024-09-05 22:21:06 +00:00
parent 392330f9ca
commit f12123416b

View File

@@ -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