"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/test/tst" between
libosip2-5.1.0.tar.gz and libosip2-5.1.1.tar.gz

About: The GNU oSIP library is an implementation of SIP (RFC3261).

tst  (libosip2-5.1.0):tst  (libosip2-5.1.1)
skipping to change at line 13 skipping to change at line 13
# This is a short-cut to execute tests on the parser. # This is a short-cut to execute tests on the parser.
# ./conf/torture_msgs{,2} contain various kind of messages. # ./conf/torture_msgs{,2} contain various kind of messages.
#echo "==" #echo "=="
#echo "== Testing the parser contained in libosip." #echo "== Testing the parser contained in libosip."
#echo "== You can use the verbose mode (-v) to see the full message." #echo "== You can use the verbose mode (-v) to see the full message."
#echo "==" #echo "=="
ok=0 ok=0
nok=0 nok=0
vok=0
vnok=0
total=0 total=0
i=0 i=0
while [ $i -lt 88 ] while [ -e $1/sip$i ]
do do
filename=$1/sip$i filename=$1/sip$i
#mpatrol -C -S -L -d --list -p --use-debug ./torture_test $1/sip$i 0 $2
./torture_test $filename $2 ./torture_test $filename $2
code=$? code=$?
if [ "$code" -eq 0 ]; then if [ "$code" -eq 0 ]; then
ok=`expr $ok + 1`; ok=`expr $ok + 1`;
else else
nok=`expr $nok + 1` nok=`expr $nok + 1`
fi; fi;
i=`expr $i + 1`
total=`expr $total + 1` if type "valgrind" > /dev/null; then
valgrind --tool=memcheck --leak-check=yes --leak-resolution=high --show-
reachable=yes -q --error-exitcode=1 ./torture_test $filename $2 2>&1
code=$?
if [ "$code" -eq 0 ]; then
vok=`expr $vok + 1`;
else
vnok=`expr $vnok + 1`
fi;
fi
i=`expr $i + 1`
total=`expr $total + 1`
done done
i=0 i=0
while [ $i -lt 13 ] while [ -e $1/sip-malformed$i ]
do do
filename=$1/sip-malformed$i filename=$1/sip-malformed$i
# #mpatrol -C -S -L -d --list -p --use-debug ./torture_test $1/sip-malform ed$i 0 $2
./torture_test $filename $2 ./torture_test $filename $2
code=$?
if [ "$code" -eq 0 ]; then code=$?
ok=`expr $ok + 1`; if [ "$code" -eq 0 ]; then
else ok=`expr $ok + 1`;
nok=`expr $nok + 1` else
fi; nok=`expr $nok + 1`
i=`expr $i + 1` fi;
total=`expr $total + 1`
if type "valgrind" > /dev/null; then
valgrind --tool=memcheck --leak-check=yes --leak-resolution=high --show-
reachable=yes -q --error-exitcode=1 ./torture_test $filename $2 2>&1
code=$?
if [ "$code" -eq 0 ]; then
vok=`expr $vok + 1`;
else
vnok=`expr $vnok + 1`
fi;
fi
i=`expr $i + 1`
total=`expr $total + 1`
done done
# #
echo "unit testing total : $total" echo "unit testing total : $total"
echo "unit testing passed: $ok" echo "unit testing passed: $ok"
echo "unit testing failed: $nok" echo "unit testing failed: $nok"
if [ ! "$vnok" -eq 0 ]; then
echo "valgrind unit testing passed: $vok"
echo "valgrind unit testing failed: $vnok (valgrind + standard errors comb
ined)"
fi;
 End of changes. 9 change blocks. 
19 lines changed or deleted 47 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)