| 133 |
echo PCRE C library tests |
echo PCRE C library tests |
| 134 |
./pcretest /dev/null |
./pcretest /dev/null |
| 135 |
|
|
| 136 |
# Primary test, compatible with Perl 5.8, 5.10, 5.11 |
# Primary test, compatible with all versions of Perl >= 5.8 |
| 137 |
|
|
| 138 |
if [ $do1 = yes ] ; then |
if [ $do1 = yes ] ; then |
| 139 |
echo "Test 1: main functionality (Perl 5.8, 5.10, 5.11 compatible)" |
echo "Test 1: main functionality (Compatible with Perl >= 5.8)" |
| 140 |
$valgrind ./pcretest -q $testdata/testinput1 testtry |
$valgrind ./pcretest -q $testdata/testinput1 testtry |
| 141 |
if [ $? = 0 ] ; then |
if [ $? = 0 ] ; then |
| 142 |
$cf $testdata/testoutput1 testtry |
$cf $testdata/testoutput1 testtry |
| 215 |
# Additional tests for UTF8 support |
# Additional tests for UTF8 support |
| 216 |
|
|
| 217 |
if [ $do4 = yes ] ; then |
if [ $do4 = yes ] ; then |
| 218 |
echo "Test 4: UTF-8 support (Perl 5.8, 5.10, 5.11 compatible)" |
echo "Test 4: UTF-8 support (Compatible with Perl >= 5.8)" |
| 219 |
$valgrind ./pcretest -q $testdata/testinput4 testtry |
$valgrind ./pcretest -q $testdata/testinput4 testtry |
| 220 |
if [ $? = 0 ] ; then |
if [ $? = 0 ] ; then |
| 221 |
$cf $testdata/testoutput4 testtry |
$cf $testdata/testoutput4 testtry |
| 237 |
fi |
fi |
| 238 |
|
|
| 239 |
if [ $do6 = yes ] ; then |
if [ $do6 = yes ] ; then |
| 240 |
echo "Test 6: Unicode property support (Perl 5.10, 5.11 compatible)" |
echo "Test 6: Unicode property support (Compatible with Perl >= 5.10)" |
| 241 |
$valgrind ./pcretest -q $testdata/testinput6 testtry |
$valgrind ./pcretest -q $testdata/testinput6 testtry |
| 242 |
if [ $? = 0 ] ; then |
if [ $? = 0 ] ; then |
| 243 |
$cf $testdata/testoutput6 testtry |
$cf $testdata/testoutput6 testtry |
| 299 |
echo "OK" |
echo "OK" |
| 300 |
fi |
fi |
| 301 |
|
|
| 302 |
# Test of Perl 5.10, 5.11 features |
# Test of Perl >= 5.10 features |
| 303 |
|
|
| 304 |
if [ $do11 = yes ] ; then |
if [ $do11 = yes ] ; then |
| 305 |
echo "Test 11: Perl 5.10, 5.11 features" |
echo "Test 11: Features from Perl >= 5.10" |
| 306 |
$valgrind ./pcretest -q $testdata/testinput11 testtry |
$valgrind ./pcretest -q $testdata/testinput11 testtry |
| 307 |
if [ $? = 0 ] ; then |
if [ $? = 0 ] ; then |
| 308 |
$cf $testdata/testoutput11 testtry |
$cf $testdata/testoutput11 testtry |