| 133 |
echo PCRE C library tests |
echo PCRE C library tests |
| 134 |
./pcretest /dev/null |
./pcretest /dev/null |
| 135 |
|
|
| 136 |
# Primary test, Perl-compatible |
# Primary test, Perl-compatible for both 5.8 and 5.10 |
| 137 |
|
|
| 138 |
if [ $do1 = yes ] ; then |
if [ $do1 = yes ] ; then |
| 139 |
echo "Test 1: main functionality (Perl compatible)" |
echo "Test 1: main functionality (Perl 5.8 & 5.10 compatible)" |
| 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 |
| 146 |
echo "OK" |
echo "OK" |
| 147 |
fi |
fi |
| 148 |
|
|
| 149 |
# PCRE tests that are not Perl-compatible - API & error tests, mostly |
# PCRE tests that are not Perl-compatible - API, errors, internals |
| 150 |
|
|
| 151 |
if [ $do2 = yes ] ; then |
if [ $do2 = yes ] ; then |
| 152 |
echo "Test 2: API, errors, and non-Perl stuff" |
echo "Test 2: API, errors, internals, and non-Perl stuff" |
| 153 |
$valgrind ./pcretest -q $testdata/testinput2 testtry |
$valgrind ./pcretest -q $testdata/testinput2 testtry |
| 154 |
if [ $? = 0 ] ; then |
if [ $? = 0 ] ; then |
| 155 |
$cf $testdata/testoutput2 testtry |
$cf $testdata/testoutput2 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 compatible)" |
echo "Test 4: UTF-8 support (Perl 5.8 & 5.10 compatible)" |
| 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 |