From: Kartik Thakore Date: Sat, 15 Aug 2009 15:32:06 +0000 (-0400) Subject: Added manifest.t to test MANIFEST X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=fec3d7619a3c928ab18a4408e8768db75024c643;p=sdlgit%2FSDL_perl.git Added manifest.t to test MANIFEST --- diff --git a/t/manifest.t b/t/manifest.t new file mode 100644 index 0000000..b4cde68 --- /dev/null +++ b/t/manifest.t @@ -0,0 +1,33 @@ +#!/usr/bin/perl + +# Test that our MANIFEST describes the distribution + +use strict; + +BEGIN { + use English qw(-no_match_vars); + $OUTPUT_AUTOFLUSH = 1; + $WARNING = 1; +} + +my @MODULES = ( + 'Test::DistManifest 1.001003', +); + +# Don't run tests for installs +use Test::More; +unless ( $ENV{AUTOMATED_TESTING} or $ENV{RELEASE_TESTING} ) { + plan( skip_all => "Author tests not required for installation" ); +} + +# Load the testing modules +foreach my $MODULE ( @MODULES ) { + eval "use $MODULE"; + if ( $EVAL_ERROR ) { + $ENV{RELEASE_TESTING} + ? BAIL_OUT( "Failed to load required release-testing module $MODULE" ) + : plan( skip_all => "$MODULE not available for testing" ); + } +} + +manifest_ok();