3 |
# This file is generated by configure from RunTest.in. Make any changes |
# This file is generated by configure from RunTest.in. Make any changes |
4 |
# to that file. |
# to that file. |
5 |
|
|
6 |
|
# TODO: Replace use of variables @LINK_SIZE@, @UTF8@ and @UCP@ with |
7 |
|
# the data found from the output of 'pcretest -C' instead. |
8 |
|
|
9 |
# Run PCRE tests |
# Run PCRE tests |
10 |
|
|
11 |
cf=diff |
cf=diff |
39 |
7) do7=yes;; |
7) do7=yes;; |
40 |
8) do8=yes;; |
8) do8=yes;; |
41 |
9) do9=yes;; |
9) do9=yes;; |
42 |
valgrind) valgrind="valgrind -q";; |
valgrind) valgrind="valgrind -q";; |
43 |
*) echo "Unknown test number $1"; exit 1;; |
*) echo "Unknown test number $1"; exit 1;; |
44 |
esac |
esac |
45 |
shift |
shift |
46 |
done |
done |
47 |
|
|
48 |
if [ "@LINK_SIZE@" != "" -a "@LINK_SIZE@" != "-DLINK_SIZE=2" ] ; then |
if [ "@LINK_SIZE@" != "2" ] ; then |
49 |
if [ $do2 = yes ] ; then |
if [ $do2 = yes ] ; then |
50 |
echo "Can't run test 2 with an internal link size other than 2" |
echo "Can't run test 2 with an internal link size other than 2" |
51 |
exit 1 |
exit 1 |
60 |
fi |
fi |
61 |
fi |
fi |
62 |
|
|
63 |
if [ "@UTF8@" = "" ] ; then |
if [ "@UTF8@" = "no" ] ; then |
64 |
if [ $do4 = yes ] ; then |
if [ $do4 = yes ] ; then |
65 |
echo "Can't run test 4 because UTF-8 support is not configured" |
echo "Can't run test 4 because UTF-8 support is not configured" |
66 |
exit 1 |
exit 1 |
83 |
fi |
fi |
84 |
fi |
fi |
85 |
|
|
86 |
if [ "@UCP@" = "" ] ; then |
if [ "@UCP@" = "no" ] ; then |
87 |
if [ $do6 = yes ] ; then |
if [ $do6 = yes ] ; then |
88 |
echo "Can't run test 6 because Unicode property support is not configured" |
echo "Can't run test 6 because Unicode property support is not configured" |
89 |
exit 1 |
exit 1 |
100 |
do1=yes |
do1=yes |
101 |
do2=yes |
do2=yes |
102 |
do3=yes |
do3=yes |
103 |
if [ "@UTF8@" != "" ] ; then do4=yes; fi |
if [ "@UTF8@" != "no" ] ; then do4=yes; fi |
104 |
if [ "@UTF8@" != "" ] ; then do5=yes; fi |
if [ "@UTF8@" != "no" ] ; then do5=yes; fi |
105 |
if [ "@UTF8@" != "" -a "@UCP@" != "" ] ; then do6=yes; fi |
if [ "@UTF8@" != "no" -a "@UCP@" != "no" ] ; then do6=yes; fi |
106 |
do7=yes |
do7=yes |
107 |
if [ "@UTF8@" != "" ] ; then do8=yes; fi |
if [ "@UTF8@" != "no" ] ; then do8=yes; fi |
108 |
if [ "@UTF8@" != "" -a "@UCP@" != "" ] ; then do9=yes; fi |
if [ "@UTF8@" != "no" -a "@UCP@" != "no" ] ; then do9=yes; fi |
109 |
fi |
fi |
110 |
|
|
111 |
# Show which release |
# Show which release |
129 |
# PCRE tests that are not Perl-compatible - API & error tests, mostly |
# PCRE tests that are not Perl-compatible - API & error tests, mostly |
130 |
|
|
131 |
if [ $do2 = yes ] ; then |
if [ $do2 = yes ] ; then |
132 |
if [ "@LINK_SIZE@" = "" -o "@LINK_SIZE@" = "-DLINK_SIZE=2" ] ; then |
if [ "@LINK_SIZE@" = "2" ] ; then |
133 |
echo "Test 2: API and error handling (not Perl compatible)" |
echo "Test 2: API and error handling (not Perl compatible)" |
134 |
$valgrind ./pcretest -q $testdata/testinput2 testtry |
$valgrind ./pcretest -q $testdata/testinput2 testtry |
135 |
if [ $? = 0 ] ; then |
if [ $? = 0 ] ; then |
141 |
echo " " |
echo " " |
142 |
else |
else |
143 |
echo Test 2 skipped for link size other than 2 \(@LINK_SIZE@\) |
echo Test 2 skipped for link size other than 2 \(@LINK_SIZE@\) |
144 |
echo " " |
echo " " |
145 |
fi |
fi |
146 |
fi |
fi |
147 |
|
|
187 |
fi |
fi |
188 |
|
|
189 |
if [ $do5 = yes ] ; then |
if [ $do5 = yes ] ; then |
190 |
if [ "@LINK_SIZE@" = "" -o "@LINK_SIZE@" = "-DLINK_SIZE=2" ] ; then |
if [ "@LINK_SIZE@" = "2" ] ; then |
191 |
echo "Test 5: API and internals for UTF-8 support (not Perl compatible)" |
echo "Test 5: API and internals for UTF-8 support (not Perl compatible)" |
192 |
$valgrind ./pcretest -q $testdata/testinput5 testtry |
$valgrind ./pcretest -q $testdata/testinput5 testtry |
193 |
if [ $? = 0 ] ; then |
if [ $? = 0 ] ; then |
199 |
echo " " |
echo " " |
200 |
else |
else |
201 |
echo Test 5 skipped for link size other than 2 \(@LINK_SIZE@\) |
echo Test 5 skipped for link size other than 2 \(@LINK_SIZE@\) |
202 |
echo " " |
echo " " |
203 |
fi |
fi |
204 |
fi |
fi |
205 |
|
|
206 |
if [ $do6 = yes ] ; then |
if [ $do6 = yes ] ; then |
207 |
if [ "@LINK_SIZE@" = "" -o "@LINK_SIZE@" = "-DLINK_SIZE=2" ] ; then |
if [ "@LINK_SIZE@" = "2" ] ; then |
208 |
echo "Test 6: Unicode property support" |
echo "Test 6: Unicode property support" |
209 |
$valgrind ./pcretest -q $testdata/testinput6 testtry |
$valgrind ./pcretest -q $testdata/testinput6 testtry |
210 |
if [ $? = 0 ] ; then |
if [ $? = 0 ] ; then |
216 |
echo " " |
echo " " |
217 |
else |
else |
218 |
echo Test 6 skipped for link size other than 2 \(@LINK_SIZE@\) |
echo Test 6 skipped for link size other than 2 \(@LINK_SIZE@\) |
219 |
echo " " |
echo " " |
220 |
fi |
fi |
221 |
fi |
fi |
222 |
|
|