From 4a9dc2a474d25003bcc9664ffc0a4f8df9e5b772 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Fri, 9 May 2014 13:46:59 +0200 Subject: [PATCH] Test memory a bit more often in all.sh --- tests/scripts/all.sh | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) 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