[Pcre-svn] [248] code/trunk/maint/ManyConfigTests: Add optio…

Inizio della pagina
Delete this message
Autore: Subversion repository
Data:  
To: pcre-svn
Oggetto: [Pcre-svn] [248] code/trunk/maint/ManyConfigTests: Add option for skipping the sanitize-address test.
Revision: 248
          http://www.exim.org/viewvc/pcre2?view=rev&revision=248
Author:   ph10
Date:     2015-04-15 17:12:51 +0100 (Wed, 15 Apr 2015)


Log Message:
-----------
Add option for skipping the sanitize-address test.

Modified Paths:
--------------
    code/trunk/maint/ManyConfigTests


Modified: code/trunk/maint/ManyConfigTests
===================================================================
--- code/trunk/maint/ManyConfigTests    2015-04-13 17:29:05 UTC (rev 247)
+++ code/trunk/maint/ManyConfigTests    2015-04-15 16:12:51 UTC (rev 248)
@@ -10,6 +10,7 @@
 # tests, in order to run those that are giving errors. The following options
 # do this:
 #
+# -noasan      skip the test that uses -fsanitize=address
 # -nojit       skip JIT tests
 # -nomain      skip the main set of tests
 # -notmp       skip the test in a temporary directory
@@ -22,6 +23,7 @@
 # newline recognition because they don't work. I am hoping to reduce this as
 # much as possible in due course.


+useasan=1
usejit=1
usemain=1
usetmp=1
@@ -30,6 +32,7 @@

 while [ $# -gt 0 ] ; do
   case $1 in
+    -noasan)       useasan=0;;
     -nojit)        usejit=0;;
     -nomain)       usemain=0;;
     -notmp)        usetmp=0;;
@@ -183,7 +186,8 @@


 testtotal=`expr 20 \* $usemain + \
   1 \* $usetmp + \
-  2 \* $ISGCC \* $usemain + \
+  1 \* $ISGCC \* $usemain + \
+  1 \* $ISGCC \* $usemain \* $useasan + \
   13 \* $usejit + \
   \( 3 + 2 \* $usejit \) \* $usevalgrind`
 testcount=0
@@ -221,11 +225,13 @@
   echo "CFLAGS=$CFLAGS"
   opts="--disable-shared $enable_jit --enable-pcre2-16 --enable-pcre2-32"
   runtest
-  echo "---------- Maximally configured test with -fsanitize=address ----------"
-  CFLAGS="$OFLAGS $SAVECFLAGS -fsanitize=address"
-  echo "CFLAGS=$CFLAGS"
-  opts="--disable-shared $enable_jit --disable-stack-for-recursion --enable-pcre2-16 --enable-pcre2-32"
-  runtest
+  if [ $useasan -ne 0 ]; then
+    echo "---------- Maximally configured test with -fsanitize=address ----------"
+    CFLAGS="$OFLAGS $SAVECFLAGS -fsanitize=address"
+    echo "CFLAGS=$CFLAGS"
+    opts="--disable-shared $enable_jit --disable-stack-for-recursion --enable-pcre2-16 --enable-pcre2-32"
+    runtest
+  fi
   CFLAGS="$OFLAGS $SAVECFLAGS"
 fi