Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: Still more feedback during tests



Another obfuscated zsh contest entry.  Apply this patch and then run
`make check TESTNUM=54' to get the best look at the results.

Index: Test/ztst.zsh
===================================================================
--- Test/ztst.zsh	2001/03/29 05:33:50	1.12
+++ Test/ztst.zsh	2001/03/30 06:53:42
@@ -107,6 +107,9 @@
   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 @@
 
     # 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"
 

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   



Messages sorted by: Reverse Date, Date, Thread, Author