X-Git-Url: https://arthur.barton.de/gitweb/?a=blobdiff_plain;f=wvtest.sh;h=3a6e312b88cf0060815b628ac45b3bf3edfd87c7;hb=880ab9e31e0b86e34b0816e459f7390f3c545da3;hp=05f6f34a24be38da9c2d63ac355085e3a5abe3a5;hpb=761fd595b620bc91f2a7393b7ba00fbb3daabf75;p=bup.git diff --git a/wvtest.sh b/wvtest.sh old mode 100755 new mode 100644 index 05f6f34..3a6e312 --- a/wvtest.sh +++ b/wvtest.sh @@ -144,6 +144,26 @@ WVSTART() echo "Testing \"$*\" in $WVCALLER_FILE:" >&2 } + +WVSKIP() +{ + local TEXT=$(_wvtextclean "$@") + _wvpushcall "$@" + _wvfind_caller + echo "! $WVCALLER_FILE:$WVCALLER_LINE $TEXT skip ok" 1>&2 +} + + +WVDIE() +{ + local TEXT=$(_wvtextclean "$@") + _wvpushcall "$@" + _wvfind_caller + echo "! $WVCALLER_FILE:$WVCALLER_LINE $TEXT FAILED" 1>&2 + exit 1 +} + + # Local Variables: # indent-tabs-mode: t # sh-basic-offset: 8