(file) Return to run_valgrind_test.sh CVS log (file) (dir) Up to [OMI] / omi / unittest

File: [OMI] / omi / unittest / Attic / run_valgrind_test.sh (download) / (as text)
Revision: 1.1.1.1 (vendor branch), Wed May 30 21:47:39 2012 UTC (12 years, 1 month ago) by mike
Branch: TOG
CVS Tags: OMI_1_0_2_Branch, OMI_1_0_2, OMI_1_0_1_PRE, OMI_1_0_1, OMI_1_0_0
Changes since 1.1: +0 -0 lines
Initial Import



# test script to run server from valgrind and apply all unit-tests to it
BINDIR=$1

if [ "$BINDIR" = "" ] ; then
    echo 'please type "make memcheck_srv" to run this script'
    exit 1
fi

valgrind --tool=memcheck --leak-check=full --error-exitcode=1 --gen-suppressions=all --track-fds=yes --suppressions=memcheck.suppress $BINDIR/omiserver --ignoreAuthentication --livetime 300 2> /tmp/out.unittest &
sleep 3
$BINDIR/unittest -a skipServer=true || exit 1
sleep 2
$BINDIR/omiserver -s
sleep 5
cat /tmp/out.unittest
grep 'ERROR SUMMARY: [1-9]' /tmp/out.unittest && echo "FAILED" && exit 1

exit 0

ViewCVS 0.9.2