- Timestamp:
- Jun 20, 2008 12:25:55 AM (16 years ago)
- Location:
- pjproject/trunk/pjsip-apps/src/test-pjsua
- Files:
-
- 11 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/test-pjsua/README.TXT
r2009 r2033 5 5 0. What is this 6 6 --------------- 7 This is the automated testing scripts for pjsua. It can do many things (just don't ask it to write good documentation :) ). 7 This is the automated testing scripts for pjsua. It can do many things (just don't ask 8 it to write good documentation :) ). 8 9 9 10 … … 14 15 - pjsua application, built and placed in pjsip-apps/bin directory 15 16 - the pjsua must be built with: 16 - TLS enabled 17 - SRTP enabled 17 - SRTP enabled (the default) 18 18 19 19 … … 26 26 $ python run.py MODULE CONFIG 27 27 28 The run.py is the main entry for the test. It imports the various inc_xxx.py files, and it will load the MODULE. The MODULE contains specific test flows, and we have couple of them: 29 - mod_run.py: this module implements a simple test which just run pjsua with the configuration from CONFIG file and checks if pjsua can start properly. 30 - mod_call.py: this module implements call testing where it spawns two pjsua instances each with configurations as specified in CONFIG file, makes one pjsua call the other, and checks if the call can be established. 28 The run.py is the main entry for the test. It imports the various inc_xxx.py files, and 29 it will load the MODULE. The MODULE contains specific test flows, and we have few of 30 them: 31 32 - mod_run.py: 33 a simple test which just run pjsua with the configuration from CONFIG file 34 and checks if pjsua can start properly. 35 36 - mod_call.py: 37 call testing where it spawns two pjsua instances each with configurations as 38 specified in CONFIG file, makes one pjsua call the other, and checks if the call 39 can be established. 40 41 - mod_pres.py: 42 presence testing 43 44 - mod_sendto.py: 45 Simple UAC to send arbitrary SIP message 46 47 - mod_media_playrec.py: 48 Media testing 31 49 32 50 Example: 33 51 $ python run.py mod_run.py scripts-run/100_simple.py 34 52 $ python run.py mod_call.py scripts-call/100_simple.py 53 54 -
pjproject/trunk/pjsip-apps/src/test-pjsua/inc_cfg.py
r2029 r2033 87 87 88 88 89 ################################### 90 # TestError exception 91 class TestError: 92 desc = "" 93 def __init__(self, desc): 94 self.desc = desc 89 95 96 -
pjproject/trunk/pjsip-apps/src/test-pjsua/run.py
r2029 r2033 9 9 10 10 import inc_const as const 11 from inc_cfg import * 11 12 12 13 # Get the pjsua executable name … … 42 43 43 44 G_EXE = G_EXE.rstrip("\n\r \t") 44 45 ###################################46 # TestError exception47 class TestError:48 desc = ""49 def __init__(self, desc):50 self.desc = desc51 45 52 46 ################################### -
pjproject/trunk/pjsip-apps/src/test-pjsua/runall.py
r2028 r2033 13 13 excluded_tests = [ "svn", 14 14 "pyc", 15 "scripts-call/150_srtp_1_2",16 "scripts-call/150_srtp_2_1" ,17 "scripts-call/300_ice_1_1"]15 #"scripts-call/150_srtp_1_2", 16 "scripts-call/150_srtp_2_1" 17 ] 18 18 19 19 # Add basic tests … … 28 28 for f in os.listdir("scripts-pres"): 29 29 tests.append("mod_pres.py scripts-pres/" + f) 30 31 # Add mod_sendto tests 32 for f in os.listdir("scripts-sendto"): 33 tests.append("mod_sendto.py scripts-sendto/" + f) 30 34 31 35 # Filter-out excluded tests -
pjproject/trunk/pjsip-apps/src/test-pjsua/scripts-media-playrec
-
Property
svn:ignore
set to
*.pyc
-
Property
svn:ignore
set to
Note: See TracChangeset
for help on using the changeset viewer.