| 54 |
do10=no |
do10=no |
| 55 |
do11=no |
do11=no |
| 56 |
do12=no |
do12=no |
| 57 |
|
do13=no |
| 58 |
|
|
| 59 |
while [ $# -gt 0 ] ; do |
while [ $# -gt 0 ] ; do |
| 60 |
case $1 in |
case $1 in |
| 70 |
10) do10=yes;; |
10) do10=yes;; |
| 71 |
11) do11=yes;; |
11) do11=yes;; |
| 72 |
12) do12=yes;; |
12) do12=yes;; |
| 73 |
|
13) do12=yes;; |
| 74 |
valgrind) valgrind="valgrind -q";; |
valgrind) valgrind="valgrind -q";; |
| 75 |
*) echo "Unknown test number $1"; exit 1;; |
*) echo "Unknown test number $1"; exit 1;; |
| 76 |
esac |
esac |
| 90 |
echo "Can't run test 8 because UTF-8 support is not configured" |
echo "Can't run test 8 because UTF-8 support is not configured" |
| 91 |
exit 1 |
exit 1 |
| 92 |
fi |
fi |
| 93 |
|
if [ $do12 = yes ] ; then |
| 94 |
|
echo "Can't run test 12 because UTF-8 support is not configured" |
| 95 |
|
exit 1 |
| 96 |
|
fi |
| 97 |
fi |
fi |
| 98 |
|
|
| 99 |
if [ $ucp -eq 0 ] ; then |
if [ $ucp -eq 0 ] ; then |
| 109 |
echo "Can't run test 10 because Unicode property support is not configured" |
echo "Can't run test 10 because Unicode property support is not configured" |
| 110 |
exit 1 |
exit 1 |
| 111 |
fi |
fi |
| 112 |
if [ $do12 = yes ] ; then |
if [ $do13 = yes ] ; then |
| 113 |
echo "Can't run test 12 because Unicode property support is not configured" |
echo "Can't run test 12 because Unicode property support is not configured" |
| 114 |
exit 1 |
exit 1 |
| 115 |
fi |
fi |
| 138 |
if [ $utf8 -ne 0 -a $ucp -ne 0 ] ; then do9=yes; fi |
if [ $utf8 -ne 0 -a $ucp -ne 0 ] ; then do9=yes; fi |
| 139 |
if [ $link_size -eq 2 -a $ucp -ne 0 ] ; then do10=yes; fi |
if [ $link_size -eq 2 -a $ucp -ne 0 ] ; then do10=yes; fi |
| 140 |
do11=yes |
do11=yes |
| 141 |
if [ $utf8 -ne 0 -a $ucp -ne 0 ] ; then do12=yes; fi |
if [ $utf8 -ne 0 ] ; then do12=yes; fi |
| 142 |
|
if [ $utf8 -ne 0 -a $ucp -ne 0 ] ; then do13=yes; fi |
| 143 |
fi |
fi |
| 144 |
|
|
| 145 |
# Show which release |
# Show which release |
| 335 |
done |
done |
| 336 |
fi |
fi |
| 337 |
|
|
| 338 |
# Test of Perl >= 5.10 features |
# Test of Perl >= 5.10 features without UTF8 support |
| 339 |
|
|
| 340 |
if [ $do11 = yes ] ; then |
if [ $do11 = yes ] ; then |
| 341 |
echo "Test 11: Features from Perl >= 5.10" |
echo "Test 11: Features from Perl >= 5.10 without UTF8 support" |
| 342 |
for opt in "" "-s"; do |
for opt in "" "-s"; do |
| 343 |
$valgrind ./pcretest -q $opt $testdata/testinput11 testtry |
$valgrind ./pcretest -q $opt $testdata/testinput11 testtry |
| 344 |
if [ $? = 0 ] ; then |
if [ $? = 0 ] ; then |
| 350 |
done |
done |
| 351 |
fi |
fi |
| 352 |
|
|
| 353 |
# Test non-Perl-compatible Unicode property support |
# Test of Perl >= 5.10 features with UTF8 support |
| 354 |
|
|
| 355 |
if [ $do12 = yes ] ; then |
if [ $do12 = yes ] ; then |
| 356 |
echo "Test 12: API, internals, and non-Perl stuff for Unicode property support" |
echo "Test 12: Features from Perl >= 5.10 with UTF8 support" |
| 357 |
for opt in "" "-s"; do |
for opt in "" "-s"; do |
| 358 |
$valgrind ./pcretest -q $opt $testdata/testinput12 testtry |
$valgrind ./pcretest -q $opt $testdata/testinput12 testtry |
| 359 |
if [ $? = 0 ] ; then |
if [ $? = 0 ] ; then |
| 365 |
done |
done |
| 366 |
fi |
fi |
| 367 |
|
|
| 368 |
|
# Test non-Perl-compatible Unicode property support |
| 369 |
|
|
| 370 |
|
if [ $do13 = yes ] ; then |
| 371 |
|
echo "Test 13: API, internals, and non-Perl stuff for Unicode property support" |
| 372 |
|
for opt in "" "-s"; do |
| 373 |
|
$valgrind ./pcretest -q $opt $testdata/testinput13 testtry |
| 374 |
|
if [ $? = 0 ] ; then |
| 375 |
|
$cf $testdata/testoutput13 testtry |
| 376 |
|
if [ $? != 0 ] ; then exit 1; fi |
| 377 |
|
else exit 1 |
| 378 |
|
fi |
| 379 |
|
if [ "$opt" = "-s" ] ; then echo "OK with study" ; else echo "OK"; fi |
| 380 |
|
done |
| 381 |
|
fi |
| 382 |
|
|
| 383 |
# End |
# End |