| 1 |
|
| 2 |
To launch the complete test suite, try this: |
| 3 |
|
| 4 |
$> make check |
| 5 |
|
| 6 |
The above command test all SIP messages from the "res/torture_msgs" |
| 7 |
file and all SDP messages from the "res/torture_sdps" file. |
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
Available test programs are: |
| 14 |
|
| 15 |
* ./test/torture_test: test the SIP parser. |
| 16 |
* ./test/torture_sdp : test the SDP parser, its accessor API and the |
| 17 |
framework for negotiation. |
| 18 |
|
| 19 |
* ./test/turl : test the sip-urls parser. |
| 20 |
* ./test/tto : test some 'to' fields |
| 21 |
* ./test/tfrom : test some 'from' fields |
| 22 |
* ./test/tcontact : test some 'contact' fields |
| 23 |
* ./test/tvia : test some 'via' fields |
| 24 |
* ./test/tcallid : test some 'call-id' fields |
| 25 |
* ./test/tcontentt : test some 'content-type' fields |
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
How to use the test programs: |
| 33 |
|
| 34 |
--> the SIP parser test messages found in a file. |
| 35 |
|
| 36 |
Some SIP Message samples are provided in res/torture_msgs |
| 37 |
res/torture_msgs2 |
| 38 |
|
| 39 |
./test/torture_test res/torture_msgs 0 |
| 40 |
./test/torture_test res/torture_msgs 1 -v |
| 41 |
./test/torture_test res/torture_msgs 3 -v -c |
| 42 |
|
| 43 |
|
| 44 |
available options: |
| 45 |
|
| 46 |
-v : print more info about messages. |
| 47 |
-c : test the "osip_message_clone" method. |
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
--> the SIP url parser: |
| 56 |
|
| 57 |
./test/turl res/urls.txt |
| 58 |
|
| 59 |
|
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
|
| 64 |
|
| 65 |
|
| 66 |
--> the SIP headers parser: |
| 67 |
|
| 68 |
./test/tcallid conf/callids.txt |
| 69 |
./test/tfrom conf/froms.txt |
| 70 |
./test/tto conf/tos.txt |
| 71 |
./test/tvia conf/vias.txt |
| 72 |
./test/tcontact conf/contacts.txt |
| 73 |
|
| 74 |
|
| 75 |
|
| 76 |
|
| 77 |
|
| 78 |
|
| 79 |
--> the SDP parser: |
| 80 |
|
| 81 |
Some SDP Message samples are provided in res/torture_sdps |
| 82 |
|
| 83 |
./test/torture_sdp res/torture_sdps 3 |
| 84 |
./test/torture_sdp res/torture_sdps 3 -v |