Re: Untested libraries update

2001-09-25 Thread Michael G Schwern
On Tue, Sep 25, 2001 at 09:32:17AM +0200, [EMAIL PROTECTED] wrote: > On Fri, 21 Sep 2001, Michael G Schwern wrote: > > > On Fri, Sep 21, 2001 at 10:57:39AM +0200, [EMAIL PROTECTED] wrote: > > > How about testing on 127.0.0.1? > > > > As insane as it sounds, it might not be there. There might be

Re: Untested libraries update

2001-09-25 Thread lars
On Fri, 21 Sep 2001, Michael G Schwern wrote: > On Fri, Sep 21, 2001 at 10:57:39AM +0200, [EMAIL PROTECTED] wrote: > > How about testing on 127.0.0.1? > > As insane as it sounds, it might not be there. There might be no IP > system at all. Consider DOS. I was thinking after testing for IP con

Re: Untested libraries update

2001-09-24 Thread Philip Newton
On Mon, 24 Sep 2001 14:49:08 +0100, [EMAIL PROTECTED] (Nicholas Clark) wrote: > /perl -Ilib -MTest::More -e 'plan(3); ok(1)' > Undefined subroutine &Test::More::plan called at -e line 1. Should be /perl -Ilib -MTest::More=tests,3 -e 'ok(1)' IMO. Cheers, Philip

Re: [PATCH] AutoSplit.t (was Re: Untested libraries update)

2001-09-24 Thread Michael G Schwern
Could you explain a bit about what this test is doing? It may help to put sample files to split against in t/lib somewhere rather than smashing them all after the __END__ block. On Tue, Sep 25, 2001 at 12:37:40AM +0100, Nicholas Clark wrote: > + # There may be a way to capture STDOUT without s

Re: Untested libraries update

2001-09-24 Thread John Peacock
Nicholas Clark wrote: > > Can't I use the module early, and then figure out how many tests I'm planning > to run at run time? If "no", I'm going to have to do my figuring-out in a > BEGIN block. This was with Test::More::VERSION '0.19' You can look at what I did in t/op/ver.t as well, vis:

Re: Untested libraries update

2001-09-24 Thread Michael G Schwern
On Mon, Sep 24, 2001 at 02:49:08PM +0100, Nicholas Clark wrote: > Fair enough. But: > > ./perl -Ilib -MTest::More -e 'plan(3); ok(1)' > Undefined subroutine &Test::More::plan called at -e line 1. > > Can't I use the module early, and then figure out how many tests I'm planning > to run at run ti

Re: Untested libraries update

2001-09-24 Thread H . Merijn Brand
On Sat 22 Sep 2001 00:50, Michael G Schwern <[EMAIL PROTECTED]> wrote: > However, that's a big job to get right and we'll do it later. Right > now, stick to the cleanups and adding coverage. It also wouldn't hurt > to start going through old open perlbug entries. A lead to find bugs that are al

Re: Untested libraries update

2001-09-21 Thread Michael G Schwern
On Fri, Sep 21, 2001 at 10:31:29PM +0200, Tels wrote: > > As insane as it sounds, it might not be there. There might be no IP > > system at all. Consider DOS. > > But isn't there a test for localhost (getbyhostname or something), that > would also run into the problem, e.g. is this solved by Co

Re: Untested libraries update

2001-09-21 Thread Tels
-BEGIN PGP SIGNED MESSAGE- Moin, On 21-Sep-01 Michael G Schwern tried to scribble about: > On Fri, Sep 21, 2001 at 10:57:39AM +0200, [EMAIL PROTECTED] wrote: >> How about testing on 127.0.0.1? > > As insane as it sounds, it might not be there. There might be no IP > system at all. Con

Re: Untested libraries update

2001-09-21 Thread Michael G Schwern
On Fri, Sep 21, 2001 at 10:57:39AM +0200, [EMAIL PROTECTED] wrote: > How about testing on 127.0.0.1? As insane as it sounds, it might not be there. There might be no IP system at all. Consider DOS. -- Michael G. Schwern <[EMAIL PROTECTED]>http://www.pobox.com/~schwern/ Perl6 Quality A

[PATCH @12110] RE: Untested libraries update

2001-09-21 Thread Paul Marquess
From: Michael G Schwern [mailto:[EMAIL PROTECTED]] > On Wed, Sep 19, 2001 at 04:37:41PM +0100, Paul Marquess wrote: > > From: Rafael Garcia-Suarez [mailto:[EMAIL PROTECTED]] > > > > > Michael G Schwern listed: > > > [...] > > > > warnings::register (almost no docs) > > > > Hmm, would a "see L and

Re: Untested libraries update

2001-09-21 Thread lars
On Thu, 20 Sep 2001, Michael G Schwern wrote: > On Thu, Sep 20, 2001 at 04:35:04PM -0700, Zach Lipton wrote: > > I don't know why this didn't occur to me before, but why not put this in a > > Wiki? > > That's a great idea! And by some shocking coincidence, we just happen > to have a perl-qa W

Re: Untested libraries update

2001-09-20 Thread Michael G Schwern
On Thu, Sep 20, 2001 at 04:35:04PM -0700, Zach Lipton wrote: > I don't know why this didn't occur to me before, but why not put this in a > Wiki? That's a great idea! And by some shocking coincidence, we just happen to have a perl-qa Wiki for you to add this to. :) http://www.pobox.com/~schwer

Re: Untested libraries update

2001-09-20 Thread Zach Lipton
I don't know why this didn't occur to me before, but why not put this in a Wiki? It seems to be a _huge_ pain to mail this list out every few weeks whenever something changes, why not post it up and allow people to mark it up a little: say that they are working on a test so the effort isn't duplic

Re: Untested libraries update

2001-09-20 Thread Michael G Schwern
On Wed, Sep 19, 2001 at 04:37:41PM +0100, Paul Marquess wrote: > From: Rafael Garcia-Suarez [mailto:[EMAIL PROTECTED]] > > > Michael G Schwern listed: > > [...] > > > warnings::register (almost no docs) > > Hmm, would a "see L and L." do? I've always been a fan of putting the docs near the code

Re: Untested libraries update

2001-09-19 Thread Rafael Garcia-Suarez
On 2001.09.19 17:37 Paul Marquess wrote: > Nope, it does both. The test files that start with digits are intended to > test the features of the warnings pragma itself along with it's interaction > with $^W. All the other files test specific warnings. > > The tests for warnings::enabled and warnin

RE: Untested libraries update

2001-09-19 Thread Paul Marquess
From: Rafael Garcia-Suarez [mailto:[EMAIL PROTECTED]] > Michael G Schwern listed: > [...] > > warnings::register (almost no docs) Hmm, would a "see L and L." do? > There are no tests for warnings.pm either. > > Note that there are two distinct points here : > > 1. test the warnings issued by th

Re: Untested libraries update

2001-09-19 Thread Rafael Garcia-Suarez
Michael G Schwern listed: [...] > warnings::register (almost no docs) There are no tests for warnings.pm either. Note that there are two distinct points here : 1. test the warnings issued by the perl interpreter; this is done by lib/warnings.t, that calls the various files in t/lib/warnings/

Untested libraries update

2001-09-18 Thread Michael G Schwern
Here's where we're at. I might be a little off on the Pod:: tests. chromatic and Andrew Wilson took a good chunk out of it. CGI is now pretty well covered. More of ExtUtils are tested, and rather amazingly, Term::Complete! For Term::ReadLine you may be able to steal/draw inspiration from the

Re: Untested libraries.

2001-05-02 Thread Michael G Schwern
On Wed, May 02, 2001 at 03:25:08PM -0500, Jarkko Hietaniemi wrote: > > Hmmm, his email address has mysteriously appeared in the CC line of > > this reply. How odd. > > You really should get your MUA exorcised. I take my mutt out for a run every day! -- Michael G. Schwern <[EMAIL PROTECTED]

Re: Untested libraries.

2001-05-02 Thread Jarkko Hietaniemi
On Wed, May 02, 2001 at 09:23:08PM +0100, Michael G Schwern wrote: > On Wed, May 02, 2001 at 02:37:26PM -0500, Jarkko Hietaniemi wrote: > > > The tests that come with CPAN.pm (in the CPAN module) do no network > > > checks. They're just simple load and version tests. > > > > Added. > > Yay! >

Re: Untested libraries.

2001-05-02 Thread Michael G Schwern
On Wed, May 02, 2001 at 02:37:26PM -0500, Jarkko Hietaniemi wrote: > > The tests that come with CPAN.pm (in the CPAN module) do no network > > checks. They're just simple load and version tests. > > Added. Yay! > > > > CGI::Carp > > > > CGI::Cookie > > > > CGI::Push > > > > CGI::Switch > > Li

Re: Untested libraries.

2001-05-02 Thread Jarkko Hietaniemi
(updates) > The tests that come with CPAN.pm (in the CPAN module) do no network > checks. They're just simple load and version tests. Added. > > > CGI::Carp > > > CGI::Cookie > > > CGI::Push > > > CGI::Switch > > > > I don't see us testing much CGI stuff. > > There are already six CGI relate

Re: Untested libraries.

2001-04-23 Thread nick
Jarkko Hietaniemi <[EMAIL PROTECTED]> writes: >> ExtUtils::* (eeep!) The ExtUtils::MakeMaker modules that a platform uses get a "reasonable" work out building ext/* - but there are weak spots ... -- Nick Ing-Simmons

Re: Untested libraries.

2001-04-22 Thread Nicholas Clark
On Sun, Apr 22, 2001 at 01:54:31AM +0100, Michael G Schwern wrote: > On Sat, Apr 21, 2001 at 07:21:47PM -0500, Jarkko Hietaniemi wrote: > > > Net::Ping > > > > Maybe hard to test anything meaningful portably. > > localhost is always an option, no? If nothing else we can make sure > an object c

Re: Untested libraries.

2001-04-22 Thread Jarkko Hietaniemi
On Sun, Apr 22, 2001 at 01:54:31AM +0100, Michael G Schwern wrote: > At minimum, everything should at least have a "do I compile and export > the documented interface" test. > > Curmudgeon's anti-excuses follow. Pumpkin's anti-anti-excuses follow. > > > CGI::Carp > > > CGI::Cookie > > > CGI::Pu

Re: Untested libraries.

2001-04-22 Thread Jarkko Hietaniemi
> System dependent. Similar issues as with User:: > > > PerlIO > > Err, nothing much would work in bleadperl if PerlIO didn't since > it's the "stdio" layer... PerlIO::Scalar and PerlIO::Via could use tests, though. -- $jhi++; # http://www.iki.fi/jhi/ # There is this special biologis

Re: Untested libraries.

2001-04-22 Thread Michael G Schwern
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

Re: Untested libraries.

2001-04-22 Thread Russ Allbery
Jarkko Hietaniemi <[EMAIL PROTECTED]> writes: > On Sat, Apr 21, 2001 at 10:32:35PM +0100, Michael G Schwern wrote: >> filetest > System dependent, requires filesystems with ACLs. Even if we had tests that would just be skipped if Perl wasn't being built under a path starting with /afs, there ar

Re: Untested libraries.

2001-04-22 Thread Jarkko Hietaniemi
On Sat, Apr 21, 2001 at 10:32:35PM +0100, Michael G Schwern wrote: > After patching up 1_compile.t, I now have a fairly accurate list of > all the modules which are never even mentioned in the tests. They are > listed below. Its a little over a third of the whole distribution > (I'm not counting

Re: Untested libraries.

2001-04-21 Thread Michael G Schwern
On Sat, Apr 21, 2001 at 10:39:23PM +0100, Nicholas Clark wrote: > Are there prizes for every regression test added? :-) What a thoroughly wonderful idea!!! Excuse me while I get carried away for a moment... I, Michael G Schwern, HERE and NOW do declare that I will donate FIVE HUNDRED UNITED STA

Re: Untested libraries.

2001-04-21 Thread Nicholas Clark
On Sat, Apr 21, 2001 at 10:32:35PM +0100, Michael G Schwern wrote: > Devel::SelfStubber hmm. yes. I was meaning to get around to this about 3 years ago. Stage 1 (the test for SelfLoader) was added. IIRC there were bugs in SelfStubber and how it coped with __DATA__ and how it coped if you called i

Untested libraries.

2001-04-21 Thread Michael G Schwern
After patching up 1_compile.t, I now have a fairly accurate list of all the modules which are never even mentioned in the tests. They are listed below. Its a little over a third of the whole distribution (I'm not counting .pl files.). Particularly distrubing are: AutoSplit(heaps of