Re: Starting with a test 1

2001-09-29 Thread Dave Rolsky
On Sat, 29 Sep 2001, Michael G Schwern wrote: Have you tried the Test::Builder thing yet? I think you should be able to solve your forking problem like so: Working on it use Test::More tests = 10; # or whatever. Except this needs to printed just once in the parent _before_ any tests

Re: Starting with a test 1

2001-09-29 Thread Piers Cawley
Dave Rolsky [EMAIL PROTECTED] writes: For my Alzabo tests, I do some weird stuff involving forking off processes during tests and running the same (basically same) set of tests multiple times, each time with different modules loaded. The parent process calculates how many tests will be

Re: Starting with a test 1

2001-09-29 Thread Dave Rolsky
On 29 Sep 2001, Piers Cawley wrote: If it's not a dumb question, why are you doing it that way? If you were using PerlUnit, aka Test::Unit::TestCase, you could do something like: Why am I doing what? Forking and starting tests at weird offsets? The forking is cause I need to load different

Starting with a test 1

2001-09-26 Thread Dave Rolsky
For my Alzabo tests, I do some weird stuff involving forking off processes during tests and running the same (basically same) set of tests multiple times, each time with different modules loaded. The parent process calculates how many tests will be involved in each run and how many runs will

Re: Starting with a test 1

2001-09-26 Thread Dave Rolsky
On Wed, 26 Sep 2001, Michael G Schwern wrote: Uggg. No, there's no good way to handle this now unless there's some way $Num_Tests can make itself shared between forks. Well, I do keep track of it in my code and pass it around between forks. What I need is a way to set it. In the general