summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2014-10-16 16:22:44 +0000
committerph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2014-10-16 16:22:44 +0000
commit190e98cb9ae6436773aa06df829eb14297cf274c (patch)
treeb3d657bb0835efe9c2b7e808027ca071e3e6d584
parentd972fbb3d2aca20a636c334c4f0e81e27419dc7d (diff)
downloadpcre2-190e98cb9ae6436773aa06df829eb14297cf274c.tar.gz
Make scripts Solaris-compatible.
git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@115 6239d852-aaf2-0410-a92c-79f79f948069
-rwxr-xr-xRunTest4
-rwxr-xr-xmaint/ManyConfigTests6
2 files changed, 7 insertions, 3 deletions
diff --git a/RunTest b/RunTest
index 32d218b..8419b02 100755
--- a/RunTest
+++ b/RunTest
@@ -121,8 +121,10 @@ fi
# $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"
diff --git a/maint/ManyConfigTests b/maint/ManyConfigTests
index 6192e36..a1dba03 100755
--- a/maint/ManyConfigTests
+++ b/maint/ManyConfigTests
@@ -80,9 +80,11 @@ fi
# 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`