| 48 |
if [ "@UTF8@" != "" ] ; then do5=yes; fi |
if [ "@UTF8@" != "" ] ; then do5=yes; fi |
| 49 |
fi |
fi |
| 50 |
|
|
| 51 |
|
# Show which release |
| 52 |
|
|
| 53 |
|
./pcretest /dev/null |
| 54 |
|
|
| 55 |
# Primary test, Perl-compatible |
# Primary test, Perl-compatible |
| 56 |
|
|
| 57 |
if [ $do1 = yes ] ; then |
if [ $do1 = yes ] ; then |
| 83 |
echo " " |
echo " " |
| 84 |
fi |
fi |
| 85 |
|
|
| 86 |
# Locale-specific tests, provided the "fr" locale is available |
# Locale-specific tests, provided the "fr_FR" locale is available |
| 87 |
|
|
| 88 |
if [ $do3 = yes ] ; then |
if [ $do3 = yes ] ; then |
| 89 |
locale -a | grep '^fr$' >/dev/null |
locale -a | grep '^fr_FR$' >/dev/null |
| 90 |
if [ $? -eq 0 ] ; then |
if [ $? -eq 0 ] ; then |
| 91 |
echo "Testing locale-specific features (using 'fr' locale)" |
echo "Testing locale-specific features (using 'fr_FR' locale)" |
| 92 |
./pcretest $testdata/testinput3 testtry |
./pcretest $testdata/testinput3 testtry |
| 93 |
if [ $? = 0 ] ; then |
if [ $? = 0 ] ; then |
| 94 |
$cf testtry $testdata/testoutput3 |
$cf testtry $testdata/testoutput3 |
| 104 |
else exit 1 |
else exit 1 |
| 105 |
fi |
fi |
| 106 |
else |
else |
| 107 |
echo "Cannot test locale-specific features - 'fr' locale not found," |
echo "Cannot test locale-specific features - 'fr_FR' locale not found," |
| 108 |
echo "or the \"locale\" command is not available to check for it." |
echo "or the \"locale\" command is not available to check for it." |
| 109 |
echo " " |
echo " " |
| 110 |
fi |
fi |