Test-CheckManifest-1.29000755001750001750 012452362275 14761 5ustar00reneebreneeb000000000000README100644001750001750 51612452362275 15704 0ustar00reneebreneeb000000000000Test-CheckManifest-1.29 This archive contains the distribution Test-CheckManifest, version 1.29: Check if your Manifest matches your distro This software is Copyright (c) 2015 by Renee Baecker. This is free software, licensed under: The Artistic License 2.0 (GPL Compatible) This README file was generated by Dist::Zilla::Plugin::Readme v5.029. Changes100644001750001750 721212452362275 16337 0ustar00reneebreneeb000000000000Test-CheckManifest-1.29Revision history for Perl extension Test::CheckManifest. ======================================================== 1.29 2015-01-05 [DOCUMENTATION] * document dir/file feature that was added in 1.27 (pr#2 - Thanks to Doug Hoyte (FRACTAL)) 1.28 2014-01-19 + fix bug where some files in the selftest were skipped while the files where added to the dist. 1.27 2014-01-17 + added feature to specify path of MANIFEST or directory where it is stored 1.26 2012-07-19 No changes after 1.25_01 1.25_01 2012-07-17 + Module wasn't able to find the MANIFEST when the test file was in a subdirectory - Thanks to BBYRD - sections "AUTHOR" and "COPYRIGHT AND LICENSE" were duplicated - Thanks to BIGPRESH (once from Dist::Zilla and once in the original source) 1.25 2012-01-31 - fix typo in documentation - Thanks to BIGPRESH 1.24 2011-04-09 + MANIFEST spec allows whitespaces in filenames (when enclosed in single quotes) this was not parsed correctly (see [#67334]). Fixed now - Thanks to JWEIGEL 1.23 2011-03-28 + CPAN toolchain now creates MYMETA.yml and META.json. These files are in the list of recognized files now. + clarify license of this module (In README the Perl license was mentioned where in all other files Artistic 2.0 was mentioned) + switched to Dist::Zilla + removed tests that are created by Dist::Zilla 1.22 2010-07-29 + fix a bug that appears when there is no MANIFEST.SKIP 1.21 2010-02-17 + return from sub when MANIFEST.SKIP does not exist 1.2 2010-02-03 + moved from SVN to Git (and adapted the filters in testfiles) + added support for MANIFEST.SKIP + small code improvements 1.1 2009-11-22 - CHECK as a label is not allowed in Perl > 5.11.x, so replace it + switched license to Artistic 2.0 + bugfix in 01_selftest.t 1.01 2007-12-29 - fixes in test scripts - require 5.006001 - allow more characters in path + added license to Makefile.PL + changed META.yml 1.0 2006-12-27 - bugfix: ok_manifest excludes files created by Module::Build 0.9 2006-11-27 - bugfix: ok_manifest files without blib (http://rt.cpan.org/Public/Bug/Display.html?id=23580) - bugfix: Test-CheckManifest.t -- added ':' in character group (untaint $home) - bugfix: 99_pod_coverage.t -- removed all_modules and now T::P::C 1.08 or higher is required - bugfix: ref $_ --> ref($_) - bugfix: "filter" to exclude files that match on specific regexp from test (http://rt.cpan.org/Public/Bug/Display.html?id=23529) + added: 00_load.t 0.8 2006-11-24 + added: T::CM now tests also on files that are not part of the distro but named in the MANIFEST 0.7 2006-11-23 + added: "filter" to exclude files that match on specific regexp from test (http://rt.cpan.org/Public/Bug/Display.html?id=23529) + added: "bool" to combine "filter" and "exclude" + added: boilerplate.t 0.6 2006-11-21 Test scripts improved 0.5 2006-11-18 - bugfix: T::CM now works under taint mode (http://rt.cpan.org/Public/Bug/Display.html?id=22927) + added : ok_manifest accepts hashref where specific dirs can be excluded from test 0.4 2006-10-19 - bugfix: handles different newlines (mac, win, *nix) 0.3 2006-10-18 - bugfix: CheckManifest works under Solaris now 0.2 2006-10-03 - bugfix: some files excluded from test 0.1 2006-09-29 - original version; created by h2xs 1.23 with options -XA -n Test::CheckManifest + added tests for Pod coverage, Pod, Manifest LICENSE100644001750001750 2152212452362275 16071 0ustar00reneebreneeb000000000000Test-CheckManifest-1.29This software is Copyright (c) 2015 by Renee Baecker. This is free software, licensed under: The Artistic License 2.0 (GPL Compatible) The Artistic License 2.0 Copyright (c) 2000-2006, The Perl Foundation. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble This license establishes the terms under which a given free software Package may be copied, modified, distributed, and/or redistributed. The intent is that the Copyright Holder maintains some artistic control over the development of that Package while still keeping the Package available as open source and free software. You are always permitted to make arrangements wholly outside of this license directly with the Copyright Holder of a given Package. If the terms of this license do not permit the full use that you propose to make of the Package, you should contact the Copyright Holder and seek a different licensing arrangement. Definitions "Copyright Holder" means the individual(s) or organization(s) named in the copyright notice for the entire Package. "Contributor" means any party that has contributed code or other material to the Package, in accordance with the Copyright Holder's procedures. "You" and "your" means any person who would like to copy, distribute, or modify the Package. "Package" means the collection of files distributed by the Copyright Holder, and derivatives of that collection and/or of those files. A given Package may consist of either the Standard Version, or a Modified Version. "Distribute" means providing a copy of the Package or making it accessible to anyone else, or in the case of a company or organization, to others outside of your company or organization. "Distributor Fee" means any fee that you charge for Distributing this Package or providing support for this Package to another party. It does not mean licensing fees. "Standard Version" refers to the Package if it has not been modified, or has been modified only in ways explicitly requested by the Copyright Holder. "Modified Version" means the Package, if it has been changed, and such changes were not explicitly requested by the Copyright Holder. "Original License" means this Artistic License as Distributed with the Standard Version of the Package, in its current version or as it may be modified by The Perl Foundation in the future. "Source" form means the source code, documentation source, and configuration files for the Package. "Compiled" form means the compiled bytecode, object code, binary, or any other form resulting from mechanical transformation or translation of the Source form. Permission for Use and Modification Without Distribution (1) You are permitted to use the Standard Version and create and use Modified Versions for any purpose without restriction, provided that you do not Distribute the Modified Version. Permissions for Redistribution of the Standard Version (2) You may Distribute verbatim copies of the Source form of the Standard Version of this Package in any medium without restriction, either gratis or for a Distributor Fee, provided that you duplicate all of the original copyright notices and associated disclaimers. At your discretion, such verbatim copies may or may not include a Compiled form of the Package. (3) You may apply any bug fixes, portability changes, and other modifications made available from the Copyright Holder. The resulting Package will still be considered the Standard Version, and as such will be subject to the Original License. Distribution of Modified Versions of the Package as Source (4) You may Distribute your Modified Version as Source (either gratis or for a Distributor Fee, and with or without a Compiled form of the Modified Version) provided that you clearly document how it differs from the Standard Version, including, but not limited to, documenting any non-standard features, executables, or modules, and provided that you do at least ONE of the following: (a) make the Modified Version available to the Copyright Holder of the Standard Version, under the Original License, so that the Copyright Holder may include your modifications in the Standard Version. (b) ensure that installation of your Modified Version does not prevent the user installing or running the Standard Version. In addition, the Modified Version must bear a name that is different from the name of the Standard Version. (c) allow anyone who receives a copy of the Modified Version to make the Source form of the Modified Version available to others under (i) the Original License or (ii) a license that permits the licensee to freely copy, modify and redistribute the Modified Version using the same licensing terms that apply to the copy that the licensee received, and requires that the Source form of the Modified Version, and of any works derived from it, be made freely available in that license fees are prohibited but Distributor Fees are allowed. Distribution of Compiled Forms of the Standard Version or Modified Versions without the Source (5) You may Distribute Compiled forms of the Standard Version without the Source, provided that you include complete instructions on how to get the Source of the Standard Version. Such instructions must be valid at the time of your distribution. If these instructions, at any time while you are carrying out such distribution, become invalid, you must provide new instructions on demand or cease further distribution. If you provide valid instructions or cease distribution within thirty days after you become aware that the instructions are invalid, then you do not forfeit any of your rights under this license. (6) You may Distribute a Modified Version in Compiled form without the Source, provided that you comply with Section 4 with respect to the Source of the Modified Version. Aggregating or Linking the Package (7) You may aggregate the Package (either the Standard Version or Modified Version) with other packages and Distribute the resulting aggregation provided that you do not charge a licensing fee for the Package. Distributor Fees are permitted, and licensing fees for other components in the aggregation are permitted. The terms of this license apply to the use and Distribution of the Standard or Modified Versions as included in the aggregation. (8) You are permitted to link Modified and Standard Versions with other works, to embed the Package in a larger work of your own, or to build stand-alone binary or bytecode versions of applications that include the Package, and Distribute the result without restriction, provided the result does not expose a direct interface to the Package. Items That are Not Considered Part of a Modified Version (9) Works (including, but not limited to, modules and scripts) that merely extend or make use of the Package, do not, by themselves, cause the Package to be a Modified Version. In addition, such works are not considered parts of the Package itself, and are not subject to the terms of this license. General Provisions (10) Any use, modification, and distribution of the Standard or Modified Versions is governed by this Artistic License. By using, modifying or distributing the Package, you accept this license. Do not use, modify, or distribute the Package, if you do not accept this license. (11) If your Modified Version has been derived from a Modified Version made by someone other than you, you are nevertheless required to ensure that your Modified Version complies with the requirements of this license. (12) This license does not grant you the right to use any trademark, service mark, tradename, or logo of the Copyright Holder. (13) This license includes the non-exclusive, worldwide, free-of-charge patent license to make, have made, use, offer to sell, sell, import and otherwise transfer the Package with respect to any patent claims licensable by the Copyright Holder that are necessarily infringed by the Package. If you institute patent litigation (including a cross-claim or counterclaim) against any party alleging that the Package constitutes direct or contributory patent infringement, then this Artistic License to you shall terminate on the date that such litigation is filed. (14) Disclaimer of Warranty: THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES. THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY YOUR LOCAL LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR CONTRIBUTOR WILL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. META.yml100644001750001750 133112452362275 16311 0ustar00reneebreneeb000000000000Test-CheckManifest-1.29--- abstract: 'Check if your Manifest matches your distro' author: - 'Renee Baecker ' build_requires: {} configure_requires: ExtUtils::MakeMaker: '0' dynamic_config: 0 generated_by: 'Dist::Zilla version 5.029, CPAN::Meta::Converter version 2.142060' license: artistic_2 meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html version: '1.4' name: Test-CheckManifest requires: Carp: '0' Cwd: '0' File::Basename: '0' File::Find: '0' File::Spec: '0' Test::Builder: '0' resources: bugtracker: http://github.com/reneeb/Test-CheckManifest/issues homepage: http://github.com/reneeb/Test-CheckManifest repository: http://github.com/reneeb/Test-CheckManifest.git version: '1.29' MANIFEST100644001750001750 41512452362275 16153 0ustar00reneebreneeb000000000000Test-CheckManifest-1.29# This file was automatically generated by Dist::Zilla::Plugin::Manifest v5.029. Changes LICENSE MANIFEST META.yml Makefile.PL README lib/Test/CheckManifest.pm t/00_load.t t/01_selftest.t t/extra/02_test_in_subdirectory.t 't/file with whitespaces.txt' t/xt/02_issue1.t t000755001750001750 012452362275 15145 5ustar00reneebreneeb000000000000Test-CheckManifest-1.2900_load.t100644001750001750 14512452362275 16670 0ustar00reneebreneeb000000000000Test-CheckManifest-1.29/t#!/usr/bin/perl use strict; use warnings; use Test::More tests => 1; use_ok('Test::CheckManifest');Makefile.PL100644001750001750 232012452362275 17011 0ustar00reneebreneeb000000000000Test-CheckManifest-1.29 # This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v5.029. use strict; use warnings; use ExtUtils::MakeMaker; my %WriteMakefileArgs = ( "ABSTRACT" => "Check if your Manifest matches your distro", "AUTHOR" => "Renee Baecker ", "CONFIGURE_REQUIRES" => { "ExtUtils::MakeMaker" => 0 }, "DISTNAME" => "Test-CheckManifest", "EXE_FILES" => [], "LICENSE" => "artistic_2", "NAME" => "Test::CheckManifest", "PREREQ_PM" => { "Carp" => 0, "Cwd" => 0, "File::Basename" => 0, "File::Find" => 0, "File::Spec" => 0, "Test::Builder" => 0 }, "VERSION" => "1.29", "test" => { "TESTS" => "t/*.t t/extra/*.t t/xt/*.t" } ); my %FallbackPrereqs = ( "Carp" => 0, "Cwd" => 0, "ExtUtils::MakeMaker" => 0, "File::Basename" => 0, "File::Find" => 0, "File::Spec" => 0, "Test::Builder" => 0 ); unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) { delete $WriteMakefileArgs{TEST_REQUIRES}; delete $WriteMakefileArgs{BUILD_REQUIRES}; $WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs; } delete $WriteMakefileArgs{CONFIGURE_REQUIRES} unless eval { ExtUtils::MakeMaker->VERSION(6.52) }; WriteMakefile(%WriteMakefileArgs); 01_selftest.t100644001750001750 335212452362275 17626 0ustar00reneebreneeb000000000000Test-CheckManifest-1.29/t#!/usr/bin/perl -T use strict; use warnings; use File::Spec; use File::Basename; use Test::More; eval "use Test::CheckManifest tests => 9"; plan skip_all => "Test::CheckManifest required" if $@; #$Test::CheckManifest::VERBOSE = 0; # create a directory and a file my $home = dirname(File::Spec->rel2abs($0)); # untaint if ($home =~ /^([-\@\w.\/\\: ~]+)$/) { $home = $1; } else { die "Bad data in $home"; } my $dir = $home . '/.git/'; my $dir2 = $home . '/test/'; my ($file1,$file2,$file3) = ($dir.'test.txt', $home . '/test.svn', $dir2.'hallo.txt'); mkdir $dir; my $fh; open $fh ,'>',$file1 and close $fh; open $fh ,'>',$file2 and close $fh; Test::CheckManifest::_not_ok_manifest('expected: Manifest not ok'); ok_manifest({filter => [qr/\.(?:svn|git|build)/]},'Filter: \.(?:svn|git|build)'); Test::CheckManifest::_not_ok_manifest({exclude => ['/.git/']},'expected: Manifest not ok (Exclude /.git/)'); mkdir $dir2; open $fh ,'>',$file3 and close $fh; Test::CheckManifest::_not_ok_manifest({filter => [qr/\.svn/]},'Filter: \.svn'); Test::CheckManifest::_not_ok_manifest({exclude => ['/.git/']},'expected: Manifest not ok (Exclude /.git/) [2]'); Test::CheckManifest::_not_ok_manifest({filter => [qr/\.git/], exclude => ['/.git/']},'expected: Manifest not ok (exclude OR filter)'); Test::CheckManifest::_not_ok_manifest({filter => [qr/\.git/], bool => 'and', exclude => ['/t/test']}, 'filter AND exclude'); ok_manifest({filter => [qr/\.(git|build)/], exclude => ['/t/test']}, 'filter OR exclude'); unlink $file3; ok_manifest({filter => [qr/\.git/, qr/\.svn/, qr/\.build/ ]},'Filter \.git or \.svn'); unlink $file2, $file1; rmdir $dir; rmdir $dir2; xt000755001750001750 012452362275 15600 5ustar00reneebreneeb000000000000Test-CheckManifest-1.29/t02_issue1.t100644001750001750 31512452362275 17616 0ustar00reneebreneeb000000000000Test-CheckManifest-1.29/t/xt#!/usr/bin/perl use strict; use warnings; use Test::CheckManifest; use Cwd; { my $dir = Cwd::getcwd(); ok_manifest({ filter => [ qr/\.(git|build)/, qr/Test-CheckManifest-/ ], dir => $dir }); } Test000755001750001750 012452362275 16367 5ustar00reneebreneeb000000000000Test-CheckManifest-1.29/libCheckManifest.pm100644001750001750 2263112452362275 21615 0ustar00reneebreneeb000000000000Test-CheckManifest-1.29/lib/Testpackage Test::CheckManifest; # ABSTRACT: Check if your Manifest matches your distro use strict; use warnings; use Cwd; use Carp; use File::Spec; use File::Basename; use Test::Builder; use File::Find; our $VERSION = '1.29'; our $VERBOSE = 1; my $test = Test::Builder->new(); my $test_bool = 1; my $plan = 0; my $counter = 0; sub import { my $self = shift; my $caller = caller; my %plan = @_; for my $func ( qw( ok_manifest ) ) { no strict 'refs'; *{$caller."::".$func} = \&$func; } $test->exported_to($caller); $test->plan(%plan); $plan = 1 if(exists $plan{tests}); } sub ok_manifest{ my ($hashref,$msg) = @_; $test->plan(tests => 1) unless $plan; my $is_hashref = 1; $is_hashref = 0 unless ref($hashref); unless ( $is_hashref ) { $msg = $hashref; $hashref = {}; } my $tmp_path = dirname( File::Spec->rel2abs( $0 ) ); if ( $hashref->{file} ) { $tmp_path = dirname $hashref->{file}; } elsif ( $hashref->{dir} ) { $tmp_path = $hashref->{dir}; } my $bool = 1; my $home = Cwd::realpath( $tmp_path ); my $manifest; my $counter = 0; while ( 1 ) { my $manifest_path = File::Spec->catfile( $home . '/MANIFEST' ); last if -f $manifest_path; my $tmp_home = Cwd::realpath( File::Spec->catdir( $home, '..' ) ); last if !$tmp_home || $tmp_home eq $home || $counter++ == 20; $home = $tmp_home; } eval { $manifest = Cwd::realpath( $home . '/MANIFEST' ); 1; }; if ( !$manifest ) { $test->BAILOUT( 'Cannot find a MANIFEST. Please check!' ); } my $skip; my $skip_path = File::Spec->catfile( $home, 'MANIFEST.SKIP' ); eval { $skip = Cwd::realpath( $skip_path ) if -f $skip_path; 1; }; my @missing_files = (); my @files_plus = (); my $arref = ['/blib' , '/_build']; my $filter = $is_hashref && $hashref->{filter} ? $hashref->{filter} : []; my $comb = $is_hashref && $hashref->{bool} && $hashref->{bool} =~ m/^and$/i ? 'and' : 'or'; push @$arref, @{$hashref->{exclude}} if $is_hashref and exists $hashref->{exclude} and ref($hashref->{exclude}) eq 'ARRAY'; for(@$arref){ croak 'path in excluded array must be "absolute"' unless m!^/!; my $path = $home . $_; next unless -e $path; $_ = Cwd::realpath($path); } @$arref = grep { defined }@$arref; unless( open my $fh, '<', $manifest ){ $bool = 0; $msg = "can't open $manifest"; } else{ { # extra block to use "last" my $files_in_skip = _read_skip( $skip, \$msg, \$bool ); last unless $files_in_skip; my @files = _read_file( $fh ); close $fh; chomp @files; { local $/ = "\r"; chomp @files; } for my $tfile(@files){ $tfile = (split(/\s{2,}/,$tfile,2))[0]; next unless -e $home . '/' . $tfile; $tfile = Cwd::realpath($home . '/' . $tfile); } my (@dir_files,%files_hash,%excluded); @files_hash{@files} = (); find({no_chdir => 1, wanted => sub{ my $file = $File::Find::name; my $is_excluded = _is_excluded( $file, $arref, $filter, $comb, $files_in_skip, $home, ); push(@dir_files,Cwd::realpath($file)) if -f $file and !$is_excluded; $excluded{$file} = 1 if -f $file and $is_excluded } },$home); #use Data::Dumper; #print STDERR ">>",++$counter,":",Dumper(\@files,\@dir_files); SFILE: for my $file(@dir_files){ for my $check(@files){ if($file eq $check){ delete $files_hash{$check}; next SFILE; } } push(@missing_files,$file); $bool = 0; } delete $files_hash{$_} for keys %excluded; @files_plus = sort keys %files_hash; $bool = 0 if scalar @files_plus > 0; } # close extra block } my $diag = 'The following files are not named in the MANIFEST file: '. join(', ',@missing_files); my $plus = 'The following files are not part of distro but named in the MANIFEST file: '. join(', ',@files_plus); $test->is_num($bool,$test_bool,$msg); $test->diag($diag) if scalar @missing_files >= 1 and $test_bool == 1 and $VERBOSE; $test->diag($plus) if scalar @files_plus >= 1 and $test_bool == 1 and $VERBOSE; } sub _read_file { my ($fh) = @_; my @files; my $selftest = 0; while( my $fh_line = <$fh> ){ chomp $fh_line; $selftest++ if $fh_line =~ m{# MANIFEST for Test-CheckManifest}; next if $fh_line =~ m{ \A \s* \# }x; next if $selftest && $fh_line =~ m{# selftest}; my ($file); if ( ($file) = $fh_line =~ /^'(\\[\\']|.+)+'\s*(.*)/) { $file =~ s/\\([\\'])/$1/g; } else { ($file) = $fh_line =~ /^(\S+)\s*(.*)/; } next unless $file; push @files, $file; } return @files; } sub _not_ok_manifest{ $test_bool = 0; ok_manifest(@_); $test_bool = 1; } sub _is_excluded{ my ($file,$dirref,$filter,$bool,$files_in_skip,$home) = @_; my @excluded_files = qw( pm_to_blib Makefile META.yml Build pod2htmd.tmp pod2htmi.tmp Build.bat .cvsignore MYMETA.json MYMETA.yml ); if ( $files_in_skip and 'ARRAY' eq ref $files_in_skip ) { (my $local_file = $file) =~ s{\Q$home\E/?}{}; for my $rx ( @{$files_in_skip} ) { my $regex = qr/$rx/; return 1 if $local_file =~ $regex; } } my @matches = grep{ $file =~ /$_$/ }@excluded_files; if($bool eq 'or'){ push @matches, $file if grep{ref($_) and ref($_) eq 'Regexp' and $file =~ /$_/}@$filter; push @matches, $file if grep{$file =~ /^\Q$_\E/}@$dirref; } else{ if(grep{$file =~ /$_/ and ref($_) and ref($_) eq 'Regexp'}@$filter and grep{$file =~ /^\Q$_\E/ and not ref($_)}@$dirref){ push @matches, $file; } } return scalar @matches; } sub _read_skip { my ($skip, $msg, $bool) = @_; return [] unless $skip and -e $skip; my @files; if( -e $skip and not open my $skip_fh, '<', $skip ) { $$bool = 0; $$msg = "can't open $skip"; return; } else { @files = _read_file( $skip_fh ); } return \@files; } 1; __END__ =pod =encoding UTF-8 =head1 NAME Test::CheckManifest - Check if your Manifest matches your distro =head1 VERSION version 1.29 =head1 SYNOPSIS use Test::CheckManifest; ok_manifest(); =head2 EXPORT There is only one method exported: C =head1 METHODS =head2 ok_manifest [{exclude => $arref}][$msg] checks whether the Manifest file matches the distro or not. To match a distro the Manifest has to name all files that come along with the distribution. To check the Manifest file, this module searches for a file named C. To exclude some directories from this test, you can specify these dirs in the hashref. ok_manifest({exclude => ['/var/test/']}); is ok if the files in C are not named in the C file. That means that the paths in the exclude array must be "pseudo-absolute" (absolute to your distribution). To use a "filter" you can use the key "filter" ok_manifest({filter => [qr/\.svn/]}); With that you can exclude all files with an '.svn' in the filename or in the path from the test. These files would be excluded (as examples): =over 4 =item * /dist/var/.svn/test =item * /dist/lib/test.svn =back You can also combine "filter" and "exclude" with 'and' or 'or' default is 'or': ok_manifest({exclude => ['/var/test'], filter => [qr/\.svn/], bool => 'and'}); These files have to be named in the C: =over 4 =item * /var/foo/.svn/any.file =item * /dist/t/file.svn =item * /var/test/test.txt =back These files not: =over 4 =item * /var/test/.svn/* =item * /var/test/file.svn =back By default, C will look for the file C in the current working directory (which is how tests are traditionally run). If you wish to specify a different directory, you may pass the C or C parameters, for example: ok_manifest({dir => '/path/to/my/dist/'}); =head1 EXCLUDING FILES Beside C and C there is another way to exclude files: C. This is a file with filenames that should be excluded: t/my_very_own.t file_to.skip =head1 ACKNOWLEDGEMENT Great thanks to Christopher H. Laco, who did a lot of testing stuff for me and he reported some bugs to RT. =head1 AUTHOR Renee Baecker =head1 COPYRIGHT AND LICENSE This software is Copyright (c) 2015 by Renee Baecker. This is free software, licensed under: The Artistic License 2.0 (GPL Compatible) =cut file with whitespaces.txt100644001750001750 7312452362275 22161 0ustar00reneebreneeb000000000000Test-CheckManifest-1.29/tThis is a file needed to test the error filed in bug #67334extra000755001750001750 012452362275 16270 5ustar00reneebreneeb000000000000Test-CheckManifest-1.29/t02_test_in_subdirectory.t100644001750001750 42412452362275 23341 0ustar00reneebreneeb000000000000Test-CheckManifest-1.29/t/extra#!/usr/bin/perl -T use strict; use warnings; use File::Spec; use File::Basename; use Test::More; eval "use Test::CheckManifest tests => 1"; plan skip_all => "Test::CheckManifest required" if $@; ok_manifest({filter => [qr/\.(?:svn|git|build)/]},'Filter: \.(?:svn|git)');