[Pcre-svn] [115] code/trunk: Make scripts Solaris-compatible…

Top Page
Delete this message
Author: Subversion repository
Date:  
To: pcre-svn
Subject: [Pcre-svn] [115] code/trunk: Make scripts Solaris-compatible.
Revision: 115
          http://www.exim.org/viewvc/pcre2?view=rev&revision=115
Author:   ph10
Date:     2014-10-16 17:22:44 +0100 (Thu, 16 Oct 2014)


Log Message:
-----------
Make scripts Solaris-compatible.

Modified Paths:
--------------
    code/trunk/RunTest
    code/trunk/maint/ManyConfigTests


Modified: code/trunk/RunTest
===================================================================
--- code/trunk/RunTest    2014-10-15 16:44:12 UTC (rev 114)
+++ code/trunk/RunTest    2014-10-16 16:22:44 UTC (rev 115)
@@ -121,8 +121,10 @@
 #  $1 the value of $? after a call to pcre2test
 #  $2 the suffix of the output file to compare with
 #  $3 the $opt value (empty, -jit, or -dfa)
+#
+# Note: must define using name(), not "function name", for Solaris.


-function checkresult()
+checkresult()
   {
   if [ $1 -ne 0 ] ; then 
     echo "** pcre2test failed - check testtry"


Modified: code/trunk/maint/ManyConfigTests
===================================================================
--- code/trunk/maint/ManyConfigTests    2014-10-15 16:44:12 UTC (rev 114)
+++ code/trunk/maint/ManyConfigTests    2014-10-16 16:22:44 UTC (rev 115)
@@ -80,9 +80,11 @@



# This function runs a single test with the set of configuration options that
-# are in $opts. The source directory must be set in srcdir.
+# are in $opts. The source directory must be set in srcdir. The function must
+# be defined as "runtest()" not "function runtest()" in order to run on
+# Solaris.

-function runtest()
+runtest()
{
rm -f $srcdir/pcre2test $srcdir/pcre2grep $srcdir/pcre2_jit_test
testcount=`expr $testcount + 1`