diff options
Diffstat (limited to 'cpan/Module-Build/t/debug.t')
-rw-r--r-- | cpan/Module-Build/t/debug.t | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/cpan/Module-Build/t/debug.t b/cpan/Module-Build/t/debug.t new file mode 100644 index 0000000000..c9b4fa581c --- /dev/null +++ b/cpan/Module-Build/t/debug.t @@ -0,0 +1,33 @@ +#!/usr/bin/perl -w + +use strict; +use lib 't/lib'; +use MBTest tests => 3; + +require_ok('Module::Build'); +ensure_blib('Module::Build'); + +my $tmp = MBTest->tmpdir; + +use DistGen; +my $dist = DistGen->new( dir => $tmp ); +$dist->regen; +END{ $dist->remove } + +$dist->chdir_in; + +######################### + +# Test debug output +{ + my $output; + $output = stdout_of sub { $dist->run_build_pl }; + $output = stdout_of sub { $dist->run_build('--debug') }; + like($output, '/Starting ACTION_build.*?Starting ACTION_code.*?Finished ACTION_code.*?Finished ACTION_build/ms', + "found nested ACTION_* debug statements" + ); +} + +######################### + +# cleanup |