diff options
author | Bart Schaefer <barts@users.sourceforge.net> | 2001-03-30 16:20:27 +0000 |
---|---|---|
committer | Bart Schaefer <barts@users.sourceforge.net> | 2001-03-30 16:20:27 +0000 |
commit | 9b464ddc8d0f2501dd2942782d33d12ec4dfc8ab (patch) | |
tree | da84d9f39d09030662ad61cabee967bd345df162 /Test | |
parent | 30697061f2630543cccb9648e14b1fe7fa1d93ee (diff) | |
download | zsh-9b464ddc8d0f2501dd2942782d33d12ec4dfc8ab.tar.gz zsh-9b464ddc8d0f2501dd2942782d33d12ec4dfc8ab.tar.xz zsh-9b464ddc8d0f2501dd2942782d33d12ec4dfc8ab.zip |
Print hash marks for progress.
Diffstat (limited to 'Test')
-rwxr-xr-x | Test/ztst.zsh | 4 |
1 files changed, 4 insertions, 0 deletions
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" |