[dw-free] Many tests in t/ fail
[commit: http://hg.dwscoalition.org/dw-free/rev/8a1034a41fe1]
http://bugs.dwscoalition.org/show_bug.cgi?id=1721
Test coverage script.
Patch by
szabgab.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=1721
Test coverage script.
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Files modified:
- Build.PL
-------------------------------------------------------------------------------- diff -r c0db56fd627d -r 8a1034a41fe1 Build.PL --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Build.PL Sat Sep 05 10:51:57 2009 +0000 @@ -0,0 +1,56 @@ +# Build.PL - sets up and generates a test coverage report +# +# Author: szabgab +# +# Copyright (c) 2009 by Dreamwidth Studios, LLC. +# +# This program is free software; you may redistribute it and/or modify it under +# the same terms as Perl itself. For a copy of the license, please reference +# 'perldoc perlartistic' or 'perldoc perlgpl'. + +use strict; +use warnings; +use Module::Build; + +# Requirements +# See bin/checkconfig.pl +# as explained in: +# http://wiki.dwscoalition.org/notes/Dreamwidth_Scratch_Installation#Make_sure_things_are_working_with_checkconfig.pl + +# Setting Up +# Run this script to generate the Build script: +# perl Build.PL +# +# Run the generated file to copy some files and set things up for tests: +# ./Build + +# Running +# Run the tests in regular mode with this: +# ./Build test # runs the tests in regular mode; not really needed here +# +# Generate test coverage with this: +# DEVEL_COVER_OPTIONS=-ignore,/usr/local ./Build testcover +# +# or add +# export DEVEL_COVER_OPTIONS=-ignore,/usr/local +# to .bashrc and then you can use +# ./Build testcover + + +my $builder = Module::Build->new( + module_name => 'DW', + #license => 'gpl', + #dist_author => '', + #dist_version_from => 'lib/Test/Most.pm', + dist_version => '0.01', + # TODO: see above + requires => { + 'DBI' => 0, + 'perl' => '5.006', + }, + #add_to_cleanup => ['DW-*'], + create_makefile_pl => 'none', +); + +$builder->create_build_script(); + --------------------------------------------------------------------------------