| 127 |
# PCRE tests that are not Perl-compatible - API & error tests, mostly |
# PCRE tests that are not Perl-compatible - API & error tests, mostly |
| 128 |
|
|
| 129 |
if [ $do2 = yes ] ; then |
if [ $do2 = yes ] ; then |
| 130 |
if [ "$link_size" = "2" ] ; then |
echo "Test 2: API and error handling (not Perl compatible)" |
| 131 |
echo "Test 2: API and error handling (not Perl compatible)" |
$valgrind ./pcretest -q $testdata/testinput2 testtry |
| 132 |
$valgrind ./pcretest -q $testdata/testinput2 testtry |
if [ $? = 0 ] ; then |
| 133 |
if [ $? = 0 ] ; then |
$cf $testdata/testoutput2 testtry |
| 134 |
$cf $testdata/testoutput2 testtry |
if [ $? != 0 ] ; then exit 1; fi |
| 135 |
if [ $? != 0 ] ; then exit 1; fi |
else exit 1 |
|
else exit 1 |
|
|
fi |
|
|
echo "OK" |
|
|
else |
|
|
echo Test 2 skipped for link size other than 2 \($link_size\) |
|
|
echo " " |
|
| 136 |
fi |
fi |
| 137 |
|
echo "OK" |
| 138 |
fi |
fi |
| 139 |
|
|
| 140 |
# Locale-specific tests, provided that either the "fr_FR" or the "french" |
# Locale-specific tests, provided that either the "fr_FR" or the "french" |
| 197 |
fi |
fi |
| 198 |
|
|
| 199 |
if [ $do5 = yes ] ; then |
if [ $do5 = yes ] ; then |
| 200 |
if [ "$link_size" = "2" ] ; then |
echo "Test 5: API and internals for UTF-8 support (not Perl compatible)" |
| 201 |
echo "Test 5: API and internals for UTF-8 support (not Perl compatible)" |
$valgrind ./pcretest -q $testdata/testinput5 testtry |
| 202 |
$valgrind ./pcretest -q $testdata/testinput5 testtry |
if [ $? = 0 ] ; then |
| 203 |
if [ $? = 0 ] ; then |
$cf $testdata/testoutput5 testtry |
| 204 |
$cf $testdata/testoutput5 testtry |
if [ $? != 0 ] ; then exit 1; fi |
| 205 |
if [ $? != 0 ] ; then exit 1; fi |
else exit 1 |
|
else exit 1 |
|
|
fi |
|
|
echo "OK" |
|
|
else |
|
|
echo Test 5 skipped for link size other than 2 \($link_size\) |
|
|
echo " " |
|
| 206 |
fi |
fi |
| 207 |
|
echo "OK" |
| 208 |
fi |
fi |
| 209 |
|
|
| 210 |
if [ $do6 = yes ] ; then |
if [ $do6 = yes ] ; then |
| 211 |
if [ "$link_size" = "2" ] ; then |
echo "Test 6: Unicode property support" |
| 212 |
echo "Test 6: Unicode property support" |
$valgrind ./pcretest -q $testdata/testinput6 testtry |
| 213 |
$valgrind ./pcretest -q $testdata/testinput6 testtry |
if [ $? = 0 ] ; then |
| 214 |
if [ $? = 0 ] ; then |
$cf $testdata/testoutput6 testtry |
| 215 |
$cf $testdata/testoutput6 testtry |
if [ $? != 0 ] ; then exit 1; fi |
| 216 |
if [ $? != 0 ] ; then exit 1; fi |
else exit 1 |
|
else exit 1 |
|
|
fi |
|
|
echo "OK" |
|
|
else |
|
|
echo Test 6 skipped for link size other than 2 \($link_size\) |
|
|
echo " " |
|
| 217 |
fi |
fi |
| 218 |
|
echo "OK" |
| 219 |
fi |
fi |
| 220 |
|
|
| 221 |
# Tests for DFA matching support |
# Tests for DFA matching support |