127 |
if [ $ebcdic -ne 1 ] ; then |
if [ $ebcdic -ne 1 ] ; then |
128 |
echo "Cannot run EBCDIC tests: EBCDIC support not compiled" |
echo "Cannot run EBCDIC tests: EBCDIC support not compiled" |
129 |
exit 1 |
exit 1 |
130 |
fi |
fi |
131 |
|
|
132 |
for opt in "" "-s" "-dfa" "-s -dfa"; do |
for opt in "" "-s" "-dfa" "-s -dfa"; do |
133 |
./pcretest -q $opt $testdata/testinputEBC >testtry |
./pcretest -q $opt $testdata/testinputEBC >testtry |
138 |
fi |
fi |
139 |
if [ "$opt" = "-s" ] ; then echo " OK with study" |
if [ "$opt" = "-s" ] ; then echo " OK with study" |
140 |
elif [ "$opt" = "-dfa" ] ; then echo " OK using DFA" |
elif [ "$opt" = "-dfa" ] ; then echo " OK using DFA" |
141 |
elif [ "$opt" = "-s -dfa" ] ; then echo " OK using DFA with study" |
elif [ "$opt" = "-s -dfa" ] ; then echo " OK using DFA with study" |
142 |
else echo " OK" |
else echo " OK" |
143 |
fi |
fi |
144 |
done |
done |
147 |
fi |
fi |
148 |
|
|
149 |
|
|
150 |
# ------ Normal Tests ------ |
# ------ Normal Tests ------ |
151 |
|
|
152 |
# Default values |
# Default values |
153 |
|
|
229 |
shift |
shift |
230 |
done |
done |
231 |
|
|
232 |
# Find which optional facilities are available. |
# Find which optional facilities are available. |
233 |
|
|
234 |
$sim ./pcretest -C linksize >/dev/null |
$sim ./pcretest -C linksize >/dev/null |
235 |
link_size=$? |
link_size=$? |
263 |
if [ "$arg8$arg16$arg32" = "" ] ; then |
if [ "$arg8$arg16$arg32" = "" ] ; then |
264 |
if [ $support8 -ne 0 ] ; then |
if [ $support8 -ne 0 ] ; then |
265 |
test8= |
test8= |
266 |
fi |
fi |
267 |
if [ $support16 -ne 0 ] ; then |
if [ $support16 -ne 0 ] ; then |
268 |
test16=-16 |
test16=-16 |
269 |
fi |
fi |
270 |
if [ $support32 -ne 0 ] ; then |
if [ $support32 -ne 0 ] ; then |
271 |
test32=-32 |
test32=-32 |
272 |
fi |
fi |
273 |
|
|
274 |
# Select requested bit sizes |
# Select requested bit sizes |
275 |
|
|
280 |
exit 1 |
exit 1 |
281 |
fi |
fi |
282 |
test8= |
test8= |
283 |
fi |
fi |
284 |
if [ "$arg16" = yes ] ; then |
if [ "$arg16" = yes ] ; then |
285 |
if [ $support16 -eq 0 ] ; then |
if [ $support16 -eq 0 ] ; then |
286 |
echo "Cannot run 16-bit library tests: 16-bit library not compiled" |
echo "Cannot run 16-bit library tests: 16-bit library not compiled" |
287 |
exit 1 |
exit 1 |
288 |
fi |
fi |
289 |
test16=-16 |
test16=-16 |
290 |
fi |
fi |
291 |
if [ "$arg32" = yes ] ; then |
if [ "$arg32" = yes ] ; then |
292 |
if [ $support32 -eq 0 ] ; then |
if [ $support32 -eq 0 ] ; then |
293 |
echo "Cannot run 32-bit library tests: 32-bit library not compiled" |
echo "Cannot run 32-bit library tests: 32-bit library not compiled" |
294 |
exit 1 |
exit 1 |
295 |
fi |
fi |
296 |
test32=-32 |
test32=-32 |
297 |
fi |
fi |
298 |
fi |
fi |
299 |
|
|
300 |
# UTF support always applies to all bit sizes if both are supported; we can't |
# UTF support always applies to all bit sizes if both are supported; we can't |