From de13f2f4cb0cb6fa969d0dbc352004fd0bc0078e Mon Sep 17 00:00:00 2001 From: ph10 Date: Thu, 29 Dec 2011 18:27:07 +0000 Subject: 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 --- maint/ManyConfigTests | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'maint') 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 -- cgit v1.2.1