(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.2, Mon Apr 20 17:10:35 2015 UTC (9 years, 2 months ago) by krisbash
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
Remove 1.0.2



# 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