diff options
| author | Russ Allbery <eagle@eyrie.org> | 2018-06-03 16:58:02 -0700 | 
|---|---|---|
| committer | Russ Allbery <eagle@eyrie.org> | 2018-06-03 16:58:02 -0700 | 
| commit | edf31eba414d9a105791c076fb1444a78d210dff (patch) | |
| tree | 2bac18fa3b71593e616061a0fbcbfdd6ab26a255 /tests/tap/perl/Test/RRA/Config.pm | |
| parent | 4b3f858ef567c0d12511e7fea2a56f08f2729635 (diff) | |
| parent | 68c4b05c268cd6e358cc41c8feb44bc2c7fcb898 (diff) | |
New upstream version 1.4
Diffstat (limited to 'tests/tap/perl/Test/RRA/Config.pm')
| -rw-r--r-- | tests/tap/perl/Test/RRA/Config.pm | 36 | 
1 files changed, 22 insertions, 14 deletions
diff --git a/tests/tap/perl/Test/RRA/Config.pm b/tests/tap/perl/Test/RRA/Config.pm index a5b0d0d..7cb0916 100644 --- a/tests/tap/perl/Test/RRA/Config.pm +++ b/tests/tap/perl/Test/RRA/Config.pm @@ -4,6 +4,8 @@  # configuration file to store some package-specific data.  This module loads  # that configuration and provides the namespace for the configuration  # settings. +# +# SPDX-License-Identifier: MIT  package Test::RRA::Config; @@ -34,16 +36,16 @@ 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 = '5.10'; +    $VERSION = '7.02';  } -# If BUILD or SOURCE are set in the environment, look for data/perl.conf under -# those paths for a C Automake package.  Otherwise, look in t/data/perl.conf -# for a standalone Perl module or tests/data/perl.conf for Perl tests embedded -# in a larger distribution.  Don't use Test::RRA::Automake since it may not -# exist. +# If C_TAP_BUILD or C_TAP_SOURCE are set in the environment, look for +# data/perl.conf under those paths for a C Automake package.  Otherwise, look +# in t/data/perl.conf for a standalone Perl module or tests/data/perl.conf for +# Perl tests embedded in a larger distribution.  Don't use Test::RRA::Automake +# since it may not exist.  our $PATH; -for my $base ($ENV{BUILD}, $ENV{SOURCE}, 't', 'tests') { +for my $base ($ENV{C_TAP_BUILD}, $ENV{C_TAP_SOURCE}, './t', './tests') {      next if !defined($base);      my $path = "$base/data/perl.conf";      if (-r $path) { @@ -70,7 +72,7 @@ our @STRICT_PREREQ;  # Load the configuration.  if (!do($PATH)) {      my $error = $@ || $! || 'loading file did not return true'; -    BAIL_OUT("cannot load data/perl.conf: $error"); +    BAIL_OUT("cannot load $PATH: $error");  }  1; @@ -98,10 +100,10 @@ for both C Automake packages and stand-alone Perl modules.  Test::RRA::Config looks for a file named F<data/perl.conf> relative to the  root of the test directory.  That root is taken from the environment variables -BUILD or SOURCE (in that order) if set, which will be the case for C Automake -packages using C TAP Harness.  If neither is set, it expects the root of the -test directory to be a directory named F<t> relative to the current directory, -which will be the case for stand-alone Perl modules. +C_TAP_BUILD or C_TAP_SOURCE (in that order) if set, which will be the case for +C Automake packages using C TAP Harness.  If neither is set, it expects the +root of the test directory to be a directory named F<t> relative to the +current directory, which will be the case for stand-alone Perl modules.  The following variables are supported: @@ -185,6 +187,8 @@ Russ Allbery <eagle@eyrie.org>  =head1 COPYRIGHT AND LICENSE +Copyright 2015, 2016 Russ Allbery <eagle@eyrie.org> +  Copyright 2013, 2014 The Board of Trustees of the Leland Stanford Junior  University @@ -212,9 +216,13 @@ perlcritic(1), Test::MinimumVersion(3), Test::RRA(3), Test::RRA::Automake(3),  Test::Strict(3)  This module is maintained in the rra-c-util package.  The current version is -available from L<http://www.eyrie.org/~eagle/software/rra-c-util/>. +available from L<https://www.eyrie.org/~eagle/software/rra-c-util/>.  The C TAP Harness test driver and libraries for TAP-based C testing are -available from L<http://www.eyrie.org/~eagle/software/c-tap-harness/>. +available from L<https://www.eyrie.org/~eagle/software/c-tap-harness/>.  =cut + +# Local Variables: +# copyright-at-end-flag: t +# End:  | 
