scripts/functions: log the test strings

This commit is contained in:
Yann E. MORIN" 2010-04-13 22:54:57 +02:00
parent e87fb32624
commit 55ba3f6378

View File

@ -150,6 +150,7 @@ CT_Test() {
local ret
local m="$1"
shift
CT_DoLog DEBUG "Testing '! ( $* )'"
test "$@" && CT_DoLog WARN "$m"
return 0
}
@ -159,6 +160,7 @@ CT_Test() {
CT_TestAndAbort() {
local m="$1"
shift
CT_DoLog DEBUG "Testing '! ( $* )'"
test "$@" && CT_Abort "$m"
return 0
}
@ -168,6 +170,7 @@ CT_TestAndAbort() {
CT_TestOrAbort() {
local m="$1"
shift
CT_DoLog DEBUG "Testing '$*'"
test "$@" || CT_Abort "$m"
return 0
}