info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CVS 1.11 sanity.sh fails at multiroot-log-1 under HPUX 10.20


From: Derek R. Price
Subject: Re: CVS 1.11 sanity.sh fails at multiroot-log-1 under HPUX 10.20
Date: Mon, 23 Oct 2000 18:11:26 -0400

James Youngman wrote:

> Sadly, the only way I can think of to make this test work on a vanilla
> HPUX system is to carge up the output with sed(1) and match it in
> pieces, which is nontrivial.  The only way I can think of to do this
> otherwise is to make a program which implements variant on expr's ":"
> operator, but reads the expression from a file (thus getting round
> command-length limits).

It seemed non-trivial to me too.  Then a moment of inspiration allowed me to 
shorten the script, though it only works if
there is a one-to-one correspondance between line in the expr and the text 
(i.e. .* will no longer match '\n', but I think
this is all that is usually, if not always, necessary for the current gamut of 
tests).  Anyway, it would need to be
adapted for use directly by sanity.sh, but I just checked debug_check_log.sh 
into contrib in case anybody is interested in
doing the work.

What basically needs to be done is that an eval_line_by_line function needs to 
be ported into sanity.sh.  Then that
function can be called on the output of any failed test for more useful output. 
 It could also be wrapped to create a
dotest_line_by_line that almost works (see '\n' notes above) and could be used 
on inordinately long tests, such as
multiroot-log-1, one when necessary.  Incidentally, this dotest_line_by_line 
should make it trivial to write a sanity.sh
that works with the Solaris version of expr, assuming my assumption about few 
of the tests requiring .* to match a line
feed is correct.

I should get around to writing this eventually if no one else does.

Derek

--
Derek Price                      CVS Solutions Architect ( http://CVSHome.org )
mailto:address@hidden     OpenAvenue ( http://OpenAvenue.com )
--
They are laughing at me, not with me.
They are laughing at me, not with me.
They are laughing at me, not with me...

          - Bart Simpson on chalkboard, _The Simpsons_






reply via email to

[Prev in Thread] Current Thread [Next in Thread]