snapraid/maketest.sh

64 lines
742 B
Bash
Raw Normal View History

#!/bin/sh
#
# Run all the Coverage and Valgrind tests
#
2017-10-27 22:43:56 +02:00
# Source directory
SOURCE=`pwd`
# Dest directory
DEST=`mktemp -d`
make distclean
2017-10-27 22:43:56 +02:00
cd $DEST
# Coverage
2017-10-27 22:43:56 +02:00
if ! $SOURCE/configure --enable-coverage --enable-sde; then
exit 1
fi
if ! make lcov_reset check lcov_capture lcov_html; then
exit 1
fi
2017-11-06 22:16:21 +01:00
cp -a cov $SOURCE/cov
if ! make distclean; then
exit 1
fi
# Valgrind
2017-10-27 22:43:56 +02:00
if ! $SOURCE/configure --enable-valgrind; then
exit 1
fi
if ! make check distclean; then
exit 1
fi
# Helgrind
2017-10-27 22:43:56 +02:00
if ! $SOURCE/configure --enable-helgrind; then
2015-10-30 22:32:49 +01:00
exit 1
fi
if ! make check distclean; then
exit 1
fi
# Drd
2017-10-27 22:43:56 +02:00
if ! $SOURCE/configure --enable-drd; then
2015-10-30 22:32:49 +01:00
exit 1
fi
if ! make check distclean; then
exit 1
fi
2017-10-27 22:43:56 +02:00
cd $SOURCE
if ! ./configure; then
exit 1
fi