[PATCH] recreatable shuffled tests for "prove"

2005-07-25 Thread Adriano Ferreira
Andy, I have written a patch to approach the TODO item of "prove": Shuffled tests must be recreatable "prove" still works the same, but with extra options to control --shuffle option. prove --shuffle t # runs shuffled 't/*.t' scripts (as usual) prove --shuffle --seed=808208 t # shu

Re: [PATCH] recreatable shuffled tests for "prove"

2005-07-25 Thread Adriano Ferreira
I have forgotten to say that the patch is over the source code of "bin/prove" in "Test-Harness-2.53_01.tar.gz". Adriano.

Re: [PATCH] recreatable shuffled tests for "prove"

2005-07-25 Thread Michael G Schwern
On Mon, Jul 25, 2005 at 06:10:38PM -0300, Adriano Ferreira wrote: > I have written a patch to approach the TODO item of "prove": > > Shuffled tests must be recreatable > > "prove" still works the same, but with extra options to control > --shuffle option. > > prove --shuffle t # runs s

Re: [PATCH] recreatable shuffled tests for "prove"

2005-07-26 Thread Adriano Ferreira
On 7/25/05, Michael G Schwern <[EMAIL PROTECTED]> wrote: > > prove --shuffle --list=5,4,0,1,2,3 t # the shuffle list is predetermined > > I'm not sure I see the utility in that last one that significantly beats > out just reordering the arguments to prove. Do you have a use case? And > what ha

Re: [PATCH] recreatable shuffled tests for "prove"

2005-07-26 Thread Andy Lester
On Tue, Jul 26, 2005 at 08:51:01AM -0300, Adriano Ferreira ([EMAIL PROTECTED]) wrote: > The whole point of this option is to allow the reproduction of a > certain order even in a Perl that was not compiled with the same This option has to be able to handle the case of a set of 1000 tests, all ran

Re: [PATCH] recreatable shuffled tests for "prove"

2005-07-26 Thread Michael G Schwern
On Tue, Jul 26, 2005 at 08:51:01AM -0300, Adriano Ferreira wrote: > Instead of giving the seed for shuffling, the list can be predetermined > with the C argument. > > $ prove -b -D -d -s --list=1,2,0,3,4 0 1 2 3 4 > > will run the same sequence everywhere, without concern for > differences betw

Re: [PATCH] recreatable shuffled tests for "prove"

2005-07-26 Thread Adriano Ferreira
On 7/26/05, Michael G Schwern <[EMAIL PROTECTED]> wrote: > Yeah, that's exactly what I was worried about. Why not just write: > prove -b -D -d 1 2 0 3 4 > this even avoids having to write special code to handle Andy's worry about > large lists of arguments. I see your point and agree. Pro

Re: [PATCH] recreatable shuffled tests for "prove"

2005-07-26 Thread Adriano Ferreira
Here is another patch. No --list anymore. Just --seed. There is also a new test script "t/prove-shuffle.t". It touches the MANIFEST and tweaks "t/prove-globbing.t" which depends on distribution files matching "t/prove*.t". Adriano. prove-patch Description: Binary data

Re: [PATCH] recreatable shuffled tests for "prove"

2005-07-27 Thread demerphq
On 7/26/05, Michael G Schwern <[EMAIL PROTECTED]> wrote: > On Tue, Jul 26, 2005 at 08:51:01AM -0300, Adriano Ferreira wrote: > > Instead of giving the seed for shuffling, the list can be predetermined > > with the C argument. > > > > $ prove -b -D -d -s --list=1,2,0,3,4 0 1 2 3 4 > > > > will run

Re: [PATCH] recreatable shuffled tests for "prove"

2005-07-27 Thread Michael G Schwern
On Wed, Jul 27, 2005 at 05:51:25PM -0400, demerphq wrote: > > prove is a command line utility. Use the command line. > > Whose command line? Mine doesnt by default come with xargs. > > IE, put the logic into prove, and dont assume the user is running on > your favorite *nix flavour. xargs is a

Re: [PATCH] recreatable shuffled tests for "prove"

2005-07-28 Thread David Cantrell
demerphq wrote: Whose command line? Mine doesnt by default come with xargs. I expect it didn't come with perl either, yet you seem to have managed to install that yourself. -- David Cantrell