diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2015-07-21 13:23:57 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2015-07-21 13:23:57 +0000 |
commit | a276db189a656a4cc5881a2ebc4cad3113685030 (patch) | |
tree | 27aeb24e5ddbd94b313aa661a8de133ff9c751f2 /xt/release/pod_spelling_common.t | |
download | File-Which-tarball-a276db189a656a4cc5881a2ebc4cad3113685030.tar.gz |
File-Which-1.19HEADFile-Which-1.19master
Diffstat (limited to 'xt/release/pod_spelling_common.t')
-rw-r--r-- | xt/release/pod_spelling_common.t | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/xt/release/pod_spelling_common.t b/xt/release/pod_spelling_common.t new file mode 100644 index 0000000..ad8dffd --- /dev/null +++ b/xt/release/pod_spelling_common.t @@ -0,0 +1,27 @@ +use strict; +use warnings; +use Test::More; +BEGIN { + plan skip_all => 'test requires Test::Pod::Spelling::CommonMistakes' + unless eval q{ use Test::Pod::Spelling::CommonMistakes; 1 }; + plan skip_all => 'test requires YAML' + unless eval q{ use YAML qw( LoadFile ); 1 }; +}; +use Test::Pod::Spelling::CommonMistakes; +use FindBin; +use File::Spec; + +my $config_filename = File::Spec->catfile( + $FindBin::Bin, 'release.yml' +); + +my $config; +$config = LoadFile($config_filename) + if -r $config_filename; + +plan skip_all => 'disabled' if $config->{pod_spelling_common}->{skip}; + +chdir(File::Spec->catdir($FindBin::Bin, File::Spec->updir, File::Spec->updir)); + +# FIXME test files in bin too. +all_pod_files_ok; |