From 9a696905993e48d960f0155cf9f0c0db2297e9e6 Mon Sep 17 00:00:00 2001 From: David Golden Date: Mon, 20 Jun 2016 10:41:43 -0400 Subject: [PATCH] Remove author tests now covered by Dist::Zilla xt tests --- t/01_compile.t | 14 -------------- t/97_meta.t | 27 --------------------------- t/98_pod.t | 32 -------------------------------- t/99_pmv.t | 32 -------------------------------- 4 files changed, 105 deletions(-) delete mode 100644 t/01_compile.t delete mode 100644 t/97_meta.t delete mode 100644 t/98_pod.t delete mode 100644 t/99_pmv.t diff --git a/t/01_compile.t b/t/01_compile.t deleted file mode 100644 index 0d5ac0f..0000000 --- a/t/01_compile.t +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/perl - -# Tests that DateTime::Tiny compiles - -use strict; -BEGIN { - $| = 1; - $^W = 1; -} - -use Test::More tests => 2; - -ok( $] >= 5.004, "Your perl is new enough" ); -use_ok( 'DateTime::Tiny' ); diff --git a/t/97_meta.t b/t/97_meta.t deleted file mode 100644 index 3dfec73..0000000 --- a/t/97_meta.t +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/perl - -# Test that our META.yml file matches the current specification. - -use strict; -BEGIN { - $| = 1; - $^W = 1; -} - -my $MODULE = 'Test::CPAN::Meta 0.12'; - -# 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 module -eval "use $MODULE"; -if ( $@ ) { - $ENV{RELEASE_TESTING} - ? die( "Failed to load required release-testing module $MODULE" ) - : plan( skip_all => "$MODULE not available for testing" ); -} - -meta_yaml_ok(); diff --git a/t/98_pod.t b/t/98_pod.t deleted file mode 100644 index a96eb6a..0000000 --- a/t/98_pod.t +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/perl - -# Test that the syntax of our POD documentation is valid - -use strict; -BEGIN { - $| = 1; - $^W = 1; -} - -my @MODULES = ( - 'Pod::Simple 3.07', - 'Test::Pod 1.26', -); - -# 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 ( $@ ) { - $ENV{RELEASE_TESTING} - ? die( "Failed to load required release-testing module $MODULE" ) - : plan( skip_all => "$MODULE not available for testing" ); - } -} - -all_pod_files_ok(); diff --git a/t/99_pmv.t b/t/99_pmv.t deleted file mode 100644 index aaf6a65..0000000 --- a/t/99_pmv.t +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/perl - -# Test that our declared minimum Perl version matches our syntax - -use strict; -BEGIN { - $| = 1; - $^W = 1; -} - -my @MODULES = ( - 'Perl::MinimumVersion 1.20', - 'Test::MinimumVersion 0.008', -); - -# 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 ( $@ ) { - $ENV{RELEASE_TESTING} - ? die( "Failed to load required release-testing module $MODULE" ) - : plan( skip_all => "$MODULE not available for testing" ); - } -} - -all_minimum_version_from_metayml_ok();