diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2015-02-19 09:56:27 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2015-02-19 09:56:27 +0000 |
commit | efd32dfb6c52e28f3b158930b64f986ff8760409 (patch) | |
tree | 17be39ecfd6527a069cb179c025d0a8e0ee2cf4d /t/900_meta.t | |
download | Compress-Bzip2-tarball-efd32dfb6c52e28f3b158930b64f986ff8760409.tar.gz |
Compress-Bzip2-2.22HEADCompress-Bzip2-2.22master
Diffstat (limited to 't/900_meta.t')
-rw-r--r-- | t/900_meta.t | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/t/900_meta.t b/t/900_meta.t new file mode 100644 index 0000000..953c12c --- /dev/null +++ b/t/900_meta.t @@ -0,0 +1,28 @@ +# -*- 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; +use Config; +plan skip_all => 'This test is only run for the module author' + unless -d '.git' || $ENV{IS_MAINTAINER}; +plan skip_all => 'Test::CPAN::Meta fails with clang -faddress-sanitizer' + if $Config{ccflags} =~ /-faddress-sanitizer/; + +# Load the testing module +eval "use $MODULE;"; +if ( $@ ) { + plan( skip_all => "$MODULE not available for testing" ); + die "Failed to load required release-testing module $MODULE 0.12" + if -d '.git' || $ENV{IS_MAINTAINER}; +} +meta_yaml_ok(); |