and added files
[bcm963xx.git] / userapps / opensource / libosip2 / src / test / tst
diff --git a/userapps/opensource/libosip2/src/test/tst b/userapps/opensource/libosip2/src/test/tst
new file mode 100755 (executable)
index 0000000..44f1293
--- /dev/null
@@ -0,0 +1,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
+   ./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
+#    ./torture_test conf/torture_msgs2 $i $2 $3
+#set +x
+#    i=`expr $i + 1`
+#done
+
+