]> eyrie.org Git - kerberos/krb5-strength.git/commitdiff
Use Perl6::Slurp instead of File::Slurp
authorRuss Allbery <eagle@eyrie.org>
Fri, 13 Dec 2013 01:34:28 +0000 (17:34 -0800)
committerRuss Allbery <eagle@eyrie.org>
Fri, 13 Dec 2013 01:34:28 +0000 (17:34 -0800)
One utility was using Perl6::Slurp and another was using
File::Slurp.  Perl6::Slurp is nicer, so just use that, and
update the documentation.  Also document the bootstrap
requirements imposed by make-c-data.

README
tests/tap/perl/Test/RRA.pm
tests/tools/heimdal-strength-t

diff --git a/README b/README
index bf591d123b95d8c134e9045e7b3bde04eaf5dc90..cd13b8d412c3dad21ae29e0be4f5be8eb0c32cd5 100644 (file)
--- a/README
+++ b/README
@@ -111,9 +111,9 @@ REQUIREMENTS
   following additional Perl modules will be used by the test suite if
   present:
 
-      File::Slurp
       IPC::Run
       JSON
+      Perl6::Slurp
       Test::MinimumVersion
       Test::Perl::Critic
       Test::Pod
@@ -131,7 +131,9 @@ REQUIREMENTS
   and need to regenerate Makefile.in, you will need Automake 1.11 or
   later.  For bootstrap or if you change configure.ac or any of the m4
   files it includes and need to regenerate configure or config.h.in, you
-  will need Autoconf 2.64 or later.
+  will need Autoconf 2.64 or later.  You will also need Perl 5.010 or
+  later and the JSON, Perl6::Slurp, and Readonly modules (from CPAN) to
+  bootstrap the test suite data from a Git checkout.
 
 COMPILING AND INSTALLING
 
index eec262e0430e72dc4218f3e7cba321daa48897b8..dc48ad8cf5f596fa64c572b230ca9a5211decc40 100644 (file)
@@ -149,7 +149,7 @@ Test::RRA - Support functions for Perl tests
     skip_unless_maintainer('Coding style tests');
 
     # Load modules, skipping the test if they're not available.
-    use_prereq('File::Slurp');
+    use_prereq('Perl6::Slurp', 'slurp');
     use_prereq('Test::Script::Run', '0.04');
 
 =head1 DESCRIPTION
index eedb640f60e78d3b3d8ab3eb573a6092206046fc..ec39a89fd4d77fca6d120c993d05e36a50e573b0 100755 (executable)
@@ -18,10 +18,10 @@ use File::Copy qw(copy);
 use Test::RRA qw(use_prereq);
 use Test::RRA::Automake qw(test_file_path);
 
-use_prereq('File::Slurp');
 use_prereq('IPC::Run', 'run');
 use_prereq('JSON');
-use_prereq('Test::More', '0.87_01');
+use_prereq('Perl6::Slurp', 'slurp');
+use_prereq('Test::More',   '0.87_01');
 
 # Run the newly-built heimdal-strength command and return the status, output,
 # and error output as a list.
@@ -139,7 +139,7 @@ sub load_password_tests {
     my $path = test_file_path("data/passwords/$file");
 
     # Load the test file data into memory.
-    my $testdata = read_file($path);
+    my $testdata = slurp($path);
 
     # Decode the JSON into Perl objects and return them.
     my $json = JSON->new->utf8;