From: Ben Pfaff Date: Mon, 15 Nov 2010 05:58:28 +0000 (-0800) Subject: perl-module: Only run the combined test if Text::Diff is present. X-Git-Tag: v0.7.7~136 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2179c31f7346cb9f5a901a074a939c23ca71a51;p=pspp-builds.git perl-module: Only run the combined test if Text::Diff is present. The combined test using Pspp.t only works if Text::Diff is installed (although the broken-out tests don't require it), so only try that test if Text::Diff is available. --- diff --git a/tests/perl-module.at b/tests/perl-module.at index 115f2a8d..20af9681 100644 --- a/tests/perl-module.at +++ b/tests/perl-module.at @@ -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;