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

Diff of /code/trunk/RunTest

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

revision 448 by ph10, Tue Sep 15 19:11:48 2009 UTC revision 559 by ph10, Wed Oct 27 09:45:20 2010 UTC
# Line 60  while [ $# -gt 0 ] ; do Line 60  while [ $# -gt 0 ] ; do
60      9) do9=yes;;      9) do9=yes;;
61     10) do10=yes;;     10) do10=yes;;
62     11) do11=yes;;     11) do11=yes;;
63     12) do12=yes;;     12) do12=yes;;
64     valgrind) valgrind="valgrind -q";;     valgrind) valgrind="valgrind -q";;
65      *) echo "Unknown test number $1"; exit 1;;      *) echo "Unknown test number $1"; exit 1;;
66    esac    esac
# Line 124  if [ $do1 = no -a $do2 = no -a $do3 = no Line 124  if [ $do1 = no -a $do2 = no -a $do3 = no
124    if [ $utf8 -ne 0 -a $ucp -ne 0 ] ; then do9=yes; fi    if [ $utf8 -ne 0 -a $ucp -ne 0 ] ; then do9=yes; fi
125    if [ $link_size -eq 2 -a $ucp -ne 0 ] ; then do10=yes; fi    if [ $link_size -eq 2 -a $ucp -ne 0 ] ; then do10=yes; fi
126    do11=yes    do11=yes
127    if [ $utf8 -ne 0 -a $ucp -ne 0 ] ; then do12=yes; fi    if [ $utf8 -ne 0 -a $ucp -ne 0 ] ; then do12=yes; fi
128  fi  fi
129    
130  # Show which release  # Show which release
# Line 133  echo "" Line 133  echo ""
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, compatible with all versions of Perl >= 5.8
137    
138  if [ $do1 = yes ] ; then  if [ $do1 = yes ] ; then
139    echo "Test 1: main functionality (Perl compatible)"    echo "Test 1: main functionality (Compatible with Perl >= 5.8)"
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
# Line 146  if [ $do1 = yes ] ; then Line 146  if [ $do1 = yes ] ; then
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
# Line 215  fi Line 215  fi
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 (Compatible with Perl >= 5.8)"
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
# Line 237  if [ $do5 = yes ] ; then Line 237  if [ $do5 = yes ] ; then
237  fi  fi
238    
239  if [ $do6 = yes ] ; then  if [ $do6 = yes ] ; then
240    echo "Test 6: Unicode property support (Perl 5.10 compatible)"    echo "Test 6: Unicode property support (Compatible with Perl >= 5.10)"
241    $valgrind ./pcretest -q $testdata/testinput6 testtry    $valgrind ./pcretest -q $testdata/testinput6 testtry
242    if [ $? = 0 ] ; then    if [ $? = 0 ] ; then
243      $cf $testdata/testoutput6 testtry      $cf $testdata/testoutput6 testtry
# Line 299  if [ $do10 = yes ] ; then Line 299  if [ $do10 = yes ] ; then
299    echo "OK"    echo "OK"
300  fi  fi
301    
302  # Test of Perl 5.10 features  # Test of Perl >= 5.10 features
303    
304  if [ $do11 = yes ] ; then  if [ $do11 = yes ] ; then
305    echo "Test 11: Perl 5.10 features"    echo "Test 11: Features from Perl >= 5.10"
306    $valgrind ./pcretest -q $testdata/testinput11 testtry    $valgrind ./pcretest -q $testdata/testinput11 testtry
307    if [ $? = 0 ] ; then    if [ $? = 0 ] ; then
308      $cf $testdata/testoutput11 testtry      $cf $testdata/testoutput11 testtry

Legend:
Removed from v.448  
changed lines
  Added in v.559

  ViewVC Help
Powered by ViewVC 1.1.5