summaryrefslogtreecommitdiff
path: root/RunTest
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2011-09-26 16:31:42 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2011-09-26 16:31:42 +0000
commitc119bc032f65e31c1d18aba44a1461886f258686 (patch)
tree713934c4030255a3ed05757860036223fe05cb58 /RunTest
parent82f54d224bdd237643e7657775b10586b3deffe4 (diff)
downloadpcre-c119bc032f65e31c1d18aba44a1461886f258686.tar.gz
Allow for CRLF terminations of pcretest output in RunTest.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@712 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'RunTest')
-rwxr-xr-xRunTest15
1 files changed, 9 insertions, 6 deletions
diff --git a/RunTest b/RunTest
index e5c33dc..3a5a9db 100755
--- a/RunTest
+++ b/RunTest
@@ -88,12 +88,15 @@ else
exit 1
fi
-# Find which optional facilities are available
+# Find which optional facilities are available. In some Windows environments
+# the output of pcretest -C has CRLF at the end of each line, but the shell
+# strips only linefeeds from the output of a `backquoted` command. Hence the
+# alternative patterns.
case `$sim ./pcretest -C | $sim ./pcregrep 'Internal link size'` in
- *2) link_size=2;;
- *3) link_size=3;;
- *4) link_size=4;;
+ *2|*2[[:space:]]) link_size=2;;
+ *3|*3[[:space:]]) link_size=3;;
+ *4|*4[[:space:]]) link_size=4;;
*) echo "Failed to find internal link size"; exit 1;;
esac
@@ -294,8 +297,8 @@ if [ $do3 = yes ] ; then
fi
done
else
- echo "Cannot test locale-specific features - neither the 'fr_FR' nor the"
- echo "'french' locale exists, or the \"locale\" command is not available"
+ echo "Cannot test locale-specific features - none of the 'fr_FR', 'fr' or"
+ echo "'french' locales exist, or the \"locale\" command is not available"
echo "to check for them."
echo " "
fi