in reply to Re^2: organizing/ running non-module related tests
in thread organizing/ running non-module related tests
But learning to use MM is bound to be a good thing anyway, so why ask us whether you should do it?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++] ); }
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 |