Don't run perl examples/tests if Test::More is not available

The test-suite requires Test::More and the local versions of Test::More
were removed in 1d1e8650a3. They are not
always distributed with Perl, such as Perl 5.16 in Fedora.
This commit is contained in:
William S Fulton 2014-02-14 18:57:12 +00:00
commit 49da10eca7
2 changed files with 17 additions and 24 deletions

View file

@ -5,28 +5,14 @@ Any testcases which have _runme.pl appended after the testcase name will be dete
Test::More Support
==
Test::More and Test::Harness are two of the standard perl test harness
tools. Support has been added for these modules as of 1.3.28. If
adding a new test to this suite, please use Test::More.
Test::More is a standard perl test harness tool.
Support was added for for using Test::More in 1.3.28.
If adding a new test to this suite, please use Test::More.
Currently converted test cases include:
There are a few legacy test cases which do not use Test::More and these ought to be converted:
* operator_overload
* operator_overload_break
* package
* overload_simple
* apply_strings
* char_strings
* default_args
* enum_thorough
* global_vars
* import_nomodule
* inherit
* li_cdata_carrays
* li_std_string
* member_pointer
* multiple_inheritance
* primitive_ref
* template_default_arg
* unions
* voidtest
disown
imports
overload_copy
profiletest
template_ref_type

View file

@ -850,6 +850,13 @@ if test -n "$PERL"; then
AC_MSG_RESULT(not found)
else
AC_MSG_RESULT($PERL5LDFLAGS)
fi
AC_MSG_CHECKING(for Perl5 Test::More module) # For test-suite
PERL5TESTMORE=`($PERL -e 'use Test::More; print "good";') 2>/dev/null`
if test -z "$PERL5TESTMORE" ; then
AC_MSG_RESULT(not found)
else
AC_MSG_RESULT(found)
fi
else
AC_MSG_RESULT(unable to determine perl5 configuration)
@ -2185,7 +2192,7 @@ AC_SUBST(SKIP_TCL)
SKIP_PERL5=
if test -z "$PERL" || test -z "$PERL5EXT" ; then
if test -z "$PERL" || test -z "$PERL5EXT" || test -z "$PERL5TESTMORE"; then
SKIP_PERL5="1"
fi
AC_SUBST(SKIP_PERL5)