diff options
author | ph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069> | 2016-01-30 16:00:55 +0000 |
---|---|---|
committer | ph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069> | 2016-01-30 16:00:55 +0000 |
commit | a037309efc805f058becbbee578674b91775a8c3 (patch) | |
tree | cc4a6ec76c9541d44fd3812fe0312d821a4223ec /maint | |
parent | 1110147527743413f5a007048790ebe12ed7c9fd (diff) | |
download | pcre2-a037309efc805f058becbbee578674b91775a8c3.tar.gz |
Update maintenance script (easier test set selection).
git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@481 6239d852-aaf2-0410-a92c-79f79f948069
Diffstat (limited to 'maint')
-rwxr-xr-x | maint/ManyConfigTests | 42 |
1 files changed, 38 insertions, 4 deletions
diff --git a/maint/ManyConfigTests b/maint/ManyConfigTests index 42a94da..8ec940c 100755 --- a/maint/ManyConfigTests +++ b/maint/ManyConfigTests @@ -16,10 +16,14 @@ # -nojit skip all JIT tests # -nojitmain skip non-valgrind JIT tests # -nojitvalgrind skip JIT tests with valgrind -# -nomain skip the main set of tests -# -nomainvalgrind skip the non-JIT valgrind tests +# -nomain skip all the main (non-JIT) set of tests +# -nomainvalgrind skip the main (non-JIT) valgrind tests # -notmp skip the test in a temporary directory -# -novalgrind skip the valgrind tests +# -novalgrind skip all the valgrind tests + +# Alternatively, if any of those names are given with '+' instead of '-no', +# only those groups named with '+' are run (e.g. +jit). If -dummy is given, +# no tests are actually run - this provides a means of testing the selectors. # The -v option causes a call to 'pcre2test -C' to happen for each # configuration. @@ -33,10 +37,29 @@ usemain=1 usemainvalgrind=1 usetmp=1 usevalgrind=1 + +dummy=0 +seenplus=0 verbose=0 while [ $# -gt 0 ] ; do case $1 in + +*) if [ $seenplus -eq 0 ]; then + useasan=0 + useusan=0 + usedebug=0 + usejit=0 + usejitvalgrind=0 + usemain=0 + usemainvalgrind=0 + usetmp=0 + seenplus=1 + fi;; + esac + + case $1 in + -dummy) dummy=1;; + -v) verbose=1;; -noasan) useasan=0;; -nousan) useusan=0;; -nodebug) usedebug=0;; @@ -47,7 +70,16 @@ while [ $# -gt 0 ] ; do -nomainvalgrind) usemainvalgrind=0;; -notmp) usetmp=0;; -novalgrind) usevalgrind=0;; - -v) verbose=1;; + +asan) useasan=1;; + +usan) useusan=1;; + +debug) usedebug=1;; + +jit) usejit=1; usejitvalgrind=1;; + +jitmain) usejit=1;; + +jitvalgrind) usejitvalgrind=1;; + +main) usemain=1; usemainvalgrind=1;; + +mainvalgrind) usemainvalgrind=1;; + +tmp) usetmp=1;; + +valgrind) usevalgrind=1;; *) echo "Unknown option '$1'"; exit 1;; esac shift @@ -114,6 +146,8 @@ runtest() echo " $opts" fi + if [ $dummy -eq 1 ]; then return; fi + CFLAGS="$CFLAGS" \ $srcdir/configure $opts >/dev/null 2>teststderrM if [ $? -ne 0 ]; then |