file is less than optimal, I
agree. If you have to go and touch your test file to tell it about a
change in your module, that is kinda lame.
Changing the module without adding a test for the changes is kinda lame too!
--
David Cantrell
H.Merijn Brand wrote:
Just only today I hit an M$Access database with a table named
`./onderw`.`Bus; Taxi; Auto`
My mail client inexplicably just quit. I assume because it was so
disgusted.
--
David Cantrell
Jim Keenan wrote:
Using the standard Test::More framework, is it
possible to test whether what was printed to a
filehandle matches a predetermined string or list of
strings?
Would IO::Capture be of help here?
--
David Cantrell
in other distributions
Personally, I would probably just the list the module as a dependency,
because that's easy for me.
Not only easier for you, better for your users.
--
David Cantrell
to objectively measure that.
--
David Cantrell
with no additional modules does
something wrong.
That too :-)
--
David Cantrell
::P0fq that I am slowly working on requires
a running copy of p0f.
--
David Cantrell
maintenance of a module
it is usually with the blessing of the previous maintainer, so that
shouldn't be difficult most of the time.
--
David Cantrell
of the several modules contained therein - and if not, where
should the package version number come from? and
2) Am I breaking anything?
--
David Cantrell
Adrian Howard wrote:
On 18 Apr 2005, at 17:03, David Cantrell wrote:
Number::Phone::UK::Data - no version, this is where the .0004 comes from
though. It has no version number because the
entire file is generated from a *really* dumb
Adrian Howard wrote:
On 19 Apr 2005, at 11:40, David Cantrell wrote:
The script that generates it doesn't change. The data that it mangles
into a module is the bit that changes.
Can you add a version number to the data?
Yep, did that last night. It's (eg) 1.20050420.
I dug through my mail
contacts.
See also:
http://www.edri.org/
http://www.eff-europe.org/
--
David Cantrell
demerphq wrote:
Whose command line? Mine doesnt by default come with xargs.
I expect it didn't come with perl either, yet you seem to have managed
to install that yourself.
--
David Cantrell
of perl (or rather,
perldoc) did that appear in? I think I'll stick to #comments though -
less typing!
--
David Cantrell
Adam Kennedy wrote:
David Cantrell wrote:
Tels wrote:
If I were to run CPANTS, I would drop that module like a hot potato
at a summer campfire.
Oh, and reduce everyone's K rating involved in the little prank by
one :)
I thought the whole point of CPANTS was to be useful to authors
what File::Spec does. I'd not
support that argument though - it would make stuff like ...
warn(Windows isn't supported\n) if($^O =~ /win32/i);
impractical.
--
David Cantrell
instead of Kwalitee.
I'm all in favour of adding has_licence, on the grounds that some people
care about Kwalitee willy-waving and not Quality, and so it'll be a good
way to encourage them to DTRT.
--
David Cantrell
Black Helicopters, it has to be a Pinot Noir.
--
David Cantrell
on Unix-like OSes?
--
David Cantrell
nightmare and I wish to be no
part of that :)
Actually, this isn't so bad on Debian. The packaging system copes with
having dependencies on particular versions of other packages, and Debian
is VERY stable - libfoo just doesn't randomly change version.
--
David Cantrell
if a hosting company
doesn't let people install stuff from the CPAN they'll be just as
idiotic about the CPPMAN?
--
David Cantrell
at a
TranslateFilenamesUsingFiglet fs (which you wrote using fuse when very
very drunk).
--
David Cantrell
example of a nice portable module.
It doesn't work on RISC OS though.
--
David Cantrell
David Landgren wrote:
David Cantrell wrote:
brian d foy wrote:
Seriously though, I would expect things in Win32::* to only work on
Windows, things in Linux::* only to work on linux, and so on for many
other sections (including Mac::* where I have some modules). Portable
code isn't always
nothing to do with perl programming.
--
David Cantrell
Geoffrey Young wrote:
David Cantrell wrote:
Try writing a test suite ahead of time for a graphing library. It's
possible (indeed, it's trivial - just check the md5 hashes of the images
that are spat out against images that you have prepared ahead of time in
some other way) but it would
Ben Evans wrote:
Strawman.
Ad hominem.
A graphing library is an obvious example where functional testing should be
used prior to automated regression testing.
Yes. It is one of many such examples. It just happens to be the one I
am working on as we speak.
--
David Cantrell
dependencies
doesn't work on their version of perl. If you're lucky, they might read
the error and determine that the module and not the application (or the
language!) is broken, but I'd not put money on them bothering to do that.
--
David Cantrell
that there's more than one way to do
it and almost all of them are wrong.
--
David Cantrell
that I've not
found yet.
That said, I don't want to see those things go into the core, because
I'm in the the core is too big already camp.
--
David Cantrell
Smylers wrote:
David Cantrell writes:
rsnapshot (for example) has its own code for traversing a directory
tree, its own cut-down Memoize, and probably a few others that I've
not found yet.
That said, I don't want to see those things go into the core, because
I'm in the the core is too big
chromatic wrote:
On Thursday 06 April 2006 17:53, Adam Kennedy wrote:
UNIVERSAL::isa/can when called as a function does a very specific thing,
and one that is often misunderstood.
... and never correct, in the face of proxy objects, blessed objects,
overloading, and ties.
I disagree. In
place :-)
--
David Cantrell
A. Pagaltzis wrote:
* David Cantrell [EMAIL PROTECTED] [2006-05-03 11:00]:
It does work very well though and I prefer it to fighting with
the MakeMaker docs to figure out how to get it to install a
data file in the right place :-)
Perl has language-level support for uuencoding/-decoding data
/~username/journal/rss
--
David Cantrell
. Obviously, I
need different modules for those two cases, and just as obviously, when
installing a module I need to tell Makefile.PL which perl to install it for.
(actually I have three perls, but one is Debian's own version which I
never touch)
--
David Cantrell
fails, and would be
incorrectly recorded as a failure. That will really give me confidence
in the quality of CPANTS.
--
David Cantrell
mis-spelling.
--
David Cantrell
of the code.
Any tips on what - other than comprehensiveness, clarity and
maintainability - I should aim for specifically in test suites would be
greatly appreciated.
--
David Cantrell
. And still can't remember when to
use licence and license. Or practice and practise. Stupid language.
--
David Cantrell
really possible. Perl makes far too many Unixy
assumptions.
--
David Cantrell
but
that does seem very much like using a hammer to break open a very
small nut. While everyone seems to just upgrade Test::Simple and to
hell with the consequences, I can't help but feel some concern about
this practice.
--
David Cantrell | Hero of the Information Age
The Law of Daves: in any
up a prayer to Schwern every time something like Module::Build
reminds me just how much worse it could be.
--
David Cantrell
signed up for all my individual feeds.
Anyone who wants it, prod me off-list.
It assumes you use rss2email, but should be adaptable for all other
sensible RSS tools.
--
David Cantrell
-perl modules.
--
David Cantrell
twice, or saying
$variable = 'one thing' and $varable = 'something else'. I deal
with those by having $SIG{__WARN__} turn them into die()s in the tests.
If you don't deal with them, you're saying that you don't care about
tripping yourself up in the future.
--
David Cantrell
Ovid wrote:
David Cantrell [EMAIL PROTECTED] wrote:
Fergal Daly wrote:
use Test::NoWarnings;
I like to use Fewer::Annoying::Dependencies.
Same here, but Test::NoWarnings is hardly annoying.
Sure, on its own. But then there's lots of other modules which, on
their own, aren't annoying
?
Not if you use YAML.pm, at any rate.
--
David Cantrell
in its documentation -
but it's a good start.
--
David Cantrell
bugs.
--
David Cantrell
idea for CPANTS to check that directories
have the x bits set. This would either be a new metric, or could be
rolled into 'extracts_nicely', or could be combined with 'no_symlinks'
and called 'uses_portable_filesystem_features' or something similar.
--
David Cantrell
on x86) and OS X (x86 and PPC), so nothing particularly
unusual.
Another good source of places to test your own stuff is the various free
or cheap shell servers around the net. eg freeshell.org for NetBSD/Alpha.
--
David Cantrell
.
Could it be that it actually *is* his decompression software?
No. My tar program faithfully replicates the permissions in the file I
feed to it.
--
David Cantrell
are links
* Method names are in C sequences
Again, a method name may also be a perfectly legitimate word in whatever
language the author is using, and so appear in all sorts of other places.
--
David Cantrell
nice to be able to read the code
while documenting it - in which case interleaved would be better.
Most editors should be able to 'fold' POD just like they can fold
subroutines.
--
David Cantrell
who have explicitly opted in to them by, eg, setting an option
in META.yml.
--
David Cantrell
of the pre-release process, but I
omit these 'has a file $foo' metrics because I believe they *hinder*
quality.
I wouldn't go that far, but I don't think they help much.
--
David Cantrell
modules are already 2.5MB and 7.5MB
*compressed*, 18 and 36MB uncompressed.
--
David Cantrell
of tests much easier. Yes, I do know that
there are other modules that do some of what this does. But only some
of it. Also before uploading it to the CPAN I really need a volunteer
to sanity-check it on VMS.
--
David Cantrell
Steffen Mueller wrote:
Does this do what you want?
http://search.cpan.org/~corion/Test-Without-Module-0.09/
Doesn't do what I want, as I want to be able to infect any perl
processes that might get exec()ed by the one from which I've hidden
Some::Module.
--
David Cantrell
accept a patch to make that an option?
--
David Cantrell
Eric Wilhelm wrote:
# from David Cantrell
No. If AUTHOR_TESTING, fail miserably unless the pod and coverage
both 1. gets tested and 2. passes. That means the Test::Pod::*
module in question must load.
Wrong. If AUTHOR_TESTING then surely all tests *must* pass both with
and *without
Eric Wilhelm wrote:
# from David Cantrell
Let us assume that I write a module that, if you have a particular
module installed will do some extra stuff. This is very common.
...
Skipping tests because you correctly identify that the optional module
isn't available is, of course, counted
, and there were some mumblings on another perly list
recently (module-authors, IIRC) about documenting it better so it stops
appearing to be hard.
--
David Cantrell
a foul, disgusting hack. If anyone wants to make it less sucky (eg
to work off local databases of test results instead of just naively
web-scraping) then the source is available too.
Try it with something like Catalyst to see the test results for half of
the CPAN.
--
David Cantrell | Official
, and for the same reason.
--
David Cantrell
. I already have too many. Maybe you'd get more
edits if people could login using their PAUSE id.
Anyway, perhaps someone could add a link to Devel::Hide, which is very
useful for testing your code both with and without optional extra
modules installed.
--
David Cantrell
Andy Lester wrote:
On Fri, Sep 21, 2007 at 11:23:21AM +0100, David Cantrell ([EMAIL PROTECTED])
wrote:
It appears that I can't make any changes without registering for yet
another bloody account. I already have too many.
You have a limit?
I have more than I can remember. Does that answer
Jonathan Rockway wrote:
You might like File::ShareDir for this. That way you can keep the big
data file out of band, and avoid having to maintain a database inside
your perl file.
Unfortunately it requires Module::Install.
--
David Cantrell
our
own local distributions onto the end of the packages gzip file. I'll
see if we can release it.
--
David Cantrell
, as a nice shiny side-effect.
--
David Cantrell
David Golden wrote:
At one point, David Cantrell had volunteered to write Devel::AssertLib
to complement Devel::AssertOS. Presumably, when that is done, you'll
be able to bundle it in inc/ and do this:
use 'inc';
use Devel::AssertLib '-lhid';
# rest of Build.PL follows as normal
If David
(at least those of the sort you might
want someone to run using sudo) have some way of executing something
else or changing a file's contents. I treat sudo as a convenience for
trusted users, and nothing else. If I don't trust you, you don't get
sudo at all.
--
David Cantrell | Minister
that there is a bootstrapping
problem in using this from within a Makefile.PL - relax, it will come
with a script to bundle itself in an inc/ directory.
--
David Cantrell
the
ability to filter http://cpandeps.cantrell.org.uk/ by platform and by
perl version.
--
David Cantrell | top google result for internet beard fetish club
Blessed are the pessimists, for they test their backups
.
And if the build process had a create a Makefile.PL for you, then in my
opinion it's pretty important to let you know about that if it causes
problems. It shows that the module wasn't properly packaged, for some
definition of properly.
--
David Cantrell | top google result for internet beard
On Mon, Oct 22, 2007 at 09:50:42AM -0700, Eric Wilhelm wrote:
# from David Cantrell
And if the build process had a create a Makefile.PL for you, then in
my opinion it's pretty important to let you know about that if it
causes problems. It shows that the module wasn't properly packaged
On Mon, Oct 22, 2007 at 10:52:47AM -0700, Eric Wilhelm wrote:
# from David Cantrell
# on Monday 22 October 2007 09:58:
This is a specific sort of failure, and as far as I'm concerned it
is an improperly configured machine.
How is it improperly configured?
It is ignoring Build.PL
Bear
an error like this from Build.PL
die missing library sys/ioctl.ph unless happy();
if(!happy()) { warn missing library sys/ioctl.ph\n; exit }
--
David Cantrell
of this kwalitee metric and would like to subscribe to its
newsletter^W^W^W^Wbe told which of my modules are broken.
--
David Cantrell | top google result for internet beard fetish club
One person can change the world, but most of the time they shouldn't
-- Marge Simpson
core in the minimum version of
perl that you support. And ideally say what that minimum version is.
--
David Cantrell | top google result for internet beard fetish club
Today's previously unreported paraphilia is tomorrow's Internet sensation
On Mon, Nov 19, 2007 at 04:30:51PM -0600, Jonathan Rockway wrote:
I've been yelled at in bug reports and on IRC for adding core modules as
prereqs
So close the bugs with no bug found and /ignore the twits on irc.
--
David Cantrell | Godless Liberal Elitist
The Law of Daves: in any
welcomes patches. Well, he did for
me anyway :-)
--
header FROM_DAVID_CANTRELLFrom =~ /david.cantrell/i
describe FROM_DAVID_CANTRELLMessage is from David Cantrell
scoreFROM_DAVID_CANTRELL15.72 # This figure from experimentation
-1.00_00.tar.gz), because if you give it just a
module name it installs the latest *release* version.
Yeah, I know, you know this Schwern, but I'm sure some people here
don't.
--
David Cantrell | top google result for topless karaoke murders
Godliness is next to Englishness
to
ignore permissions altogether. The *really* hard bit is to do that as
an unpriveleged user and without making any changes to the fs.
If so, then I can see immediate uses for it in a couple of my projects.
--
David Cantrell | A machine for turning tea into grumpiness
You know you're getting
users install a dependency. Re-using code is a Good Thing of
course, but taken to extremes it can be a real pain in the arse for
those for whom perl is just another environment that they have to
support on their machines.
--
David Cantrell | Nth greatest programmer in the world
, then I'm happy to run more tests for him,
try out patches, or give him the s3kr1t keys to the guest account on my
testing machines.
I would hope that most testers would do at least some of this.
--
David Cantrell | Official London Perl Mongers Bad Influence
Hail Caesar! Those about to vi ^[ you!
Chris Dolan wrote:
Does anyone know how the false negative rates compare for cpan-tester
smokers vs. CPAN::Reporter users? I've found the former to be
enormously valuable for cross-platform testing (especially David
Cantrell and Slaven Rezic), but I have seen very little feedback via
are quite used to having to correct
all the world's a Unix box assumptions in code before installing it.
Even so, I don't like to recommend it yet.
Doing the VMS port was on my to-do list for December. Unfortunately I
got side-tracked by the Go board, my kitchen, and several gallons of cider.
--
David
on the perl.org mail
server, I can bet you that most people would just procmail them to
/dev/null because most are irrelevant to p5p - they're the same bugs in
modules that are also caught on stable perls.
--
David Cantrell | Godless Liberal Elitist
comparative and superlative explained:
Huhn worse
in their code.
--
David Cantrell | http://www.cantrell.org.uk/david
THIS IS THE LANGUAGE POLICE
PUT DOWN YOUR THESAURUS
STEP AWAY FROM THE CLICHE
Andreas J. Koenig wrote:
On Mon, 24 Dec 2007 17:26:47 +, David Cantrell [EMAIL PROTECTED]
said:
dc Personally
dc I'd prefer to at least have the opportunity to fix my modules before
dc ordinary users (who never touch a dev perl) will ever see the problem.
As author you have already
recent
source tree, build it, and test it, then I can test it on the same boxes
as I do CPAN testing, plus maybe a couple of others.
--
David Cantrell | Cake Smuggler Extraordinaire
PLEASE NOTE: This message was meant to offend everyone equally,
regardless of race, creed, sexual orientation
On Tue, Jan 01, 2008 at 08:23:52PM -0500, James E Keenan wrote:
David Cantrell wrote:
If anyone can give me an idiots' guide to how to grab the most recent
source tree, build it, and test it, then I can test it on the same boxes
as I do CPAN testing, plus maybe a couple of others.
svn co
what version of 5.8.x this was. It might be in
the p5p archives.
--
David Cantrell | top google result for internet beard fetish club
For every vengeance, there is an equal and opposite revengeance.
-- Cartoon Law X
dependency tree are a Bad Idea. See UNIVERSAL::* for
examples of why.
--
David Cantrell | Hero of the Information Age
I think the most difficult moment that anyone could face is seeing
their domestic servants, whether maid or drivers, run away
-- Abdul Rahman Al-Sheikh, writing at
http
being met or 'last');
if that's practical.
--
David Cantrell | A machine for turning tea into grumpiness
, with 5.006 being strongly
preferred (see hates-software).
--
David Cantrell | top google result for internet beard fetish club
with cases where
$Config{cc} is foo cc where foo can be a shell script or similar
for doing things like parallelising builds.
--
David Cantrell | Cake Smuggler Extraordinaire
Aluminum makes a nice hat.
All paranoids will tell you that.
But what most do not know
Is reflections will show
On Mon, Feb 25, 2008 at 06:49:13PM +, Andy Armstrong wrote:
On 25 Feb 2008, at 18:44, David Cantrell wrote:
Devel::CheckLib's _findcc() function ...
And quite splendid it appears to be, thanks :)
blush
Did I miss a mention in the documentation of its use to detect merely
compiler
1 - 100 of 202 matches
Mail list logo