cron job which
> wraps "make test" and emails if anything fails.
For multiple configurations some sort of summary analysis really is necessary
(although H Merjin Brand seems to have put a lot of effort into getting this
completely under control)
Nicholas Clark
led it with more than one file to stub.
> PerlIO
if Jarkko-of-Borg assimilates PerlIO::gzip (which I wasn't sure he was
thinking about) it's got (currently) 98 tests that have picked up some of
the bugs in the core PerlIO system.
Are there prizes for every regression test added? :-)
Nicholas Clark
e first test that a negative floating point number correctly
converts from a PV to an NV is one of storable's, which is near the end of
lib/*.t :-(
We do now have a test that 1 + 1 == 2.
> PerlIO claims it can do things, for example, the :crlf in the
> SYNOPSIS. That's a starting point to test against.
I agree. I'm not quite sure how to write such a test, else I'd have a go.
Nicholas Clark
C
so I guess that as much as that as possible, preferable all needs testing
(in an ideal world. As I found with Benchmark.t, trying to test everything
gets quite big. And it had less things than Dynaloader.)
Nicholas Clark
ix and ensuring it doesn't have any
of the "standard" places to find libraries in INC.
Alternatively, if your Term::ANSIColor is installed in 5.6.1's directories,
just build yourself a 5.005_03 in the regular place :-)
Nicholas Clark
--
EMCFT http://www.ccl4.org/~nick/CV.html
e I can see a syntax error that the
patch removes, and as nothing has been applied, that syntax error remained.
Was there ever a feasible plan on how to automate syntax checking of all
the code examples in the pod snippets?
[I remember this rant I had about perlipc once. (rant-and-patch, IIRC)
testing";
kill "INT", $parent or die "Kill failed: $!";
exit 1;
}
}
}
The idea being that a test killing itself after elapsed time (and failing
to return some results from that test) is better than a test hanging forever
and causing a whole auto
lls you to run the test to see the full output?
Nicholas Clark
--
Even better than the real thing:http://nms-cgi.sourceforge.net/
want to write a
regression test, explaining how to do it, how perl5's tests are structured
to reduce interdependencies, use Test::More; when Test::More is not
appropriate.."
And where did the p5p FAQ get to?
Nicholas Clark
fore I release a module -
> but I'd like to write tests to avoid systematic mistakes,
> while it would need too long to test all scenarios.
This is the problem that I have, and I think I've found a solution that
works for me.
Nicholas Clark
ssibly
by overloading CORE::GLOBAL::rand at BEGIN time.
Nicholas Clark
--
Even better than the real thing:http://nms-cgi.sourceforge.net/
No idea about monetary values,
and as I don't understand any Farsi or have any Farsi fonts installed, it's
not going really to help if I have a look.)
So you may wish to install fa_IR and test with that.
Nicholas Clark
--
Even better than the real thing:http://nms-cgi.sourceforge.net/
'../lib', 'lib');
> }
> else {
> unshift @INC, 't/lib';
> }
> }
>
> so it can see specialty helper modules in t/lib/.
> On Thursday, August 29, 2002, at 06:51 AM, Nicholas Clark wrote:
> >You
option at t/path/to/test.t line 1.
So you already have to change the command line to run a -T test by hand.
So I don't see this as a problem:
../perl -TI. -MTestInit t/path/to/test.t
1..1
ok 1
Although writing it -T -I. is probably clearer
Nicholas Clark
e also
> > > the CPU architecture in the
> > > report (not all boxes are x86)
Nor are all Solaris boxes sparc.
(or x86 for that matter - it was internally ported to alpha to check 64 bit
cleanliness before true 64 bit sparc chips were available)
> > k, but this is a missing info from smoke report.
>
> I can add $Config{archname} to the smokereports if you all want that.
That would be good.
Nicholas Clark
vel::Internals;
> >
> > my $end = sbrk ();
>
> Can you please use a better name? sbrk() doesn't mean anything to me.
Trouble is that it's entirely accurate. If you know what sbrk() is in
Unix, then you know that this would return it. The value is not directly
memory used or anything like that. It's the current sbrk() :-)
Nicholas Clark
if the allocation system grabs a
big block of free space.
However, the function returns something that may not be sbrk() on a system
without sbrk(), don't call it sbrk, because it ain't.
(And do document what it does return on each different system)
Nicholas Clark
what slows perl" is RAM.
So seeing if a data structure change reduces RAM is interesting to me, the
encode compiler, and everyone building perl from source]
Nicholas Clark
--
Even better than the real thing:http://nms-cgi.sourceforge.net/
at YAPC may not want to read it *yet*, because I've not
incorporated more bits based the several other good ideas *I* hadn't thought
of that other people told me.
Nicholas Clark
--
Even better than the real thing:http://nms-cgi.sourceforge.net/
n? I'm confused.
Or do you mean dropping all automatic threading support? In which case, how
does one test threaded code? [not that I've written any]
Will there be an explicit thread testing module?
Nicholas Clark
terface) but it's possible to count the number of
arguments in @_, and thereby distinguish between no arguments and 1 undef
argument. It's just that saying "pass a literal undef for no plan" is about
as clear as "no_plan". Empty string is probably clearer, and quite easy to
test for (with length, after a defined || croak test)
Nicholas Clark
--
Even better than the real thing:http://nms-cgi.sourceforge.net/
wern to write your tests for you?
That's what I want. :-)
[To be honest, I don't care if it's a Schwern (closure) who merely puts it
onto his (captured lexical) $TODO, as long as there's also a reference to
Chromatic to actually get a round tuit. That still gets my tests written f
ing tests. If so, could I
make a feature request for some way to register such a callback.
Nicholas Clark
--
Brainfuck better than perl? http://www.perl.org/advocacy/spoofathon/
On Wed, Nov 06, 2002 at 07:18:14PM -0500, Michael G Schwern wrote:
> On Sat, Oct 26, 2002 at 04:22:49PM +0100, Nicholas Clark wrote:
> > However, I'd like to be able to cleanly print out my random number seed to
> > STDERR (or whatever Test::Builder's correct name fo
that something with that name is not intended for
production.
Nicholas Clark
27;s Dilemma any longer.
Nicholas Clark
Yes, bioperl now including the entire human genome as a prereq has added
a new sharp upwards spike to CPAN's mean prereq size/module size ratio.
We've not seen anything like this since Meta added a dependency on the
entire Linux 2.7.15 source tree back on April 2nd 2005
:-)
Nicholas Clark
ok 2
ok
ok
1..5
then I think that we miss that test 3 of the nested test failed. Or get
confused about which test was the missing test
Or if I've got that wrong, I think that we also get confused with 2
adjacent sub tests.
ok 1
ok 2
ok 3
1..3
ok
ok
ok
ok
ok
1..3
Nicholas Clark
t
print out a singing fat lady as the last bit of output then that's a fail.
I've had things exit cleanly midway from a no_plan test script, and the
harness has been none the wiser. But I just do stupid things.
Nicholas Clark
.
(although how you determine this is hard)
Nicholas Clark
;;
my $r = "foo";
$ARGV[0] =~ /($r)/;
my $c = "echo $1";
system $c;
}
__END__
http://rt.perl.org/rt2/Ticket/Display.html?id=22270
where I don't agree with any of the explainations (IIRC) and stand by the
bug. (But ran out of time to find a better explaination)
Nicholas Clark
7;t think that I have time to work on this either right now, but
there's always next month.
Nicholas Clark
Another thing to scan for Kwalitee?
[probably quite hard]
Nicholas Clark
- Forwarded message from Marcus Holland-Moritz <[EMAIL PROTECTED]> -
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
list-help: <mailto:[EMAIL PROTECTED]>
list-unsubscribe: &l
a good thing to add. Most of the other significant
compile time options are summariesed by the architecture string.
Nicholas Clark
and hashes is broken in 5.8. We tie and localize %ENV.
I wasn't aware of this. Or at least, it doesn't ring a bell. Is perl5-porters
aware of this? Is this a known change in behaviour?
Not that this invalidates your reasons for needing to stick to 5.6.x
Nicholas Clark
to do very much. (ie writing
a couple of tests is better than not, if you don't feel able to take on
a whole module)
Nicholas Clark
attempt to send the most variations of malice, in the hope that one of
them knocks out the routine and finds a bug]
Nicholas Clark
(is listed as PREREQ by at least 3 other dists)
Is it possible to get the lists of prereqs for each module, so as to build
a citation index? (without the need to do all the messy downloading or
parsing - being lazy I'd like to leave that to you)
Or should I download the generator and run it myself?
Nicholas Clark
he wild. So whatever happens in the future, if we want things to
work on existing installations, we need to work round the problem in some
way.
(I don't currently have time to look into or think about whether it's a bug.
Or how to fix it if it is. Or who could fix it.)
Nicholas Clark
On Wed, Dec 22, 2004 at 11:41:56AM -0800, Ovid wrote:
> --- Nicholas Clark <[EMAIL PROTECTED]> wrote:
>
> > On Wed, Dec 22, 2004 at 10:26:02AM -0800, David Wheeler wrote:
> > > 1. Perl gets smarter about duping file handles, so that the dupes
> > get
> &g
On Mon, Jan 31, 2005 at 10:12:16AM +0100, Paul Johnson wrote:
> I suppose that's the price you pay for TIMTOWTDI.
>
> [ Is that a Python programmer I hear giggling in the background? ]
Does Python have any equivalent tool to Devel::Cover?
Nicholas Clark
On Mon, Feb 14, 2005 at 10:04:44AM -0800, Ovid wrote:
> Is this not correct? Where is the TAP protocol documented?
http://search.cpan.org/~petdance/Test-Harness-2.46/lib/Test/Harness/TAP.pod
(Any Test-Harness distribution 2.46 or later, IIRC)
Nicholas Clark
it to
work. Having a demonstrable experiment is a very good first step to
convincing others to help you with it, and having something that is mostly
finished is a good way to get someone else to host a fully working version.
Actions speak louder than words.
Nicholas Clark
it stops Exporter working.
Then again, OO purists might consider that a feature.
Nicholas Clark
en that over is(), it seems fair that he/she made
an explicit choice that $foo being undef was an acceptable match for $bar
being an empty string. (Not so sure about the other 13 comparison operators)
I think I'd prefer like to fail (distinct from warning) if $foo is undef,
given that the expec
our code
> needs and check that you list them as dependencies. This is fraut with
> peril.
When I rule the world (and therefore have requisitioned everyone's tuits)
there will be smoke testing that starts from a clean install each time.
However, right now I don't have time to try to write this. Sorry.
Nicholas Clark
r new "Perl Testing: A Developer's Notebook".
Because Andy would be far too polite to push the book he and Richard Foley
wrote: http://www.apress.com/book/bookDisplay.html?bID=399
Nicholas Clark
On Wed, Jul 20, 2005 at 02:52:40PM -0500, Andy Lester wrote:
> On Wed, Jul 20, 2005 at 08:49:11PM +0100, Nicholas Clark ([EMAIL PROTECTED])
> wrote:
> > Because Andy would be far too polite to push the book he and Richard Foley
> > wrote: http://www.apress.com/book/bookDi
#x27;t you? :-)
[eg "random person to wear fishnet"]
> > We should at least throw the poor module author's a bone and leave
> > Acme:: out of this.
>
> Hey! that would decrease *my* score! ;-)
I've no idea what it would do to my score.
Nicholas Clark
is something amiss with the roundness of my stock
of tuits. (or in other words there are things I find I care more about and
deal with first)
Nicholas Clark
ng. But the automatic
dependency system doesn't need to make installation of this module depend on
installing Test::* onto the production machine. (for the general case)
But it's only important if it's easy to make. And I'd much prefer time and
effort to go into writing better modules, better tests, and better tools,
than generating heat.
Nicholas Clark
; $^X =~ $r;
print $1'
perl
Nicholas Clark
for the next test number
appears. That would mean that the body of your test script would still call
all the regular ok/is/like etc functions without changing them, and your
test script still outputs regular TAP where each numbered test reports
exactly once.
Nicholas Clark
exists and can
run, and if it can't, N/A any package that isn't pure perl.
Yes, I really like valid smoke reports, pass or fail.
But FALSE NEGATIVES ARE PROCESS ERRORS.
Nicholas Clark
7;re getting install failures even with the newest versions of Class::Spiffy
etc? I had failures with YAML not liking an existing installed Spiffy, but
upgrading everything seemed to resolve that.
If that's not it, then I don't know, but Ingy is often around on IRC.
Nicholas Clark
On Fri, Feb 03, 2006 at 11:30:13AM +0100, Tels wrote:
> Problaby just because the last guy running RISC OS has died 4 years ago.
> SCNR :-)
Well, the list is *slightly* more active than that:
http://www.nntp.perl.org/group/perl.riscos
Nicholas Clark
there should be a Kwalitee metric for the length of the synopsis?
I was thinking this too. Some synopses aren't.
Nicholas Clark
" of getting Storable sufficiently portable that it could go into
the core. Trying to work around strange issues thrown up by certain AIX
compilers in certain configurations...
Nicholas Clark
7;t notice.
It would be good if we were in a position to notice. I'm not sure how much
work that would be.
Nicholas Clark
means everyone knows that
you're going to do stuff.
Nicholas Clark
ver =~ /^2.\d\d(_\d\d)?$/, "Version is proper format" );
is( $ver, $Test::Harness::VERSION );
Note that I removed the ? from the _ inside the regexp, which was added
in http://public.activestate.com/cgi-bin/perlbrowse?patch=27925
I felt it better to get the code perfectly in sync than to preserve minor
recent (possible) fixes and have to keep track of the fork.
Nicholas Clark
lexibility in what the chose to display. This class would suck in the
subroutines associated with &strap_callback as methods. In turn, it would
stop the evil storing of callback state in the main T::H object. In turn,
the globals $ML $Last_ML_Print can be eliminated and stored as state in this.
Nicholas Clark
although tests in t/op/*.t in the core
need some issues fixing before they can run in parallel with each other. I
suspect that their names for temporary files are unimaginative and therefore
clash)
I've got the code for a select driven event loop that can run all this, if
that's helpful.
Nicholas Clark
> Supposing you actually find a mentee and TPF actually does fund this project
> and this code is substantially better than Test::Harness such that it is an
> obvious candidate for inclusion in the Perl core.
>
> It must be under the Perl license.
For the core, what he says. Period.
Nicholas Clark
t; suspect it will be as arbitrary as your idea, though :)
Also naming modules with the original author's CPANID is going to become
"fun" if maintainership is transferred, or the original author wants to start
a clean second implementation.
Nicholas Clark
some sentence order
that didn't start with "chromatic"]
Nicholas Clark
;t remember more than that (well, apart from that library wasn't
pleasant code to read or use). I would have found some sort of "done testing"
call useful to have made the test script fail for this case.
Nicholas Clark
can't use
them to efficiently nail down which change was the culprit.
Why am I wrong?
Nicholas Clark
he current repositories, is there?
Setting a svn:external property in the right place on both Parrot and Pugs
would mean that both could check out the same testsuite, and both could
commit back to it.
Nicholas Clark
ier to audit different committer bit policies
if the repositories were different, instead of simply one being a subtree of
another. That was all.
Nicholas Clark
ial enough to be sending automated
crap in response to mailing list messages. (Given the full headers of the
offensive message. BOFH contact details being in the message headers of
any message distributed by the list)
Nicholas Clark
an work round the deficiencies of their
packaging system by having another directory tree in @INC ahead of the
core library paths, into which they install newer versions of dual life
modules. This way no files need to be overwritten on disk, or dual-owned,
yet Perl will still pick up the correct (newer) version.
Nicholas Clark
0503
So whatever the actual cause of the bug leading to the report is, it wouldn't
seem to be what the reporter thought it was.
Nicholas Clark
king" won't be vague (due to no clear single release where it became
workable)
Nicholas Clark
any different test modules on the CPAN.
> This is because many people are putting their descriptions after hash marks,
> not before.
We could just fix the core.
Nicholas Clark
.t file can be re-run infinite times without starting to fail
(before 1 is achieved, due to some sort of set up data being exhausted)
Nicholas Clark
an,rt}.perl.org both know who the user is, and both are
written in Perl, isn't there some web API available from RT that would let
an authenticated machine file a bug report with unmangled patch?
Nicholas Clark
ches
to fix this.
Nicholas Clark
is was on a 32 core Sun, so I had plenty of
headroom to run more TAP generating threads.
Nicholas Clark
le to optionally switch to that
output is useful.
I like the prominence of TODO passed
I'm not sure if I like the lines making the table. I guess it's a bit of a
bikeshed, but having horizontal lines between each will increase the amount
of vertical space needed to convey the same information, which will mean
fewer failures will be needed to exceed my screen's height.
Nicholas Clark
s been
ported to some somewhat un-Unixy portable devices.
IIRC DOS didn't get directories until 1.1
Nicholas Clark
e everything up to here"
which was sufficient to give a lot of flexibility in how tests were run
(and discover that the core is very unoriginal in its naming of temporary
files)
Nicholas Clark
ing a Schwern" and I I'm sure
> you'd prefer to preserve that term for something positive :)
Such as herding MakeMaker for years with no-one ever saying thanks.
Thanks, Schwern.
(although I'm feeling a bit false as I'm not sure how much of that is simply
because "I'm glad that it wasn't me who had to do it")
Nicholas Clark
ou know "23 ok" if you were never told that it ran ok?
Surely one can post-process a regular TAP file to "sparse" output?
And only do so if the TAP file is valid non-sparse output.
This seems safer than generating it by default.
Nicholas Clark
I'm ok
ok 12 - You're ok
ok 13 - I'm ok
ok 14 - You're ok
ok 15 - I'm ok
ok 16 - You're ok
ok 17 - I'm ok
ok 18 - You're ok
ok 19 - I'm ok
ok 20 - You're ok
Does anything spring to mind as to the cause?
Nicholas Clark
s time working actually writing code, and
more time relaxing and being sociable by replying to e-mail on lists. :-)
Meetings - the practical alternative to work.
Nicholas Clark
?
> 3. Where's my beer?
Last seen here: http://london.pm.org/meetings/locations/antelope.html
There will be more beer on 5th April, venue to be confirmed. Possibly with
an emergency before then because Simon Cozens is going to Japan.
Nicholas Clark
On Sun, Mar 18, 2007 at 01:37:36AM +, Andy Armstrong wrote:
> Are we expecting a YAML reader / writer to be core anytime soon?
Not that I'm aware of.
Nicholas Clark
On Mon, Mar 19, 2007 at 09:12:08AM -0500, Andy Lester wrote:
>
> On Mar 19, 2007, at 8:11 AM, Andy Lester wrote:
>
> >
> >
> >Begin forwarded message:
> >
> >>Alright, [EMAIL PROTECTED] should work within 30 minutes or so.
>
> I dunno, I just
On Mon, Mar 19, 2007 at 02:14:23PM +, Nicholas Clark wrote:
> On Mon, Mar 19, 2007 at 09:12:08AM -0500, Andy Lester wrote:
> >
> > On Mar 19, 2007, at 8:11 AM, Andy Lester wrote:
> >
> > >
> > >
> > >Begin forwarded message:
> > &g
gt; the project.
He's somewhere in Outer Mongolia, and won't be back for about 2 weeks:
http://use.perl.org/~domm/journal/33801
http://use.perl.org/~domm/journal/33878
He then might be rather busy until the end of YAPC::EU
Don't be hasty with the f word.
Nicholas Clark
azy, I think because they are not
original in their choice of names for temporary files.
Nicholas Clark
I documented this somewhere, but once you get to 7 tests in
parallel, where you pass the tap stream back to a central parser/reporter,
the parser in Test::Harness became the bottleneck.
Nicholas Clark
big
> > fan of core modules, but the concept is especially worthless if you
> > can't depend on their existence.)
To your own modules?
If so, why on earth is anyone upset about this?
> Any chance you could convince a few thousand ISPs of that? I'm game.
And this is why.
Nicholas Clark
*do* know what version of Foo
they're using, at least in the general case)
Nicholas Clark
ly 2 lines.
[some lawyers are more efficient than others. I wonder if lawyers can be
upgraded]
Nicholas Clark
thout seeing it, it makes me think of the exchanges between IlyaZ and TomC
on p5p. Both were right, but both contradicted each other. The cause was
that each based their reasoning on a different set of assumptions, and what
one thought important the other thought was not, and vice versa.
Nicholas Clark
27;s void, croak.
Otherwise return normally.
Nicholas Clark
On Mon, Jan 07, 2008 at 04:19:17PM +, David Cantrell wrote:
> On Sat, Jan 05, 2008 at 10:24:47PM +0000, Nicholas Clark wrote:
>
> > Not tested, but, can you
> >
> > 1: grab the address of print's op from PL_ppaddr
> > 2: store it somewhere useful
> >
as) were not reported as
errors on the writes, but instead only spotted at close time (when
everything resynchronised). The compiler wasn't checking the return value
of close.
Then again, close time might be too late for the application you're
describing, if it is holding files open for long periods.
Nicholas Clark
1 - 100 of 138 matches
Mail list logo