perl-module: Skip Pspp.t test if Test::More isn't installed.
authorBen Pfaff <blp@cs.stanford.edu>
Tue, 16 May 2023 05:31:55 +0000 (22:31 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Tue, 16 May 2023 05:31:55 +0000 (22:31 -0700)
This was a requirement but it wasn't noticed until now.

Thanks to Marshall DeBerry for reporting this.

INSTALL
tests/perl-module.at

diff --git a/INSTALL b/INSTALL
index 7456d6c760fe8e22fbf17cfc60a90a2fdd586a70..a4d6dcf11a5a3d36275558e90af92f022b1c03e4 100644 (file)
--- a/INSTALL
+++ b/INSTALL
@@ -97,8 +97,8 @@ module:
 
     * The Config::Perl::V module for Perl (https://cpan.org).
 
-    * Optionally, the Text::Diff module for Perl
-      (https://cpan.org).  This module enables PSPP to test its Perl
+    * Optionally, the Text::Diff and Test::More modules for Perl
+      (https://cpan.org).  These modules enable PSPP to test its Perl
       module more thoroughly.
 
 Other optional packages:
index 291634204ed605f95bbefa17ca002a1f0df16fb7..b83e42a073bde2e1424614e6755dcfd57d3048a0 100644 (file)
@@ -678,6 +678,8 @@ AT_KEYWORDS([slow])
 AT_SKIP_IF([test "$WITH_PERL_MODULE" = no])
 # Skip this test if Perl's Text::Diff module is not installed.
 AT_CHECK([perl -MText::Diff -e '' || exit 77])
+# Skip this test if Perl's Test::More module is not installed.
+AT_CHECK([perl -MTest::More -e '' || exit 77])
 AT_CHECK([run_perl_module "$abs_top_builddir/perl-module/t/Pspp.t"], [0],
   [[1..37
 ok 1 - use PSPP;