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

 1 mike  1.1 
 2           
 3           # test script to run server from valgrind and apply all unit-tests to it
 4           BINDIR=$1
 5           
 6           if [ "$BINDIR" = "" ] ; then
 7               echo 'please type "make memcheck_srv" to run this script'
 8               exit 1
 9           fi
10           
11           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 &
12           sleep 3
13           $BINDIR/unittest -a skipServer=true || exit 1
14           sleep 2
15           $BINDIR/omiserver -s
16           sleep 5
17           cat /tmp/out.unittest
18           grep 'ERROR SUMMARY: [1-9]' /tmp/out.unittest && echo "FAILED" && exit 1
19           
20           exit 0

ViewCVS 0.9.2