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:
parent
ead4d695f0
commit
49da10eca7
2 changed files with 17 additions and 24 deletions
|
|
@ -5,28 +5,14 @@ Any testcases which have _runme.pl appended after the testcase name will be dete
|
||||||
Test::More Support
|
Test::More Support
|
||||||
==
|
==
|
||||||
|
|
||||||
Test::More and Test::Harness are two of the standard perl test harness
|
Test::More is a standard perl test harness tool.
|
||||||
tools. Support has been added for these modules as of 1.3.28. If
|
Support was added for for using Test::More in 1.3.28.
|
||||||
adding a new test to this suite, please use Test::More.
|
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
|
disown
|
||||||
* operator_overload_break
|
imports
|
||||||
* package
|
overload_copy
|
||||||
* overload_simple
|
profiletest
|
||||||
* apply_strings
|
template_ref_type
|
||||||
* 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
|
|
||||||
|
|
|
||||||
|
|
@ -850,6 +850,13 @@ if test -n "$PERL"; then
|
||||||
AC_MSG_RESULT(not found)
|
AC_MSG_RESULT(not found)
|
||||||
else
|
else
|
||||||
AC_MSG_RESULT($PERL5LDFLAGS)
|
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
|
fi
|
||||||
else
|
else
|
||||||
AC_MSG_RESULT(unable to determine perl5 configuration)
|
AC_MSG_RESULT(unable to determine perl5 configuration)
|
||||||
|
|
@ -2185,7 +2192,7 @@ AC_SUBST(SKIP_TCL)
|
||||||
|
|
||||||
|
|
||||||
SKIP_PERL5=
|
SKIP_PERL5=
|
||||||
if test -z "$PERL" || test -z "$PERL5EXT" ; then
|
if test -z "$PERL" || test -z "$PERL5EXT" || test -z "$PERL5TESTMORE"; then
|
||||||
SKIP_PERL5="1"
|
SKIP_PERL5="1"
|
||||||
fi
|
fi
|
||||||
AC_SUBST(SKIP_PERL5)
|
AC_SUBST(SKIP_PERL5)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue