On Tue, Mar 08, 2005 at 08:23:31AM -0800, Michael G Schwern wrote:
>
> perl -MTest::Harness -e 'runtests @ARGV' tests/*.pl
Aha. Thanks.
> Why would you distribute a private copy of Test::Harness?
To use 'prove', which your example above illustrates I don't need.
> Or do you mean you want to run the shell scripts, too?
The shell scripts get run, but I don't care about managing them with
the same tool.
> I'd make life simpler and dump the shell scripts, see the note about
> cross-platform compatibility below.
The philosophy behind allowing both is to have a low barrier to entry
for people submitting tests. Better to have tests in shell then no tests
at all.
> PS I took a look at one of the Perl tests (pull.pl) and its
> needlessly Unix-centric making lots of shell calls which can easily be
> done with Perl, particularly rm -rf and mkdir -p (File::Path). Best
> to make it cross-platform as early as possible, it sucks to bolt it on
> later.
I'll look into that refactor. Curiously, no one has complained about
this so far. I suspect that although it's used on lots of platforms,
the people who run the test suite may be Unix-centric bunch right now.
> PPS You're suspiciously lacking in a README or INSTALL document. I
> know its probably buried somewhere in the manual/ directory but still
> its the first place many people look.
You are right. I'll work on that.
Mark