Removing deprecated functions from readthedocs
[ric-plt/sdl.git] / run-tests.sh.in
1 #!/bin/sh
2
3 export TOP_SRCDIR="@top_srcdir@"
4
5 TESTRUNNER="./testrunner"
6 if test "$USE_VALGRIND" != "false" ; then
7     VALGRIND="$(which valgrind 2> /dev/null)"
8     if test $? != 0 ; then
9         unset VALGRIND
10         echo "valgrind not found, valgrind disabled"
11     else
12         export VALGRIND
13         echo "valgrind enabled"
14         export GTEST_DEATH_TEST_USE_FORK=1
15         if test -z "$VALGRIND_SUPPRESSIONS" ; then
16             export VALGRIND_SUPPRESSIONS="${TOP_SRCDIR}/tst/valgrind-suppressions.conf"
17         fi
18     fi
19 else
20     unset VALGRIND
21     echo "valgrind disabled"
22 fi
23 if test -z "$GTEST_DEATH_TEST_STYLE" ; then
24     export GTEST_DEATH_TEST_STYLE="threadsafe"
25 fi
26 exec "$TESTRUNNER"