At minimum, everything should at least have a "do I compile and export
the documented interface" test.
Curmudgeon's anti-excuses follow.
On Sat, Apr 21, 2001 at 07:21:47PM -0500, Jarkko Hietaniemi wrote:
> > CPAN (since I know the CPAN version has tests)
>
> Yes, rather network-intensive tests. We can't assume access
> to a CPAN mirror.
The tests that come with CPAN.pm (in the CPAN module) do no network
checks. They're just simple load and version tests.
Additionally, we can provide a dummy CPAN module which the CPAN shell
can unpack and "install". We can also provide dummy CPAN files for it
to read and parse.
> > CGI::Carp
> > CGI::Cookie
> > CGI::Push
> > CGI::Switch
>
> I don't see us testing much CGI stuff.
There are already six CGI related tests in the core. All these
modules can run intependent of a web server. If we're going to
distribute them, we're going to test them.
> > File::stat
>
> Something very simple can be tested, but not much.
Something very simple like the 287 lines of t/op/stat.t? These should
all be mirrored as much as possible against File::stat.
> > Filter::Simple
>
> The tests coming with Filter::Simple were too...simple.
Better than nothing.
> > I18N::Collate
>
> Heavily, heavily deprecated.
It still has to work.
> > Net::Ping
>
> Maybe hard to test anything meaningful portably.
localhost is always an option, no? If nothing else we can make sure
an object can be set up and torn down. Net::Ping has broken badly in
the past.
> > Net::netent
> > Net::protoent
> > Net::servent
>
> System dependent. Similar issues as with User::
Then a "does it compile and export the right things" test will do.
Can't we assume certain things will be there on certain OS's, such as
loopback?
> > PerlIO
>
> Err, nothing much would work in bleadperl if PerlIO didn't since
> it's the "stdio" layer...
Great, shall we remove the t/base tests then? ;)
PerlIO claims it can do things, for example, the :crlf in the
SYNOPSIS. That's a starting point to test against.
> > filetest
>
> System dependent, requires filesystems with ACLs.
We're smart. We can figure out if a filesystem has ACLs and only run
the test in that case.
> > open
>
> See PerlIO.
See PerlIO. ;)
> > unicode::distinct
>
> Hmmm. I don't know what to do with this. Do we still want to use it?
All I know about Unicode is it means my keyboard isn't big enough
anymore.
--
Michael G. Schwern <[EMAIL PROTECTED]> http://www.pobox.com/~schwern/
Perl6 Quality Assurance <[EMAIL PROTECTED]> Kwalitee Is Job One
That which stirs me, stirs everything.
-- Squonk Opera, "Spoon"