summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
ef41489)
Update the SPDX check and test configuration machinery from
rra-c-util and use the new support for excluding paths from SPDX
checks.
# Ignore the script in cracklib for Perl style checking. This is verbatim
# from CrackLib and isn't useful to rewrite.
@CRITIC_IGNORE = qw(cracklib);
# Ignore the script in cracklib for Perl style checking. This is verbatim
# from CrackLib and isn't useful to rewrite.
@CRITIC_IGNORE = qw(cracklib);
+@SPDX_IGNORE = (qr{ \A cracklib/ }xms);
@STRICT_IGNORE = qw(cracklib);
@STRICT_IGNORE = qw(cracklib);
+# Default minimum version requirement for included Perl scripts.
+$MINIMUM_VERSION = '5.010';
+
# The Heimdal history implementation uses a bunch of modules, but may not be
# of interest to all users. Skip strict testing if its prerequisites aren't
# installed.
# The Heimdal history implementation uses a bunch of modules, but may not be
# of interest to all users. Skip strict testing if its prerequisites aren't
# installed.
-# Default minimum version requirement for included Perl scripts.
-$MINIMUM_VERSION = '5.010';
-
# File must end with this line.
1;
# File must end with this line.
1;
use Test::RRA qw(skip_unless_automated);
use Test::RRA::Automake qw(all_files automake_setup);
use Test::RRA qw(skip_unless_automated);
use Test::RRA::Automake qw(all_files automake_setup);
+use Test::RRA::Config qw(@SPDX_IGNORE);
use File::Basename qw(basename);
use Test::More;
use File::Basename qw(basename);
use Test::More;
qr{ [.] output \z }xms, # Test data
);
my @IGNORE_PATHS = (
qr{ [.] output \z }xms, # Test data
);
my @IGNORE_PATHS = (
- qr{ \A cracklib/ }xms, # Special case for krb5-strength
qr{ \A debian/ }xms, # Found in debian/* branches
qr{ \A docs/metadata/ }xms, # Package license should be fine
qr{ \A docs/protocol[.](html|txt) \z }xms, # Generated by xml2rfc
qr{ \A debian/ }xms, # Found in debian/* branches
qr{ \A docs/metadata/ }xms, # Package license should be fine
qr{ \A docs/protocol[.](html|txt) \z }xms, # Generated by xml2rfc
@EXPORT_OK = qw(
$COVERAGE_LEVEL @COVERAGE_SKIP_TESTS @CRITIC_IGNORE $LIBRARY_PATH
$MINIMUM_VERSION %MINIMUM_VERSION @MODULE_VERSION_IGNORE
@EXPORT_OK = qw(
$COVERAGE_LEVEL @COVERAGE_SKIP_TESTS @CRITIC_IGNORE $LIBRARY_PATH
$MINIMUM_VERSION %MINIMUM_VERSION @MODULE_VERSION_IGNORE
- @POD_COVERAGE_EXCLUDE @STRICT_IGNORE @STRICT_PREREQ
+ @POD_COVERAGE_EXCLUDE @SPDX_IGNORE @STRICT_IGNORE @STRICT_PREREQ
);
# This version should match the corresponding rra-c-util release, but with
);
# This version should match the corresponding rra-c-util release, but with
our %MINIMUM_VERSION;
our @MODULE_VERSION_IGNORE;
our @POD_COVERAGE_EXCLUDE;
our %MINIMUM_VERSION;
our @MODULE_VERSION_IGNORE;
our @POD_COVERAGE_EXCLUDE;
our @STRICT_IGNORE;
our @STRICT_PREREQ;
our @STRICT_IGNORE;
our @STRICT_PREREQ;
=for stopwords
Allbery rra-c-util Automake perlcritic .libs namespace subdirectory sublicense
=for stopwords
Allbery rra-c-util Automake perlcritic .libs namespace subdirectory sublicense
-MERCHANTABILITY NONINFRINGEMENT regexes
+MERCHANTABILITY NONINFRINGEMENT regexes SPDX
module, but methods matching any of these regexes will be considered private
and won't require documentation.
module, but methods matching any of these regexes will be considered private
and won't require documentation.
+=item @SPDX_IGNORE
+
+Regexes that match files that should be excluded from SPDX license header
+checks, in addition to the standard exclusions. The regular expression is
+matched against the file path relative to the top of the source tree.
+
=item @STRICT_IGNORE
Additional directories to ignore when doing recursive Test::Strict testing for
=item @STRICT_IGNORE
Additional directories to ignore when doing recursive Test::Strict testing for
=head1 COPYRIGHT AND LICENSE
=head1 COPYRIGHT AND LICENSE
-Copyright 2015-2016, 2019, 2021 Russ Allbery <eagle@eyrie.org>
+Copyright 2015-2016, 2019, 2021, 2023 Russ Allbery <eagle@eyrie.org>
Copyright 2013-2014 The Board of Trustees of the Leland Stanford Junior
University
Copyright 2013-2014 The Board of Trustees of the Leland Stanford Junior
University