I have a couple of sanity.sh patches that
I came up with while I'm working on my ".trunk"
patch that I thought people might find useful.

The first patch does 2 things:

1)it allows options to sanity.sh (arguments which
begin with a dash) to be specified in any order.

2)It adds the "--startwith" option which allows
you to specify which test to start with.  This
is useful when one test fails, you fix some minor
problem, then you want to restart the testsuite,
but not rerun all those test prior to the one
that failed.

e.g.

./sanity.sh --startwith log ./cvs

Would skip all the tests prior to the "log" tests.

The second patch adds a "--keepgoing" option.
This option allows sanity.sh to keep going after
one test fails.  When one dotest (or relatives)
fails, it records that a failure has happened in
this test series, and doesn't do anything further
for that series, but starts executing tests again
with the next series.  (so dotest and friends
maintain state between invocations...)

That's useful when you've made quite a few changes
and you want to see what you've broken, but not
one item at a time.

There is a certain amount of danger with this one
though, as not all operations conducted by the tests
are funnelled through dotest and friends, (e.g. "cd"
and "mkdir" operations are common.)  So, in some
failure instances some mischief may result.
(not that I'm aware of any such situations
specifically)

note, these patches applied to my sanity.sh with added
tests for ".trunk", so it might not apply precisely
to the development sanity.sh, but any rejects should
be pretty obvious, I think...

Also the 2nd patch applies on top of the first one,
that is, the 2nd won't work without the 1st one.

So, for what it's worth, here they are:

-- steve


__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

sanity.sh.patch.1

sanity.sh.patch.2

Reply via email to