Test memory a bit more often in all.sh

This commit is contained in:
Manuel Pégourié-Gonnard 2014-05-09 13:46:59 +02:00 committed by Paul Bakker
parent d66f900ba2
commit 4a9dc2a474

View file

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