diff options
author | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2013-05-01 16:00:37 +0000 |
---|---|---|
committer | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2013-05-01 16:00:37 +0000 |
commit | ff3c0c95487b638b28963248d110a531d7dc7872 (patch) | |
tree | d0ce5754375a13f85bf57e4d76f4b3c107baa028 | |
parent | b0944e58cd54455e3661cdb8248425fb78266e6e (diff) | |
download | pcre-ff3c0c95487b638b28963248d110a531d7dc7872.tar.gz |
Add a count to show progress, suppress compiler optimization to save time.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1317 2f5784b3-3f2a-0410-8824-cb99058d5e15
-rwxr-xr-x | maint/ManyConfigTests | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/maint/ManyConfigTests b/maint/ManyConfigTests index 8ad3681..63e937f 100755 --- a/maint/ManyConfigTests +++ b/maint/ManyConfigTests @@ -23,6 +23,11 @@ if [ "$1" = "-v" ] ; then verbose=1; fi tmp=/tmp/pcretesting +# Don't bother with compiler optimization; it just slows down compilation a lot +# (and these tests themselves are quick). + +CFLAGS="-g -O0" + # This function runs a single test with the set of configuration options that # are in $opts. The source directory must be set in srcdir. @@ -30,15 +35,18 @@ tmp=/tmp/pcretesting function runtest() { rm -f *_unittest + testcount=`expr $testcount + 1` if [ "$opts" = "" ] ; then - echo "Configuring with: default settings" + echo "[$testcount/$testtotal] Configuring with: default settings" else - echo "Configuring with:" + echo "[$testcount/$testtotal] Configuring with:" echo " $opts" fi - $srcdir/configure $opts >/dev/null 2>teststderr + CFLAGS="$CFLAGS" CXXFLAGS="$CFLAGS" \ + $srcdir/configure $opts >/dev/null 2>teststderr + if [ $? -ne 0 ]; then echo " " echo "**** Error while configuring ****" @@ -141,6 +149,12 @@ valgrind= cvalgrind= withvalgrind= +# Update the total count whenever a new test is added; it is used to show +# progess as each test is run. + +testtotal=41 +testcount=0 + echo "Tests in the current directory" srcdir=. for opts in \ |