Re: Help with Test Failures
On Fri, Nov 30, 2007 at 04:15:59PM +, David Cantrell wrote: On Fri, Nov 30, 2007 at 06:08:19AM -0800, Bill Moseley wrote: I'm receiving a lot of test failures, but I'm not able to reproduce on the machines I have access to. I'm hoping someone can help spot my error. The bulk cpan testser fail with on a DateTime test: There is no the bulk cpan tester. Different people do smoke testing in different ways. Hum, I have no idea what I was trying to type there. :) I suspect I was saying The bulk of the cpan tests fail with a DateTime test 6am typing, you know. I only looked at one of 'em, but in t/10-Field-CIDR_List.t, you declare that you're going to run 6 tests, and then you either run 6 tests or you skip *7* tests. Yes, that was a bit more obvious. I must have removed a test and then not forced it to run without that module loaded again. I'll see if I can't get one of the testers to run prove on the DateTime tests. Thanks, -- Bill Moseley [EMAIL PROTECTED]
Re: With the Macrame macro system, Perl may now be a Lisp.
From: David Nicol [EMAIL PROTECTED] Macrame 0.08 finally passes a variety of tests and has been uploaded. Please harangue it via rt.cpan.org. I'm missing the reason-for-being of the module it its docs. I read the whole documentation and the test script and I still don't get it. What is it supposed to be used for? Sorry, Jenda = [EMAIL PROTECTED] === http://Jenda.Krynicky.cz = When it comes to wine, women and song, wizards are allowed to get drunk and croon as much as they like. -- Terry Pratchett in Sourcery
Re: Help with Test Failures
* Bill Moseley [EMAIL PROTECTED] [2007-11-30 18:15]: On Fri, Nov 30, 2007 at 04:15:59PM +, David Cantrell wrote: I only looked at one of 'em, but in t/10-Field-CIDR_List.t, you declare that you're going to run 6 tests, and then you either run 6 tests or you skip *7* tests. Yes, that was a bit more obvious. I must have removed a test and then not forced it to run without that module loaded again. plan eval { require Net::CIDR } ? tests= 6 : skip_all = 'failed to load Net::CIDR'; Then you don’t need to keep disparate counts in synch and as a bonus you don’t need to wrap the whole enchilada in a `SKIP` block either. (`eval{require $foo}` can be used directly as a boolean because `require` returns true on success and `eval` returns undef on exception.) -- *AUTOLOAD=*_;sub _{s/(.*)::(.*)/print$2,(,$\/, )[defined wantarray]/e;$1} Just-another-Perl-hack; #Aristotle Pagaltzis // http://plasmasturm.org/
Re: Help with Test Failures
On Fri, Nov 30, 2007 at 05:26:19PM +, David Cantrell wrote: On Fri, Nov 30, 2007 at 09:12:59AM -0800, Bill Moseley wrote: Yes, that was a bit more obvious. I must have removed a test and then not forced it to run without that module loaded again. Changing the topic somewhat, a really good module for pretending that various modules don't exist is Devel::Hide. The -from:children switch will even hide modules from child processes. Thanks for the tip! $ perl -MDevel::Hide=Net::CIDR -Iblib/lib t/10-Field-CIDR_List.t Devel::Hide hides Net/CIDR.pm 1..6 ok 1 # skip Skip: failed to load module Net::CIDR ok 2 # skip Skip: failed to load module Net::CIDR ok 3 # skip Skip: failed to load module Net::CIDR ok 4 # skip Skip: failed to load module Net::CIDR ok 5 # skip Skip: failed to load module Net::CIDR ok 6 # skip Skip: failed to load module Net::CIDR ok 7 # skip Skip: failed to load module Net::CIDR # Looks like you planned 6 tests but ran 1 extra. Yep. So I'm using Module::Install with recommends. Not sure if that does anything, but it would be handy to be able to automatically hide those when running make test. -- Bill Moseley [EMAIL PROTECTED]
Re: Help with Test Failures
On Fri, Nov 30, 2007 at 06:08:19AM -0800, Bill Moseley wrote: I'm receiving a lot of test failures, but I'm not able to reproduce on the machines I have access to. I'm hoping someone can help spot my error. The bulk cpan testser fail with on a DateTime test: There is no the bulk cpan tester. Different people do smoke testing in different ways. I suggest that you reply to one of the failure reports asking for help. Most of us testers do our best to help authors figure out what's going wrong. I only looked at one of 'em, but in t/10-Field-CIDR_List.t, you declare that you're going to run 6 tests, and then you either run 6 tests or you skip *7* tests. -- David Cantrell | Enforcer, South London Linguistic Massive Aluminum makes a nice hat. All paranoids will tell you that. But what most do not know Is reflections will show On the CIA's evil landsat.
Re: Help with Test Failures
On Fri, Nov 30, 2007 at 09:12:59AM -0800, Bill Moseley wrote: Yes, that was a bit more obvious. I must have removed a test and then not forced it to run without that module loaded again. Changing the topic somewhat, a really good module for pretending that various modules don't exist is Devel::Hide. The -from:children switch will even hide modules from child processes. -- David Cantrell | Cake Smuggler Extraordinaire Hail Caesar! Those about to vi ^[ you!
RE: Help with Test Failures
It is possible to use no_plan to run any number of tests ;) -Original Message- From: David Cantrell [mailto:[EMAIL PROTECTED] Sent: Friday, November 30, 2007 6:16 PM To: Bill Moseley Cc: module-authors@perl.org Subject: Re: Help with Test Failures On Fri, Nov 30, 2007 at 06:08:19AM -0800, Bill Moseley wrote: I'm receiving a lot of test failures, but I'm not able to reproduce on the machines I have access to. I'm hoping someone can help spot my error. The bulk cpan testser fail with on a DateTime test: There is no the bulk cpan tester. Different people do smoke testing in different ways. I suggest that you reply to one of the failure reports asking for help. Most of us testers do our best to help authors figure out what's going wrong. I only looked at one of 'em, but in t/10-Field-CIDR_List.t, you declare that you're going to run 6 tests, and then you either run 6 tests or you skip *7* tests. -- David Cantrell | Enforcer, South London Linguistic Massive Aluminum makes a nice hat. All paranoids will tell you that. But what most do not know Is reflections will show On the CIA's evil landsat.
Re: With the Macrame macro system, Perl may now be a Lisp.
On Nov 30, 2007 7:24 PM, Jenda Krynicky [EMAIL PROTECTED] wrote: I'm missing the reason-for-being of the module it its docs. I read the whole documentation and the test script and I still don't get it. What is it supposed to be used for? Sorry, Jenda polymorphic functions / more complex prototypes creating new syntax without dealing directly with unlexed source inlining small oft-used code snippets without all those pesky function calls perl advocacy to Lisp snobs (':)') -- wheels reinvented while-U-wait