/[pcre]/code/tags/pcre-2.08a/RunTest
ViewVC logotype

Diff of /code/tags/pcre-2.08a/RunTest

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

revision 33 by nigel, Sat Feb 24 21:39:01 2007 UTC revision 41 by nigel, Sat Feb 24 21:39:17 2007 UTC
# Line 33  fi Line 33  fi
33    
34  if [ $do1 = yes ] ; then  if [ $do1 = yes ] ; then
35    echo "Testing main functionality (Perl compatible)"    echo "Testing main functionality (Perl compatible)"
36    ./pcretest testinput1 testtry    ./pcretest testdata/testinput1 testtry
37    if [ $? = 0 ] ; then    if [ $? = 0 ] ; then
38      $cf testtry testoutput1      $cf testtry testdata/testoutput1
39      if [ $? != 0 ] ; then exit 1; fi      if [ $? != 0 ] ; then exit 1; fi
40    else exit 1    else exit 1
41    fi    fi
# Line 45  fi Line 45  fi
45    
46  if [ $do2 = yes ] ; then  if [ $do2 = yes ] ; then
47    echo "Testing API and error handling (not Perl compatible)"    echo "Testing API and error handling (not Perl compatible)"
48    ./pcretest -i testinput2 testtry    ./pcretest -i testdata/testinput2 testtry
49    if [ $? = 0 ] ; then    if [ $? = 0 ] ; then
50      $cf testtry testoutput2      $cf testtry testdata/testoutput2
51      if [ $? != 0 ] ; then exit 1; fi      if [ $? != 0 ] ; then exit 1; fi
52    else exit 1    else exit 1
53    fi    fi
# Line 57  fi Line 57  fi
57    
58  if [ $do3 = yes ] ; then  if [ $do3 = yes ] ; then
59    echo "Testing Perl 5.005 features (Perl 5.005 compatible)"    echo "Testing Perl 5.005 features (Perl 5.005 compatible)"
60    ./pcretest testinput3 testtry    ./pcretest testdata/testinput3 testtry
61    if [ $? = 0 ] ; then    if [ $? = 0 ] ; then
62      $cf testtry testoutput3      $cf testtry testdata/testoutput3
63      if [ $? != 0 ] ; then exit 1; fi      if [ $? != 0 ] ; then exit 1; fi
64    else exit 1    else exit 1
65    fi    fi
# Line 76  if [ $do4 = yes ] ; then Line 76  if [ $do4 = yes ] ; then
76    locale -a | grep '^fr$' >/dev/null    locale -a | grep '^fr$' >/dev/null
77    if [ $? -eq 0 ] ; then    if [ $? -eq 0 ] ; then
78      echo "Testing locale-specific features (using 'fr' locale)"      echo "Testing locale-specific features (using 'fr' locale)"
79      ./pcretest testinput4 testtry      ./pcretest testdata/testinput4 testtry
80      if [ $? = 0 ] ; then      if [ $? = 0 ] ; then
81        $cf testtry testoutput4        $cf testtry testdata/testoutput4
82        if [ $? != 0 ] ; then exit 1; fi        if [ $? != 0 ] ; then exit 1; fi
83        echo "Locale test ran OK"        echo "Locale test ran OK"
84        echo " "        echo " "

Legend:
Removed from v.33  
changed lines
  Added in v.41

  ViewVC Help
Powered by ViewVC 1.1.5