tst_sdp
来自「最新osip源代码」· 代码 · 共 46 行
TXT
46 行
#!/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 SDP parser and the SDP negociator in libosip."#echo "== You can use the verbose mode (-v) to see the full message."#echo "=="ok=0nok=0i=0while [ $i -lt 16 ]do ./torture_sdp_test $1/sdp$i 0 $2 code=$? if [ "$code" -eq 0 ]; then echo "checking sdp$i : passed"; ok=`expr $ok + 1`; elif [ "$code" -eq 1 ]; then echo "checking sdp$i : bad arguments"; ok=`expr $nok + 1`; elif [ "$code" -eq 2 ]; then echo "checking sdp$i : error while calling sdp_message_parse()"; ok=`expr $nok + 1`; elif [ "$code" -eq 3 ]; then echo "checking sdp$i : error while calling sdp_message_to_str()"; nok=`expr $nok + 1` elif [ "$code" -eq 4 ]; then echo "checking sdp$i : negotiation failed"; nok=`expr $nok + 1` else echo "checking sdp$i : undefined error ($code)"; nok=`expr $nok + 1` fi; i=`expr $i + 1`doneecho "checked well formed SDP messages: $i"echo "errors : $nok"
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?