From 9b464ddc8d0f2501dd2942782d33d12ec4dfc8ab Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Fri, 30 Mar 2001 16:20:27 +0000 Subject: Print hash marks for progress. --- Test/ztst.zsh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Test/ztst.zsh b/Test/ztst.zsh index fb81be0ad..a4166f955 100755 --- a/Test/ztst.zsh +++ b/Test/ztst.zsh @@ -107,6 +107,9 @@ ZTST_verbose() { shift [[ -n $ZTST_verbose && $ZTST_verbose -ge $lev ]] && print -- $* >&8 } +ZTST_hashmark() { + [[ ZTST_verbose -le 0 && -t 8 ]] && print -nu8 ${(pl:SECONDS::\#::\#\r:)} +} [[ ! -r $ZTST_testname ]] && ZTST_testfailed "can't read test file." @@ -292,6 +295,7 @@ $ZTST_curline" # If we found some code to execute... if [[ -n $ZTST_code ]]; then + ZTST_hashmark ZTST_verbose 1 "Running test: $ZTST_message" ZTST_verbose 2 "ZTST_test: expecting status: $ZTST_xstatus" -- cgit 1.4.1