diff --git a/tests/scripts/all.sh b/tests/scripts/all.sh index 8dba3ecab..1e11d78c8 100755 --- a/tests/scripts/all.sh +++ b/tests/scripts/all.sh @@ -21,9 +21,12 @@ MEMORY=0 while [ $# -gt 0 ]; do case "$1" in - -m|--memory) + -m1) MEMORY=1 ;; + -m2) + MEMORY=2 + ;; *) echo "Unknown argument: '$1'" >&2 echo "Use the source, Luke!" >&2 @@ -83,16 +86,17 @@ tests/scripts/test-ref-configs.pl # Step 3: using valgrind's memcheck -if [ "$MEMORY" -gt 0 ] && which valgrind >/dev/null; then - msg "Release build, full tests with valgrind's memcheck" - cleanup - # optimized build to compensate a bit for valgrind slowdown - cmake -D CMAKE_BUILD_TYPE:String=Release . - make - make memcheck +msg "Release build, test suites with valgrind's memcheck" +cleanup +# optimized build to compensate a bit for valgrind slowdown +cmake -D CMAKE_BUILD_TYPE:String=Release . +make +make memcheck + +if [ "$MEMORY" -gt 0 ]; then cd tests - ./compat.sh --memcheck ./ssl-opt.sh --memcheck + [ "$MEMORY" -gt 1 ] && ./compat.sh --memcheck cd .. # no test-ref-configs: doesn't have a memcheck option (yet?) fi