97 from
any available sources - mostly stable and development release tarballs.
So we have over 25 years of history in version control, although the
resolution of changes isn't that good for changes more than 16 years old.
Nicholas Clark
someone will think that as this is an
optimisation project, it's fun. The code is here:
https://github.com/Perl-Toolchain-Gang/Test-Harness
Nicholas Clark
the time. So is it possible for TAP::Parser to use
a more efficient format in memory to "archive" results for tests where
every single subtest was an "ok"?
Nicholas Clark
vate. Meanwhile the unwilling stars of Wikileaks have
discovered that whilst it was always the case that anything you write down
might end up becoming public, computers just make this a lot easier on an
industrial scale.
Nicholas Clark
ferent machine to actually run the complete tests.
> That's worst case. I can probably get compile time down at least 20ms which
> shaves off about 30 seconds.
The IO::Compress tests being such a reliable serial bottleneck that I can set
off a complete build and test run while writing this e-mail just to check
that I had the right distribution, and it finishes before me :-)
Nicholas Clark
On Wed, Nov 16, 2011 at 11:15:21PM -0800, Michael G Schwern wrote:
> On 2011.11.16 5:58 PM, Father Chrysostomos via RT wrote:
> > I think these patches are safe, but given the recent thread about
> > dual-lifing test.pl I'm not even sure whether I should apply it or not.
>
82%28v=vs.85%29.aspx
I've also found
http://msdn.microsoft.com/en-us/library/ms738547%28v=vs.85%29.aspx
Whereas the BSD socket() implementation works in such a way that a socket FD
can be substituted for a file FD, pipe FD or tty FD, and the program
continues to work just as it did before, without needing any special case
code. Doesn't even need recompiling.)
Nicholas Clark
staying in a hotel roughly
midway, so walked to it from Gare du Nord, and walked from the hotel to
the venue)
I like things that are convenient for la Gare du Nord. I'm biased :-)
Nicholas Clark
these days? ie - is it possible to refactor
Devel::Cover to provide the same coverage reports, but generate them from
an nytprof.out file? If not, what's missing from the nytprof.out file?
Would this reduce the maintenance load on Devel::Cover?
Nicholas Clark
an.org/~mschwern/ExtUtils-MakeMaker-6.56/
says "Repository http://github.com/schwern/extutils-makemaker "
Nicholas Clark
just sitting
in the garden, I opted for sitting in the garden. I would have done again
last night, except that the sun had already gone away. Pesky daystar. :-)
Nicholas Clark
ntly has this difference from Module::Build
http://perl5.git.perl.org/perl.git/commit/86bddcbfaf2555223ec8fc596416d13d7a1a1118
which relates to https://rt.cpan.org/Public/Bug/Display.html?id=42724
Nicholas Clark
On Sat, Feb 14, 2009 at 12:57:45PM +0200, Gabor Szabo wrote:
> On Thu, Feb 12, 2009 at 3:18 PM, Nicholas Clark wrote:
> > I find
> >
> >isnt($foo, undef);
> >
> > useful as it gives better failure diagnostics than
> >
> >ok(defined $foo);
gt; isnt( $foo, '', "Got some foo" );
>
>
> which feels such a weak test I don't think I'd write it.
I find
isnt($foo, undef);
useful as it gives better failure diagnostics than
ok(defined $foo);
Nicholas Clark
ming
link karma was worth keeping, hence the original bid remains. Buyer beware.
You *are* getting what you paid for.)
Nicholas Clark
Is this TAP valid?
ok 1 - killed the keyd
1..1
ok 2 - Child exit of 3 was expected
prove (v3.14) thinks so:
All tests successful.
Files=1, Tests=2, 0 wallclock secs ( 0.03 usr 0.00 sys + 0.04 cusr 0.00
csys = 0.07 CPU)
Result: PASS
I'm not convinced.
Nicholas Clark
On Fri, Sep 19, 2008 at 03:35:36PM -0500, brian d foy wrote:
> In article <[EMAIL PROTECTED]>, Nicholas Clark
> <[EMAIL PROTECTED]> wrote:
>
> > But it seems that this bug is only fixed as a side effect of that change,
> > and
> > it's not actually tes
ly tested for. What's the best way to write a test that fits
within the current frameworks to prevent any regression?
It's not obvious to me how to make use_ok() test for failure.
Nicholas Clark
t ;-)
>
> You need a +15 modifier of nothingbettertodoism to vote.
So everyone gainfully employed because they know what they are doing is
automatically disqualified?
Nicholas Clark
en, because modules containing XS should be installed
to an architecture specific path, and the architecture name used differs
for threaded versus unthreaded.
Nicholas Clark
erything the warnings pragma can do, so by changing to use it I might
be adding bugs.
Nicholas Clark
t;use
> warnings" to my code. ;-)
Wouldn't it be simpler to send a patch to domm that makes the warnings point
credited if the module states a requirement on perl pre 5.006, and has a -w
on the #! line?
Nicholas Clark
it's a problem. I'm not convinced that your
cure will work with all real world volunteers.
Nicholas Clark
ication time is stamped with a time from the client, and if they're
out the "impossible" can happen. Which when you're sanity testing the ops
that read these sorts of things, you're looking out for.
Although I suspect that there can be more general problems with make getting
(correctly) confused by timestamps on files it touched.
Nicholas Clark
here:
http://public.activestate.com/cgi-bin/perlbrowse?filename=t%2Fharness&show_blame=Show+Annotated+File
If you want to break it, it doesn't matter. I'll take it out again.
Nicholas Clark
hich_perl(), fresh_perl* and
the isa/can tests)
Nicholas Clark
ropose
> > turning it into a module and dual-lifing it to CPAN.
>
> Nicholas Clark wrote:
> > Why are they using it, rather than something built from
> > Test::Builder? What does it offer that Test::Builder
> > derived modules don't?
>
> Jerry D. Hedden
t in turn to make it pass
I could well spend more time bodging that than actually writing
documentation. Which, I agree with chromatic, would be stupid, and not
something that I'd like to see promoted.
(Is "You have POD and it's well formed" is something that is already tested?)
Nicholas Clark
test to call it quite
tersely, with minimal code duplication, possibly using closures.
One will still get all the diagnostics from running the test twice.
It would just be that the second test, the one we currently don't have a way
to write, would loose its "TODO" and become a hard fail if things change in
the wrong direction.
Nicholas Clark
On Mon, Apr 14, 2008 at 01:54:02PM +0200, Aristotle Pagaltzis wrote:
> * Nicholas Clark <[EMAIL PROTECTED]> [2008-04-14 08:00]:
> > $ grep -c 'ignore X' ~/.muttrc
> > 100
> >
> > That's the ones I've collected that I don't care about. And
have to care about
$ grep -c 'ignore X' ~/.muttrc
100
That's the ones I've collected that I don't care about. And some of those are
common prefixes.
I guess that there are bazillions more. "There's one born every minute."
Nicholas Clark
are not those which you want to consider reserved. I guess that one
needs to loop over all characters in the string, and verify that if
$char eq lc $char then also $char ne uc $char. (But one could first
short circuit the common pass case with the test above)
Nicholas Clark
led from other projects
* It doesn't matter the the main project if it fails
* It can expand (or contract) to fit the student's abilities and whatever "end"
is reached it can still be declared a success
* It doesn't have a high barrier of entry due to needing knowledge of existing
code bases.
Now, does anyone know a student?
Nicholas Clark
UsedAvail Capacity Mounted on
nas:/data 258199522 203419366 3412419686%/filer
Nicholas Clark
t skipping is better, because the tests run as non-root
already prove that the module's functionality worked. Adding a lot
of complex logic to the test to swap user when running as root would
actually make the test as much a test of the user ID swapping code,
and introduce code that isn't usually tested, and generally introduce
fragility and cause false positive failures.
Nicholas Clark
ject file extension.
You can get that from $Config:
$ perl -V:obj_ext
obj_ext='.o';
Nicholas Clark
;s terminal is expecting the
same (8 bit) encoding as the script already is in.
However, it might be safe enough to invoke the testing Perl with -CLS
(set STDIN/STDOUT/STDERR to UTF-8 if the user's locale has UTF-8 in it)
which is probably going to be more right more often than anything else.
Not sure if -CLS only came in with 5.8.1
Nicholas Clark
foo)s+(?bar)?s+(?baz))/
> > Line
> > 3793
> >
> > The 'failure' is the extra 'not' before the pound sign.
> > I tried to figure out what's causing it, but couldn't.
Is it possible to put the TAP parser into a strict mode where it would detect
and fault these sorts of things?
(I think most specifically "these things" are lines that aren't /^ok/,
/^not ok/ or /^#/ )
Nicholas Clark
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
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
> >
27;s void, croak.
Otherwise return normally.
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
ly 2 lines.
[some lawyers are more efficient than others. I wonder if lawyers can be
upgraded]
Nicholas Clark
*do* know what version of Foo
they're using, at least in the general case)
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
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
azy, I think because they are not
original in their choice of names for temporary files.
Nicholas Clark
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
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
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 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
?
> 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
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
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
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
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
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
s been
ported to some somewhat un-Unixy portable devices.
IIRC DOS didn't get directories until 1.1
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
is was on a 32 core Sun, so I had plenty of
headroom to run more TAP generating threads.
Nicholas Clark
ches
to fix this.
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
.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
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
king" won't be vague (due to no clear single release where it became
workable)
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
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
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
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
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
can't use
them to efficiently nail down which change was the culprit.
Why am I wrong?
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
some sentence order
that didn't start with "chromatic"]
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
> 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
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
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
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
means everyone knows that
you're going to do stuff.
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
" 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
there should be a Kwalitee metric for the length of the synopsis?
I was thinking this too. Some synopses aren't.
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
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
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
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
; $^X =~ $r;
print $1'
perl
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
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
#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
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
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
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
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
it stops Exporter working.
Then again, OO purists might consider that a feature.
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
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
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 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
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
1 - 100 of 138 matches
Mail list logo