summaryrefslogtreecommitdiff
path: root/maint
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2011-12-29 18:27:07 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2011-12-29 18:27:07 +0000
commitde13f2f4cb0cb6fa969d0dbc352004fd0bc0078e (patch)
tree784bb52dfa18ca9fce01985a3b7925b844a9a41d /maint
parent157fb64cb621781dd8b555a524f33a44fbc82985 (diff)
downloadpcre-de13f2f4cb0cb6fa969d0dbc352004fd0bc0078e.tar.gz
Add -C newline to pcretest; update ManyConfigTests to use new -C features; add
some 16-bit tests with link sizes 3 and 4. git-svn-id: svn://vcs.exim.org/pcre/code/trunk@838 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'maint')
-rwxr-xr-xmaint/ManyConfigTests19
1 files changed, 11 insertions, 8 deletions
diff --git a/maint/ManyConfigTests b/maint/ManyConfigTests
index 7bb6a01..007dbb6 100755
--- a/maint/ManyConfigTests
+++ b/maint/ManyConfigTests
@@ -64,10 +64,11 @@ function runtest()
./pcretest -C
fi
- conf=`./pcretest -C`
- nl=`expr match "$conf" ".*Newline sequence is \([A-Z]*\)"`
- jit=`expr match "$conf" ".*[^o] Just-in-time"`
- utf8=`expr match "$conf" ".*[^o] UTF-8 support"`
+ nl=`./pcretest -C newline`
+ ./pcretest -C jit >/dev/null
+ jit=$?
+ ./pcretest -C utf >/dev/null
+ utf=$?
if [ "$nl" = "LF" -o "$nl" = "ANY" ]; then
echo "Running C library tests $withvalgrind"
@@ -96,7 +97,7 @@ function runtest()
echo "Skipping pcregrep tests: newline is $nl"
fi
- if [ "$jit" -gt 0 -a $utf8 -gt 0 ]; then
+ if [ "$jit" -gt 0 -a $utf -gt 0 ]; then
echo "Running JIT regression tests $withvalgrind"
$cvalgrind $srcdir/pcre_jit_test >teststdout 2>teststderr
if [ $? -ne 0 ]; then
@@ -107,7 +108,7 @@ function runtest()
exit 1
fi
else
- echo "Skipping JIT regression tests: JIT or UTF-8 not enabled"
+ echo "Skipping JIT regression tests: JIT or UTF not enabled"
fi
if [ "$nl" = "LF" -o "$nl" = "ANY" ]; then
@@ -170,7 +171,9 @@ for opts in \
"--enable-pcre16 --enable-jit --disable-pcre8 --disable-shared" \
"--enable-pcre16 --enable-jit --disable-pcre8 --enable-utf --disable-shared" \
"--enable-pcre16 --disable-stack-for-recursion --disable-shared" \
- "--enable-pcre16 --enable-unicode-properties --disable-stack-for-recursion --disable-shared"
+ "--enable-pcre16 --enable-unicode-properties --disable-stack-for-recursion --disable-shared" \
+ "--enable-pcre16 --enable-jit --enable-unicode-properties --with-link-size=3 --disable-shared" \
+ "--enable-pcre16 --enable-jit --enable-unicode-properties --with-link-size=4 --disable-shared"
do
runtest
done
@@ -186,7 +189,7 @@ for opts in \
"--enable-unicode-properties --disable-stack-for-recursion --disable-shared" \
"--enable-unicode-properties --with-link-size=3 --disable-shared" \
"--enable-jit --enable-unicode-properties --disable-shared" \
- "--enable-pcre16 --enable-jit --enable-unicode-properties --disable-shared"
+ "--enable-pcre16 --enable-jit --enable-unicode-properties --disable-shared"
do
runtest
done