diff options
author | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2011-10-10 17:03:58 +0000 |
---|---|---|
committer | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2011-10-10 17:03:58 +0000 |
commit | 3b2d2d27089312ceab6a9621793dbc6b5c6bb6a9 (patch) | |
tree | 14bdf3844105ce56cb935964c9ab69bc71c9f388 /maint | |
parent | e01bf91a8ee4675f26d3e5eccfc5dba146d79fab (diff) | |
download | pcre-3b2d2d27089312ceab6a9621793dbc6b5c6bb6a9.tar.gz |
Update the config test script to run some tests under valgrind.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@731 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'maint')
-rwxr-xr-x | maint/ManyConfigTests | 32 |
1 files changed, 23 insertions, 9 deletions
diff --git a/maint/ManyConfigTests b/maint/ManyConfigTests index a712ecb..fc5e4e8 100755 --- a/maint/ManyConfigTests +++ b/maint/ManyConfigTests @@ -67,11 +67,11 @@ function runtest() 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"` + utf8=`expr match "$conf" ".*[^o] UTF-8 support"` if [ "$nl" = "LF" -o "$nl" = "ANY" ]; then - echo "Running C library tests" - $srcdir/RunTest >teststdout + echo "Running C library tests $withvalgrind" + $srcdir/RunTest $valgrind >teststdout if [ $? -ne 0 ]; then echo " " echo "**** Test failed ****" @@ -83,8 +83,8 @@ function runtest() fi if [ "$nl" = "LF" ]; then - echo "Running pcregrep tests" - $srcdir/RunGrepTest >teststdout 2>teststderr + echo "Running pcregrep tests $withvalgrind" + $srcdir/RunGrepTest $valgrind >teststdout 2>teststderr if [ $? -ne 0 ]; then echo " " echo "**** Test failed ****" @@ -97,8 +97,8 @@ function runtest() fi if [ "$jit" -gt 0 -a $utf8 -gt 0 ]; then - echo "Running JIT regression tests" - $srcdir/pcre_jit_test >teststdout 2>teststderr + echo "Running JIT regression tests $withvalgrind" + $cvalgrind $srcdir/pcre_jit_test >teststdout 2>teststderr if [ $? -ne 0 ]; then echo " " echo "**** Test failed ****" @@ -116,8 +116,8 @@ function runtest() pcre_scanner_unittest \ pcre_stringpiece_unittest do - echo "Running $utest" - $utest >teststdout + echo "Running $utest $withvalgrind" + $cvalgrind $utest >teststdout if [ $? -ne 0 ]; then echo " " echo "**** Test failed ****" @@ -164,6 +164,20 @@ do runtest done +# Now re-run some of the tests under valgrind. + +echo "Tests in the current directory using valgrind" +valgrind=valgrind +cvalgrind="valgrind -q --smc-check=all" +withvalgrind="with valgrind" + +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" +do + runtest +done # Clean up the distribution and then do at least one build and test in a # directory other than the source directory. It doesn't work unless the |