Code

t/: Run all unit tests through valgrind.
[sysdb.git] / t / testwrapper.sh
1 #! /bin/bash
2 #
3 # SysDB -- t/testwrapper.sh
4 #
5 # A wrapper script for running tests.
7 set -e
9 MEMCHECK="valgrind --quiet --tool=memcheck --error-exitcode=1"
10 MEMCHECK="$MEMCHECK --trace-children=yes"
11 MEMCHECK="$MEMCHECK --leak-check=full"
13 case "$1" in
14         *unit/*)
15                 exec $MEMCHECK "$@"
16                 ;;
17         *)
18                 exec "$@"
19                 ;;
20 esac
22 # vim: set tw=78 sw=4 ts=4 noexpandtab :