| 66 |
|
|
| 67 |
conf=`./pcretest -C` |
conf=`./pcretest -C` |
| 68 |
nl=`expr match "$conf" ".*Newline sequence is \([A-Z]*\)"` |
nl=`expr match "$conf" ".*Newline sequence is \([A-Z]*\)"` |
| 69 |
|
jit=`expr match "$conf" ".*[^o] Just-in-time"` |
| 70 |
|
utf8=`expr match "$conf" ".*[^o] UTF-8 support"` |
| 71 |
|
|
| 72 |
if [ "$nl" = "LF" -o "$nl" = "ANY" ]; then |
if [ "$nl" = "LF" -o "$nl" = "ANY" ]; then |
| 73 |
echo "Running C library tests" |
echo "Running C library tests" |
| 96 |
echo "Skipping pcregrep tests: newline is $nl" |
echo "Skipping pcregrep tests: newline is $nl" |
| 97 |
fi |
fi |
| 98 |
|
|
| 99 |
|
if [ "$jit" -gt 0 -a $utf8 -gt 0 ]; then |
| 100 |
|
echo "Running JIT regression tests" |
| 101 |
|
$srcdir/pcre_jit_test >teststdout 2>teststderr |
| 102 |
|
if [ $? -ne 0 ]; then |
| 103 |
|
echo " " |
| 104 |
|
echo "**** Test failed ****" |
| 105 |
|
cat teststderr |
| 106 |
|
cat teststdout |
| 107 |
|
exit 1 |
| 108 |
|
fi |
| 109 |
|
else |
| 110 |
|
echo "Skipping JIT regression tests: JIT or UTF-8 not enabled" |
| 111 |
|
fi |
| 112 |
|
|
| 113 |
if [ "$nl" = "LF" -o "$nl" = "ANY" ]; then |
if [ "$nl" = "LF" -o "$nl" = "ANY" ]; then |
| 114 |
if [ -f pcrecpp_unittest ] ; then |
if [ -f pcrecpp_unittest ] ; then |
| 115 |
for utest in pcrecpp_unittest \ |
for utest in pcrecpp_unittest \ |
| 146 |
for opts in \ |
for opts in \ |
| 147 |
"" \ |
"" \ |
| 148 |
"--enable-utf8 --disable-static" \ |
"--enable-utf8 --disable-static" \ |
| 149 |
"--disable-stack-for-recursion" \ |
"--disable-stack-for-recursion --disable-shared" \ |
| 150 |
"--enable-utf8 --disable-stack-for-recursion" \ |
"--enable-utf8 --disable-stack-for-recursion --disable-shared" \ |
| 151 |
"--enable-unicode-properties --disable-shared" \ |
"--enable-unicode-properties --disable-shared" \ |
| 152 |
"--enable-unicode-properties --disable-stack-for-recursion --disable-shared" \ |
"--enable-unicode-properties --disable-stack-for-recursion --disable-shared" \ |
| 153 |
"--enable-unicode-properties --disable-cpp --with-link-size=3 --disable-shared" \ |
"--enable-unicode-properties --disable-cpp --with-link-size=3 --disable-shared" \ |
| 157 |
"--enable-newline-is-crlf --disable-shared" \ |
"--enable-newline-is-crlf --disable-shared" \ |
| 158 |
"--enable-newline-is-anycrlf --enable-bsr-anycrlf --disable-shared" \ |
"--enable-newline-is-anycrlf --enable-bsr-anycrlf --disable-shared" \ |
| 159 |
"--enable-utf8 --enable-newline-is-any --enable-unicode-properties --disable-stack-for-recursion --disable-static --disable-cpp" \ |
"--enable-utf8 --enable-newline-is-any --enable-unicode-properties --disable-stack-for-recursion --disable-static --disable-cpp" \ |
| 160 |
"--enable-jit --enable-unicode-properties" \ |
"--enable-jit --disable-shared" \ |
| 161 |
"--enable-jit --enable-unicode-properties --with-link-size=3" |
"--enable-jit --enable-unicode-properties --disable-shared" \ |
| 162 |
|
"--enable-jit --enable-unicode-properties --with-link-size=3 --disable-shared" |
| 163 |
do |
do |
| 164 |
runtest |
runtest |
| 165 |
done |
done |