/[pcre]/code/trunk/RunTest
ViewVC logotype

Diff of /code/trunk/RunTest

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 654 by ph10, Tue Aug 2 11:00:40 2011 UTC revision 691 by ph10, Sun Sep 11 14:31:21 2011 UTC
# Line 1  Line 1 
1  #! /bin/sh  #! /bin/sh
2    
3  # Run the PCRE tests using the pcretest program. All tests are now run both  # Run the PCRE tests using the pcretest program. The appropriate tests are
4  # with and without -s, to ensure that everything is tested with and without  # selected, depending on which build-time options were used.
 # studying. However, there are some tests that produce different output after  
 # studying, typically when we are tracing the actual matching process (for  
 # example, using auto-callouts). In these few cases, the tests are duplicated  
 # in the files, one with /S to force studying always, and one with /SS to force  
 # *not* studying always. The use of -s doesn't then make any difference to  
 # their output. There is also one test which compiles invalid UTF-8 with the  
 # UTF-8 check turned off for which studying is disabled with /SS.  
5    
6  valgrind=  # All tests are now run both with and without -s, to ensure that everything is
7    # tested with and without studying. However, there are some tests that produce
8  # Set up a suitable "diff" command for comparison. Some systems  # different output after studying, typically when we are tracing the actual
9  # have a diff that lacks a -u option. Try to deal with this.  # matching process (for example, using auto-callouts). In these few cases, the
10    # tests are duplicated in the files, one with /S to force studying always, and
11  if diff -u /dev/null /dev/null; then cf="diff -u"; else cf="diff"; fi  # one with /SS to force *not* studying always. The use of -s doesn't then make
12    # any difference to their output. There is also one test which compiles invalid
13  # Find the test data  # UTF-8 with the UTF-8 check turned off; for this, studying must also be
14    # disabled with /SS.
15  testdata=testdata  
16  if [ -n "$srcdir" -a -d "$srcdir" ] ; then  # When JIT support is available, all the tests are also run with -s+ to test
17    testdata="$srcdir/testdata"  # (again, almost) everything with studying and the JIT option. There are also
18  fi  # two tests for JIT-specific features, one to be run when JIT support is
19    # available, and one when it is not.
20  # Find which optional facilities are available  
21    # The arguments for this script can be individual test numbers, or the word
22  case `./pcretest -C | ./pcregrep 'Internal link size'` in  # "valgrind", or "sim" followed by an argument to run cross-compiled
23    *2) link_size=2;;  # executables under a simulator, for example:
24    *3) link_size=3;;  #
25    *4) link_size=4;;  # RunTest 3 sim "qemu-arm -s 8388608"
    *) echo "Failed to find internal link size"; exit 1;;  
 esac  
   
 ./pcretest -C | ./pcregrep 'No UTF-8 support' >/dev/null  
 utf8=$?  
26    
27  ./pcretest -C | ./pcregrep 'No Unicode properties support' >/dev/null  valgrind=
28  ucp=$?  sim=
29    
30  # Select which tests to run; for those that are explicitly requested, check  # Select which tests to run; for those that are explicitly requested, check
31  # that the necessary optional facilities are available.  # that the necessary optional facilities are available.
# Line 55  do10=no Line 43  do10=no
43  do11=no  do11=no
44  do12=no  do12=no
45  do13=no  do13=no
46    do14=no
47    do15=no
48    
49  while [ $# -gt 0 ] ; do  while [ $# -gt 0 ] ; do
50    case $1 in    case $1 in
# Line 70  while [ $# -gt 0 ] ; do Line 60  while [ $# -gt 0 ] ; do
60     10) do10=yes;;     10) do10=yes;;
61     11) do11=yes;;     11) do11=yes;;
62     12) do12=yes;;     12) do12=yes;;
63     13) do12=yes;;     13) do13=yes;;
64     valgrind) valgrind="valgrind -q";;     14) do14=yes;;
65       15) do15=yes;;
66       valgrind) valgrind="valgrind -q --smc-check=all";;
67       sim) shift; sim=$1;;
68      *) echo "Unknown test number $1"; exit 1;;      *) echo "Unknown test number $1"; exit 1;;
69    esac    esac
70    shift    shift
71  done  done
72    
73    # Set up a suitable "diff" command for comparison. Some systems
74    # have a diff that lacks a -u option. Try to deal with this.
75    
76    if diff -u /dev/null /dev/null; then cf="diff -u"; else cf="diff"; fi
77    
78    # Find the test data
79    
80    testdata=testdata
81    if [ -n "$srcdir" -a -d "$srcdir" ] ; then
82      testdata="$srcdir/testdata"
83    fi
84    
85    # Find which optional facilities are available
86    
87    case `$sim ./pcretest -C | $sim ./pcregrep 'Internal link size'` in
88      *2) link_size=2;;
89      *3) link_size=3;;
90      *4) link_size=4;;
91       *) echo "Failed to find internal link size"; exit 1;;
92    esac
93    
94    $sim ./pcretest -C | $sim ./pcregrep 'No UTF-8 support' >/dev/null
95    utf8=$?
96    
97    $sim ./pcretest -C | $sim ./pcregrep 'No Unicode properties support' >/dev/null
98    ucp=$?
99    
100    jitopt=
101    $sim ./pcretest -C | $sim ./pcregrep 'No just-in-time compiler support' \
102      >/dev/null
103    jit=$?
104    if [ $jit -ne 0 ] ; then
105      jitopt=-s+
106    fi
107    
108  if [ $utf8 -eq 0 ] ; then  if [ $utf8 -eq 0 ] ; then
109    if [ $do4 = yes ] ; then    if [ $do4 = yes ] ; then
110      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"
# Line 122  if [ $link_size -ne 2 ] ; then Line 150  if [ $link_size -ne 2 ] ; then
150    fi    fi
151  fi  fi
152    
153  # If no specific tests were requested, select all that are relevant.  if [ $jit -eq 0 ] ; then
154      if [ $do14 = "yes" ] ; then
155        echo "Can't run test 14 because JIT support is not configured"
156        exit 1
157      fi
158    else
159      if [ $do15 = "yes" ] ; then
160        echo "Can't run test 15 because JIT support is configured"
161        exit 1
162      fi
163    fi
164    
165    # If no specific tests were requested, select all. Those that are not
166    # relevant will be skipped.
167    
168  if [ $do1 = no -a $do2 = no -a $do3 = no -a $do4 = no -a \  if [ $do1  = no -a $do2  = no -a $do3  = no -a $do4  = no -a \
169       $do5 = no -a $do6 = no -a $do7 = no -a $do8 = no -a \       $do5  = no -a $do6  = no -a $do7  = no -a $do8  = no -a \
170       $do9 = no -a $do10 = no -a $do11 = no -a $do12 = no ] ; then       $do9  = no -a $do10 = no -a $do11 = no -a $do12 = no -a \
171         $do13 = no -a $do14 = no -a $do15 = no ] ; then
172    do1=yes    do1=yes
173    do2=yes    do2=yes
174    do3=yes    do3=yes
175    if [ $utf8 -ne 0 ] ; then do4=yes; fi    do4=yes
176    if [ $utf8 -ne 0 ] ; then do5=yes; fi    do5=yes
177    if [ $utf8 -ne 0 -a $ucp -ne 0 ] ; then do6=yes; fi    do6=yes
178    do7=yes    do7=yes
179    if [ $utf8 -ne 0 ] ; then do8=yes; fi    do8=yes
180    if [ $utf8 -ne 0 -a $ucp -ne 0 ] ; then do9=yes; fi    do9=yes
181    if [ $link_size -eq 2 -a $ucp -ne 0 ] ; then do10=yes; fi    do10=yes
182    do11=yes    do11=yes
183    if [ $utf8 -ne 0 ] ; then do12=yes; fi    do12=yes
184    if [ $utf8 -ne 0 -a $ucp -ne 0 ] ; then do13=yes; fi    do13=yes
185      do14=yes
186      do15=yes
187  fi  fi
188    
189  # Show which release  # Show which release
# Line 148  echo "" Line 192  echo ""
192  echo PCRE C library tests  echo PCRE C library tests
193  ./pcretest /dev/null  ./pcretest /dev/null
194    
195  # Primary test, compatible with all versions of Perl >= 5.8  # Primary test, compatible with JIT and all versions of Perl >= 5.8
196    
197  if [ $do1 = yes ] ; then  if [ $do1 = yes ] ; then
198    echo "Test 1: main functionality (Compatible with Perl >= 5.8)"    echo "Test 1: main functionality (Compatible with Perl >= 5.8)"
199    for opt in "" "-s"; do    for opt in "" "-s" $jitopt; do
200      $valgrind ./pcretest -q $opt $testdata/testinput1 testtry      $sim $valgrind ./pcretest -q $opt $testdata/testinput1 testtry
201      if [ $? = 0 ] ; then      if [ $? = 0 ] ; then
202        $cf $testdata/testoutput1 testtry        $cf $testdata/testoutput1 testtry
203        if [ $? != 0 ] ; then exit 1; fi        if [ $? != 0 ] ; then exit 1; fi
204      else exit 1      else exit 1
205      fi      fi
206      if [ "$opt" = "-s" ] ; then echo "OK with study" ; else echo "OK"; fi      if [ "$opt" = "-s" ] ; then echo "  OK with study"
207        elif [ "$opt" = "-s+" ] ; then echo "  OK with JIT study"
208        else echo "  OK"
209        fi
210    done    done
211  fi  fi
212    
213  # PCRE tests that are not Perl-compatible - API, errors, internals  # PCRE tests that are not JIT or Perl-compatible: API, errors, internals
214    
215  if [ $do2 = yes ] ; then  if [ $do2 = yes ] ; then
216    echo "Test 2: API, errors, internals, and non-Perl stuff"    echo "Test 2: API, errors, internals, and non-Perl stuff"
217    for opt in "" "-s"; do    for opt in "" "-s" $jitopt; do
218      $valgrind ./pcretest -q $opt $testdata/testinput2 testtry      $sim $valgrind ./pcretest -q $opt $testdata/testinput2 testtry
219      if [ $? = 0 ] ; then      if [ $? = 0 ] ; then
220        $cf $testdata/testoutput2 testtry        $cf $testdata/testoutput2 testtry
221        if [ $? != 0 ] ; then exit 1; fi        if [ $? != 0 ] ; then exit 1; fi
# Line 181  if [ $do2 = yes ] ; then Line 228  if [ $do2 = yes ] ; then
228        echo " "        echo " "
229        exit 1        exit 1
230      fi      fi
231      if [ "$opt" = "-s" ] ; then echo "OK with study" ; else echo "OK"; fi      if [ "$opt" = "-s" ] ; then echo "  OK with study"
232        elif [ "$opt" = "-s+" ] ; then echo "  OK with JIT study"
233        else echo "  OK"
234        fi
235    done    done
236  fi  fi
237    
# Line 210  if [ $do3 = yes ] ; then Line 260  if [ $do3 = yes ] ; then
260    
261    if [ "$locale" != "" ] ; then    if [ "$locale" != "" ] ; then
262      echo "Test 3: locale-specific features (using '$locale' locale)"      echo "Test 3: locale-specific features (using '$locale' locale)"
263      for opt in "" "-s"; do      for opt in "" "-s" $jitopt; do
264        $valgrind ./pcretest -q $opt $infile testtry        $sim $valgrind ./pcretest -q $opt $infile testtry
265        if [ $? = 0 ] ; then        if [ $? = 0 ] ; then
266          $cf $outfile testtry          $cf $outfile testtry
267          if [ $? != 0 ] ; then          if [ $? != 0 ] ; then
# Line 221  if [ $do3 = yes ] ; then Line 271  if [ $do3 = yes ] ; then
271            echo "settings rather than a bug in PCRE."            echo "settings rather than a bug in PCRE."
272            break;            break;
273          else          else
274            if [ "$opt" = "-s" ] ; then echo "OK with study" ; else echo "OK"; fi            if [ "$opt" = "-s" ] ; then echo "  OK with study"
275              elif [ "$opt" = "-s+" ] ; then echo "  OK with JIT study"
276              else echo "  OK"
277              fi
278          fi          fi
279        else exit 1        else exit 1
280        fi        fi
# Line 238  fi Line 291  fi
291    
292  if [ $do4 = yes ] ; then  if [ $do4 = yes ] ; then
293    echo "Test 4: UTF-8 support (Compatible with Perl >= 5.8)"    echo "Test 4: UTF-8 support (Compatible with Perl >= 5.8)"
294    for opt in "" "-s"; do    if [ $utf8 -eq 0 ] ; then
295      $valgrind ./pcretest -q $opt $testdata/testinput4 testtry      echo "  Skipped because UTF-8 support is not available"
296      if [ $? = 0 ] ; then    else
297        $cf $testdata/testoutput4 testtry      for opt in "" "-s" $jitopt; do
298        if [ $? != 0 ] ; then exit 1; fi        $sim $valgrind ./pcretest -q $opt $testdata/testinput4 testtry
299      else exit 1        if [ $? = 0 ] ; then
300      fi          $cf $testdata/testoutput4 testtry
301      if [ "$opt" = "-s" ] ; then echo "OK with study" ; else echo "OK"; fi          if [ $? != 0 ] ; then exit 1; fi
302    done        else exit 1
303          fi
304          if [ "$opt" = "-s" ] ; then echo "  OK with study"
305          elif [ "$opt" = "-s+" ] ; then echo "  OK with JIT study"
306          else echo "  OK"
307          fi
308        done
309      fi
310  fi  fi
311    
312  if [ $do5 = yes ] ; then  if [ $do5 = yes ] ; then
313    echo "Test 5: API, internals, and non-Perl stuff for UTF-8 support"    echo "Test 5: API, internals, and non-Perl stuff for UTF-8 support"
314    for opt in "" "-s"; do    if [ $utf8 -eq 0 ] ; then
315      $valgrind ./pcretest -q $opt $testdata/testinput5 testtry      echo "  Skipped because UTF-8 support is not available"
316      if [ $? = 0 ] ; then    else
317        $cf $testdata/testoutput5 testtry      for opt in "" "-s" $jitopt; do
318        if [ $? != 0 ] ; then exit 1; fi        $sim $valgrind ./pcretest -q $opt $testdata/testinput5 testtry
319      else exit 1        if [ $? = 0 ] ; then
320      fi          $cf $testdata/testoutput5 testtry
321      if [ "$opt" = "-s" ] ; then echo "OK with study" ; else echo "OK"; fi          if [ $? != 0 ] ; then exit 1; fi
322    done        else exit 1
323          fi
324          if [ "$opt" = "-s" ] ; then echo "  OK with study"
325          elif [ "$opt" = "-s+" ] ; then echo "  OK with JIT study"
326          else echo "  OK"
327          fi
328        done
329      fi
330  fi  fi
331    
332  if [ $do6 = yes ] ; then  if [ $do6 = yes ] ; then
333    echo "Test 6: Unicode property support (Compatible with Perl >= 5.10)"    echo "Test 6: Unicode property support (Compatible with Perl >= 5.10)"
334    for opt in "" "-s"; do    if [ $utf8 -eq 0 -o $ucp -eq 0 ] ; then
335      $valgrind ./pcretest -q $opt $testdata/testinput6 testtry      echo "  Skipped because Unicode property support is not available"
336      if [ $? = 0 ] ; then    else
337        $cf $testdata/testoutput6 testtry      for opt in "" "-s" $jitopt; do
338        if [ $? != 0 ] ; then exit 1; fi        $sim $valgrind ./pcretest -q $opt $testdata/testinput6 testtry
339      else exit 1        if [ $? = 0 ] ; then
340      fi          $cf $testdata/testoutput6 testtry
341      if [ "$opt" = "-s" ] ; then echo "OK with study" ; else echo "OK"; fi          if [ $? != 0 ] ; then exit 1; fi
342    done        else exit 1
343          fi
344          if [ "$opt" = "-s" ] ; then echo "  OK with study"
345          elif [ "$opt" = "-s+" ] ; then echo "  OK with JIT study"
346          else echo "  OK"
347          fi
348        done
349      fi
350  fi  fi
351    
352  # Tests for DFA matching support  # Tests for DFA matching support
# Line 280  fi Line 354  fi
354  if [ $do7 = yes ] ; then  if [ $do7 = yes ] ; then
355    echo "Test 7: DFA matching"    echo "Test 7: DFA matching"
356    for opt in "" "-s"; do    for opt in "" "-s"; do
357      $valgrind ./pcretest -q $opt -dfa $testdata/testinput7 testtry      $sim $valgrind ./pcretest -q $opt -dfa $testdata/testinput7 testtry
358      if [ $? = 0 ] ; then      if [ $? = 0 ] ; then
359        $cf $testdata/testoutput7 testtry        $cf $testdata/testoutput7 testtry
360        if [ $? != 0 ] ; then exit 1; fi        if [ $? != 0 ] ; then exit 1; fi
361      else exit 1      else exit 1
362      fi      fi
363      if [ "$opt" = "-s" ] ; then echo "OK with study" ; else echo "OK"; fi      if [ "$opt" = "-s" ] ; then echo "  OK with study" ; else echo "  OK"; fi
364    done    done
365  fi  fi
366    
367  if [ $do8 = yes ] ; then  if [ $do8 = yes ] ; then
368    echo "Test 8: DFA matching with UTF-8"    echo "Test 8: DFA matching with UTF-8"
369    for opt in "" "-s"; do    if [ $utf8 -eq 0 ] ; then
370      $valgrind ./pcretest -q $opt -dfa $testdata/testinput8 testtry      echo "  Skipped because UTF-8 support is not available"
371      if [ $? = 0 ] ; then    else
372        $cf $testdata/testoutput8 testtry      for opt in "" "-s"; do
373        if [ $? != 0 ] ; then exit 1; fi        $sim $valgrind ./pcretest -q $opt -dfa $testdata/testinput8 testtry
374      else exit 1        if [ $? = 0 ] ; then
375      fi          $cf $testdata/testoutput8 testtry
376      if [ "$opt" = "-s" ] ; then echo "OK with study" ; else echo "OK"; fi          if [ $? != 0 ] ; then exit 1; fi
377    done        else exit 1
378          fi
379          if [ "$opt" = "-s" ] ; then echo "  OK with study" ; else echo "  OK"; fi
380        done
381      fi
382  fi  fi
383    
384  if [ $do9 = yes ] ; then  if [ $do9 = yes ] ; then
385    echo "Test 9: DFA matching with Unicode properties"    echo "Test 9: DFA matching with Unicode properties"
386    for opt in "" "-s"; do    if [ $utf8 -eq 0 -o $ucp -eq 0 ] ; then
387      $valgrind ./pcretest -q $opt -dfa $testdata/testinput9 testtry      echo "  Skipped because Unicode property support is not available"
388      if [ $? = 0 ] ; then    else
389        $cf $testdata/testoutput9 testtry      for opt in "" "-s"; do
390        if [ $? != 0 ] ; then exit 1; fi        $sim $valgrind ./pcretest -q $opt -dfa $testdata/testinput9 testtry
391      else exit 1        if [ $? = 0 ] ; then
392      fi          $cf $testdata/testoutput9 testtry
393      if [ "$opt" = "-s" ] ; then echo "OK with study" ; else echo "OK"; fi          if [ $? != 0 ] ; then exit 1; fi
394    done        else exit 1
395          fi
396          if [ "$opt" = "-s" ] ; then echo "  OK with study" ; else echo "  OK"; fi
397        done
398      fi
399  fi  fi
400    
401  # Test of internal offsets and code sizes. This test is run only when there  # Test of internal offsets and code sizes. This test is run only when there
# Line 324  fi Line 406  fi
406    
407  if [ $do10 = yes ] ; then  if [ $do10 = yes ] ; then
408    echo "Test 10: Internal offsets and code size tests"    echo "Test 10: Internal offsets and code size tests"
409    for opt in "" "-s"; do    if [ $link_size -ne 2 ] ; then
410      $valgrind ./pcretest -q $opt $testdata/testinput10 testtry      echo "  Skipped because link size is not 2"
411      if [ $? = 0 ] ; then    elif [ $ucp -eq 0 ] ; then
412        $cf $testdata/testoutput10 testtry      echo "  Skipped because Unicode property support is not available"
413        if [ $? != 0 ] ; then exit 1; fi    else
414      else exit 1      for opt in "" "-s"; do
415      fi        $sim $valgrind ./pcretest -q $opt $testdata/testinput10 testtry
416      if [ "$opt" = "-s" ] ; then echo "OK with study" ; else echo "OK"; fi        if [ $? = 0 ] ; then
417    done          $cf $testdata/testoutput10 testtry
418            if [ $? != 0 ] ; then exit 1; fi
419          else exit 1
420          fi
421          if [ "$opt" = "-s" ] ; then echo "  OK with study" ; else echo "  OK"; fi
422        done
423      fi
424  fi  fi
425    
426  # Test of Perl >= 5.10 features without UTF8 support  # Test of Perl >= 5.10 features without UTF8 support
427    
428  if [ $do11 = yes ] ; then  if [ $do11 = yes ] ; then
429    echo "Test 11: Features from Perl >= 5.10 without UTF8 support"    echo "Test 11: Features from Perl >= 5.10 without UTF8 support"
430    for opt in "" "-s"; do    for opt in "" "-s" $jitopt; do
431      $valgrind ./pcretest -q $opt $testdata/testinput11 testtry      $sim $valgrind ./pcretest -q $opt $testdata/testinput11 testtry
432      if [ $? = 0 ] ; then      if [ $? = 0 ] ; then
433        $cf $testdata/testoutput11 testtry        $cf $testdata/testoutput11 testtry
434        if [ $? != 0 ] ; then exit 1; fi        if [ $? != 0 ] ; then exit 1; fi
435      else exit 1      else exit 1
436      fi      fi
437      if [ "$opt" = "-s" ] ; then echo "OK with study" ; else echo "OK"; fi      if [ "$opt" = "-s" ] ; then echo "  OK with study"
438        elif [ "$opt" = "-s+" ] ; then echo "  OK with JIT study"
439        else echo "  OK"
440        fi
441    done    done
442  fi  fi
443    
# Line 354  fi Line 445  fi
445    
446  if [ $do12 = yes ] ; then  if [ $do12 = yes ] ; then
447    echo "Test 12: Features from Perl >= 5.10 with UTF8 support"    echo "Test 12: Features from Perl >= 5.10 with UTF8 support"
448    for opt in "" "-s"; do    if [ $utf8 -eq 0 ] ; then
449      $valgrind ./pcretest -q $opt $testdata/testinput12 testtry      echo "  Skipped because UTF-8 support is not available"
450      else
451        for opt in "" "-s" $jitopt; do
452          $sim $valgrind ./pcretest -q $opt $testdata/testinput12 testtry
453          if [ $? = 0 ] ; then
454            $cf $testdata/testoutput12 testtry
455            if [ $? != 0 ] ; then exit 1; fi
456          else exit 1
457          fi
458          if [ "$opt" = "-s" ] ; then echo "  OK with study"
459          elif [ "$opt" = "-s+" ] ; then echo "  OK with JIT study"
460          else echo "  OK"
461          fi
462        done
463      fi
464    fi
465    
466    # Test non-Perl-compatible Unicode property support
467    
468    if [ $do13 = yes ] ; then
469      echo "Test 13: API, internals, and non-Perl stuff for Unicode property support"
470      if [ $utf8 -eq 0 -o $ucp -eq 0 ] ; then
471        echo "  Skipped because Unicode property support is not available"
472      else
473        for opt in "" "-s" $jitopt; do
474          $sim $valgrind ./pcretest -q $opt $testdata/testinput13 testtry
475          if [ $? = 0 ] ; then
476            $cf $testdata/testoutput13 testtry
477            if [ $? != 0 ] ; then exit 1; fi
478          else exit 1
479          fi
480          if [ "$opt" = "-s" ] ; then echo "  OK with study"
481          elif [ "$opt" = "-s+" ] ; then echo "  OK with JIT study"
482          else echo "  OK"
483          fi
484        done
485      fi
486    fi
487    
488    # Test JIT-specific features when JIT is available
489    
490    if [ $do14 = yes ] ; then
491      echo "Test 14: JIT-specific features (JIT available)"
492      if [ $jit -eq 0 ] ; then
493        echo "  Skipped because JIT is not available or not usable"
494      else
495        $sim $valgrind ./pcretest -q $testdata/testinput14 testtry
496      if [ $? = 0 ] ; then      if [ $? = 0 ] ; then
497        $cf $testdata/testoutput12 testtry        $cf $testdata/testoutput14 testtry
498        if [ $? != 0 ] ; then exit 1; fi        if [ $? != 0 ] ; then exit 1; fi
499      else exit 1      else exit 1
500      fi      fi
501      if [ "$opt" = "-s" ] ; then echo "OK with study" ; else echo "OK"; fi      echo "  OK"
502    done    fi
503  fi  fi
504    
505  # Test non-Perl-compatible Unicode property support  # Test JIT-specific features when JIT is not available
506    
507  if [ $do13 = yes ] ; then  if [ $do15 = yes ] ; then
508    echo "Test 13: API, internals, and non-Perl stuff for Unicode property support"    echo "Test 15: JIT-specific features (JIT not available)"
509    for opt in "" "-s"; do    if [ $jit -ne 0 ] ; then
510      $valgrind ./pcretest -q $opt $testdata/testinput13 testtry      echo "  Skipped because JIT is available"
511      else
512        $sim $valgrind ./pcretest -q $testdata/testinput15 testtry
513      if [ $? = 0 ] ; then      if [ $? = 0 ] ; then
514        $cf $testdata/testoutput13 testtry        $cf $testdata/testoutput15 testtry
515        if [ $? != 0 ] ; then exit 1; fi        if [ $? != 0 ] ; then exit 1; fi
516      else exit 1      else exit 1
517      fi      fi
518      if [ "$opt" = "-s" ] ; then echo "OK with study" ; else echo "OK"; fi      echo "  OK"
519    done    fi
520  fi  fi
521    
522  # End  # End

Legend:
Removed from v.654  
changed lines
  Added in v.691

  ViewVC Help
Powered by ViewVC 1.1.5