scripts/functions: log the test strings
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Apr 13 22:54:57 2010 +0200 (2010-04-13)
changeset 19095921089b34bd
parent 1908 d77f3f04a227
child 1910 207ad430c254
scripts/functions: log the test strings
scripts/functions
     1.1 --- a/scripts/functions	Tue Apr 13 21:47:34 2010 +0200
     1.2 +++ b/scripts/functions	Tue Apr 13 22:54:57 2010 +0200
     1.3 @@ -150,6 +150,7 @@
     1.4      local ret
     1.5      local m="$1"
     1.6      shift
     1.7 +    CT_DoLog DEBUG "Testing '! ( $* )'"
     1.8      test "$@" && CT_DoLog WARN "$m"
     1.9      return 0
    1.10  }
    1.11 @@ -159,6 +160,7 @@
    1.12  CT_TestAndAbort() {
    1.13      local m="$1"
    1.14      shift
    1.15 +    CT_DoLog DEBUG "Testing '! ( $* )'"
    1.16      test "$@" && CT_Abort "$m"
    1.17      return 0
    1.18  }
    1.19 @@ -168,6 +170,7 @@
    1.20  CT_TestOrAbort() {
    1.21      local m="$1"
    1.22      shift
    1.23 +    CT_DoLog DEBUG "Testing '$*'"
    1.24      test "$@" || CT_Abort "$m"
    1.25      return 0
    1.26  }