Skip to content

Commit

Permalink
Ignore more files in standard tests
Browse files Browse the repository at this point in the history
Ignore files created by the Perl Carton tool and temporary files
generated by tests when checking for SPDX licenses and Perl strictness
in standard tests.
  • Loading branch information
rra committed Dec 25, 2023
1 parent ede65ca commit b4870a1
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 7 deletions.
6 changes: 6 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
User-Visible rra-c-util Changes

rra-c-util 10.5 (unreleased)

Ignore files created by the Perl Carton tool and temporary files
generated by tests when checking for SPDX licenses and Perl strictness
in standard tests.

rra-c-util 10.4 (2023-03-31)

Add serial numbers to every Autoconf macro provided by this package.
Expand Down
2 changes: 1 addition & 1 deletion perl/lib/Empty.pm
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ our $VERSION;
# against circular module loading (not that we load any modules, but
# consistency is good).
BEGIN {
$VERSION = '10.04';
$VERSION = '10.05';
}

# Empty function for testing purposes.
Expand Down
5 changes: 4 additions & 1 deletion perl/t/docs/spdx-license.t
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# The canonical version of this file is maintained in the rra-c-util package,
# which can be found at <https://www.eyrie.org/~eagle/software/rra-c-util/>.
#
# Copyright 2018-2021 Russ Allbery <eagle@eyrie.org>
# Copyright 2018-2021, 2023 Russ Allbery <eagle@eyrie.org>
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
Expand Down Expand Up @@ -55,6 +55,7 @@ my @IGNORE = (
qr{ \A Makefile \z }xms, # Generated file, no license itself
qr{ \A (MY)? META [.] .* }xms, # Generated file, no license itself
qr{ [.] output \z }xms, # Test data
qr{ cpanfile [.] snapshot }xms, # Carton snapshot
qr{ pod2htm . [.] tmp \z }xms, # Windows pod2html output
qr{ ~ \z }xms, # Backup files
);
Expand All @@ -66,12 +67,14 @@ my @IGNORE_PATHS = (
qr{ \A [.] /cover_db/ }xms, # Artifacts from coverage testing
qr{ \A [.] /debian/ }xms, # Found in debian/* branches
qr{ \A [.] /docs/metadata/ }xms, # Package license should be fine
qr{ \A [.] /local/ }xms, # Carton local lib
qr{ \A [.] /README ( [.] .* )? \z }xms, # Package license should be fine
qr{ \A [.] /share/ }xms, # Package license should be fine
qr{ \A [.] /t/data/generate/ }xms, # Test metadata
qr{ \A [.] /t/data/spin/ }xms, # Test metadata
qr{ \A [.] /t/data/update/ }xms, # Test output
qr{ \A [.] /t/data .* [.] json \z }xms, # Test metadata
qr{ \A [.] /t/tmp }xms, # Test metadata
);
#>>>
## use critic
Expand Down
2 changes: 1 addition & 1 deletion perl/t/style/strict.t
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ skip_unless_automated('Strictness tests');
use_prereq('Test::Strict', '0.25');

# Directories to exclude from checks.
my %EXCLUDE = map { $_ => 1 } qw(.git blib);
my %EXCLUDE = map { $_ => 1 } qw(.git blib local);

# Determine whether we want to check the given file or top-level directory.
# Assume that the only interesting files at the top level are directories or
Expand Down
2 changes: 1 addition & 1 deletion tests/tap/perl/Test/RRA.pm
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ BEGIN {
# This version should match the corresponding rra-c-util release, but with
# two digits for the minor version, including a leading zero if necessary,
# so that it will sort properly.
$VERSION = '10.04';
$VERSION = '10.05';
}

# Compare a string to the contents of a file, similar to the standard is()
Expand Down
2 changes: 1 addition & 1 deletion tests/tap/perl/Test/RRA/Automake.pm
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ BEGIN {
# This version should match the corresponding rra-c-util release, but with
# two digits for the minor version, including a leading zero if necessary,
# so that it will sort properly.
$VERSION = '10.04';
$VERSION = '10.05';
}

# Directories to skip globally when looking for all files, or for directories
Expand Down
2 changes: 1 addition & 1 deletion tests/tap/perl/Test/RRA/Config.pm
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ BEGIN {
# This version should match the corresponding rra-c-util release, but with
# two digits for the minor version, including a leading zero if necessary,
# so that it will sort properly.
$VERSION = '10.04';
$VERSION = '10.05';
}

# If C_TAP_BUILD or C_TAP_SOURCE are set in the environment, look for
Expand Down
2 changes: 1 addition & 1 deletion tests/tap/perl/Test/RRA/ModuleVersion.pm
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ BEGIN {
# This version should match the corresponding rra-c-util release, but with
# two digits for the minor version, including a leading zero if necessary,
# so that it will sort properly.
$VERSION = '10.04';
$VERSION = '10.05';
}

# A regular expression matching the version string for a module using the
Expand Down

0 comments on commit b4870a1

Please sign in to comment.