Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^3: organizing/ running non-module related tests

by graff (Chancellor)
on Sep 20, 2005 at 19:10 UTC ( [id://493572]=note: print w/replies, xml ) Need Help??


in reply to Re^2: organizing/ running non-module related tests
in thread organizing/ running non-module related tests

If that's all you're doing, it's not such a big thing to roll on your own:
my @tests = sort <my/dir/*.pl>; #update: need to sort the glob list my $return = my $testid = 0; while ( $return == 0 ) { warn "Running $tests[$testid]...\n"; $return = system( $tests[$testid++] ); }
But learning to use MM is bound to be a good thing anyway, so why ask us whether you should do it?

update: if your scripts are actually moving data, then of course you'll need to prefix that loop with whatever steps are needed to clear out the destination db before the loop starts -- unless the first script in your list takes care of that.

Replies are listed 'Best First'.
Re^4: organizing/ running non-module related tests
by geektron (Curate) on Sep 20, 2005 at 19:39 UTC
    each script clears out the relevant tables. because of foreign key constraints and such, i need to clean tables backwards, but i have that under control.

    i'm asking if it's the right tool for the job, and as diotalevi pointed out, Test::Harness may in fact be better suited for what i'm trying to do.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://493572]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-04-24 04:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found