diff options
author | Russ Allbery <eagle@eyrie.org> | 2020-05-17 17:05:30 -0700 |
---|---|---|
committer | Russ Allbery <eagle@eyrie.org> | 2020-05-17 17:05:30 -0700 |
commit | c138111a3c27863308b6552a5527a9e821a3dc11 (patch) | |
tree | fe3c16462bf0213708f20d251a63e5b9bbf2d23f /tests/perl | |
parent | ccfbd34d597318215b979338c4cb5d7e4a3f0d6f (diff) |
Update to rra-c-util 8.2 and C TAP Harness 4.7
Update to rra-c-util 8.2:
* Implement explicit_bzero with memset if it is not available.
* Reformat all C source using clang-format 10.
* Work around Test::Strict not skipping .git directories.
* Fix warnings with perltidy 20190601 and Perl::Critic 1.134.
* Fix warnings with Clang 10, GCC 10, and the Clang static analyzer.
Update to C TAP Harness 4.7:
* Fix warnings with GCC 10.
* Reformat all C source using clang-format 10.
* Fixed malloc error checking in bstrndup.
Diffstat (limited to 'tests/perl')
-rwxr-xr-x | tests/perl/minimum-version-t | 9 | ||||
-rwxr-xr-x | tests/perl/module-version-t | 16 | ||||
-rwxr-xr-x | tests/perl/strict-t | 7 |
3 files changed, 18 insertions, 14 deletions
diff --git a/tests/perl/minimum-version-t b/tests/perl/minimum-version-t index 7d81b46..420ce36 100755 --- a/tests/perl/minimum-version-t +++ b/tests/perl/minimum-version-t @@ -10,7 +10,7 @@ # which can be found at <https://www.eyrie.org/~eagle/software/rra-c-util/>. # # Written by Russ Allbery <eagle@eyrie.org> -# Copyright 2016 Russ Allbery <eagle@eyrie.org> +# Copyright 2016, 2019-2020 Russ Allbery <eagle@eyrie.org> # Copyright 2012-2014 # The Board of Trustees of the Leland Stanford Junior University # @@ -34,17 +34,18 @@ # # SPDX-License-Identifier: MIT -use 5.006; +use 5.008; use strict; use warnings; use lib "$ENV{C_TAP_SOURCE}/tap/perl"; -use Test::More; use Test::RRA qw(skip_unless_automated use_prereq); use Test::RRA::Automake qw(automake_setup perl_dirs); use Test::RRA::Config qw($MINIMUM_VERSION %MINIMUM_VERSION); +use Test::More; + # Skip for normal user installs since this doesn't affect functionality. skip_unless_automated('Minimum version tests'); @@ -55,7 +56,7 @@ use_prereq('Test::MinimumVersion'); automake_setup(); # For each exception case in %MINIMUM_VERSION, check the files that should -# have that minium version. Sort for reproducible test order. Also +# have that minimum version. Sort for reproducible test order. Also # accumulate the list of directories we've already tested. my @tested; for my $version (sort keys %MINIMUM_VERSION) { diff --git a/tests/perl/module-version-t b/tests/perl/module-version-t index 878cc2d..31ee988 100755 --- a/tests/perl/module-version-t +++ b/tests/perl/module-version-t @@ -12,7 +12,7 @@ # # SPDX-License-Identifier: MIT -use 5.006; +use 5.008; use strict; use warnings; @@ -27,11 +27,13 @@ BEGIN { } } -use Getopt::Long qw(GetOptions); use Test::RRA qw(skip_unless_automated); use Test::RRA::Automake qw(automake_setup); use Test::RRA::ModuleVersion qw(test_module_versions update_module_versions); +use Cwd qw(getcwd); +use Getopt::Long qw(GetOptions); + # Return the current version and, optionally, the package name from the NEWS # file. Munges the version to be appropriate for Perl if necessary. # @@ -85,9 +87,9 @@ if (!$update) { # Get the package name and version. my ($version, $package) = news_version(); -# rra-c-util itself checks the versions of the testing support modules instead -# of an embedded tree of Perl modules. -my $root = ($package eq 'rra-c-util') ? 'tests/tap/perl' : 'perl/lib'; +# rra-c-util, but only it, also checks the versions of all the testing support +# modules. +my $root = ($package eq 'rra-c-util') ? getcwd() : 'perl/lib'; # Main routine. We run as either a test suite or as a script to update all of # the module versions, selecting based on whether we got the -u / --update @@ -114,7 +116,7 @@ B<module-version-t> [B<--update>] =head1 REQUIREMENTS -Perl 5.6.2 or later. +Perl 5.8 or later. =head1 DESCRIPTION @@ -155,7 +157,7 @@ Russ Allbery <eagle@eyrie.org> =head1 COPYRIGHT AND LICENSE -Copyright 2014, 2016 Russ Allbery <eagle@eyrie.org> +Copyright 2014, 2016, 2019-2020 Russ Allbery <eagle@eyrie.org> Copyright 2013 The Board of Trustees of the Leland Stanford Junior University diff --git a/tests/perl/strict-t b/tests/perl/strict-t index 09ce157..6eae216 100755 --- a/tests/perl/strict-t +++ b/tests/perl/strict-t @@ -10,7 +10,7 @@ # which can be found at <https://www.eyrie.org/~eagle/software/rra-c-util/>. # # Written by Russ Allbery <eagle@eyrie.org> -# Copyright 2016 Russ Allbery <eagle@eyrie.org> +# Copyright 2016, 2019 Russ Allbery <eagle@eyrie.org> # Copyright 2012-2014 # The Board of Trustees of the Leland Stanford Junior University # @@ -34,17 +34,18 @@ # # SPDX-License-Identifier: MIT -use 5.006; +use 5.008; use strict; use warnings; use lib "$ENV{C_TAP_SOURCE}/tap/perl"; -use Test::More; use Test::RRA qw(skip_unless_automated use_prereq); use Test::RRA::Automake qw(automake_setup perl_dirs); use Test::RRA::Config qw(@STRICT_IGNORE @STRICT_PREREQ); +use Test::More; + # Skip for normal user installs since this doesn't affect functionality. skip_unless_automated('Strictness tests'); |