From: Virden, L. W. <lv...@ca...> - 2006-11-06 19:19:20
|
I'd suggest that if stdout is not a terminal that the default be non-interactive output... That would take care of the most common case. I always redirect output so that I can have something to copy and paste into bug reports... --=20 <URL: http://wiki.tcl.tk/ > Even if explicitly stated to the contrary, nothing in this posting should be construed as representing my employer's opinions. <URL: mailto:lv...@gm... > <URL: http://www.purl.org/NET/lvirden/ > =20 -----Original Message----- From: Andreas Kupries [mailto:and...@ac...]=20 Sent: Monday, November 06, 2006 2:10 PM To: Virden, Larry W.; tcl...@li... Subject: RE: [Tcllib-devel] anyone taking a look at the current tcllib testsuite and tcl/tk 8.5? > It turns out that all the output I am getting from tcllib's test suite > is strangely \r terminated. That threw me off - I thought that it was=20 > all output from the sak test, when in fact it was just lots of weird=20 > output from whatever tcllib is now using as a test harness. tcltest. sak however has changed to use animated feedback by default, for an interactive terminal. Regular logs via -v and -l, see also the built-in documentation reachable via % ./sak help test > I'm just getting failures in math-fuzzy-ManyCompares-1.1 (and two=20 > other math locations that don't seem to be identified...) expose-1.0,=20 > and set-1.0. > > Sorry about that - the new output structure is really disconcerting. Hm. Ok. Did you sak directly ? Or via 'make test' ? We, well I, got have several complaints about this change, see for example the patch http://sourceforge.net/tracker/index.php?func=3Ddetail&aid=3D1584520&grou= p_i d=3D12883& atid=3D312883 Now I am trying to think about useful defaults ... Like * When running from 'make test' assume a (non-interactive) buildsystem, and use the verbose log (option -v, verbose). * When running sak directly assume interactive use, and use the new animated feedback. There was also a proposal to somehow determine in sak if stdout is a redirection or pipe and use the verbose log in these cases. -- Andreas Kupries <and...@Ac...> Developer @ http://www.ActiveState.com Tel: +1 778-786-1122 |