File: tst

package info (click to toggle)
libosip 0.9.7-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,852 kB
  • ctags: 1,812
  • sloc: ansic: 20,266; sh: 9,218; makefile: 215
file content (36 lines) | stat: -rwxr-xr-x 718 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/sh

# This is a short-cut to execute tests on the parser.
# ./conf/torture_msgs{,2} contain various kind of messages.

echo "=="
echo "== Testing the parser contained in libosip."
echo "== You can use the verbose mode (-v) to see the full message."
echo "=="

i=0
while [ $i -lt 93 ]
do
set -x
#  mpatrol -C -S -L -j -d --list -p -t --use-debug ./test/torture_test $1 $i $2 $3
   ./test/torture_test $1 $i $2 $3
set +x
    i=`expr $i + 1`
done

#echo "=="
#echo "== Test for \\n (CR) and \\r (LF) instead of \\r\\n (CRLF)"
#echo "== Data files from ./conf/torture_msgs"
#echo "=="


#i=0
#while [ $i -lt 93 ]
#do
#set -x
#    ./test/torture_test conf/torture_msgs2 $i $2 $3
#set +x
#    i=`expr $i + 1`
#done