perl-module: Only run the combined test if Text::Diff is present.
[pspp-builds.git] / tests / perl-module.at
index 115f2a8d20e714f8b644f150df9c1c3c9609210c..20af9681da25d2ecb6ae0e39ae785eb956ae59f6 100644 (file)
@@ -704,6 +704,8 @@ AT_CLEANUP
 
 AT_SETUP([Perl Pspp.t])
 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])
 AT_CHECK([RUN_PERL_MODULE $abs_top_builddir/perl-module/t/Pspp.t], [0],
   [[1..36
 ok 1 - use PSPP;