Bug#501688: Module::Install improvements with tests!

Paul Fenwick pjf at perltraining.com.au
Tue Nov 25 14:00:38 UTC 2008


G'day everyone,

Despite all my chatter, I have some real changes for dh-make-perl.

The attached patches:

	* Avoids doing any work if we're being loaded as a library[1].

	* Adds some simple tests for extracting names and versions from
	  Module::Install style makefiles[2].

	* Adds tests for the above.

	* Adds a trivial ./test command for running the (very small)
	  test suite.

The patches are exported from git, so they retain meta info such as dates,
times, and commit messages.  If you'd prefer combined mega-patch, let me know.

These patches assume the big perltidy change has already been applied.  They
can also be extracted directly from the master branch of my git repo[3].

Cheerio,

	Paul

[1] Perl allows one to return() when code is being required, which makes
this a trivial one-line change, as opposed to having to wrap everything in a
main sub.

[2] Since Module::Install always writes a META.yml when run by the module
author, this code will hopefully never be needed.

[3] http://github.com/pfenwick/dh-make-perl/

-- 
Paul Fenwick <pjf at perltraining.com.au> | http://perltraining.com.au/
Director of Training                   | Ph:  +61 3 9354 6001
Perl Training Australia                | Fax: +61 3 9354 2681
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Simple-patch-to-avoid-doing-work-if-we-re-being-requ.patch
Type: text/x-patch
Size: 0 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20081126/c7806dea/attachment.bin 


More information about the pkg-perl-maintainers mailing list