diff options
author | Benny Prijono <bennylp@teluu.com> | 2008-06-15 19:43:43 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2008-06-15 19:43:43 +0000 |
commit | 52147c5315e8922dd74eccc96aef9814c507a5ce (patch) | |
tree | 66899eb44c84f61d03e423f7589a6f2a3b7b0240 /pjsip-apps/src/test-pjsua/scripts-run | |
parent | 5e535ba2d77e5fa029901d60ecfabadac0f35d61 (diff) |
Added presence pjsua unit tests
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2025 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip-apps/src/test-pjsua/scripts-run')
-rw-r--r-- | pjsip-apps/src/test-pjsua/scripts-run/100_simple.py | 21 | ||||
-rw-r--r-- | pjsip-apps/src/test-pjsua/scripts-run/200_register.py | 20 |
2 files changed, 33 insertions, 8 deletions
diff --git a/pjsip-apps/src/test-pjsua/scripts-run/100_simple.py b/pjsip-apps/src/test-pjsua/scripts-run/100_simple.py index b0b96512..f1e13cfc 100644 --- a/pjsip-apps/src/test-pjsua/scripts-run/100_simple.py +++ b/pjsip-apps/src/test-pjsua/scripts-run/100_simple.py @@ -1,8 +1,13 @@ -# $Id:$
-#
-# Just about the simple pjsua command line parameter, which should
-# never fail in any circumstances
-import inc_cfg
-
-config = inc_cfg.Config(arg = "--null-audio --local-port 0 --rtp-port 0")
-
+# $Id:$ +# +# Just about the simple pjsua command line parameter, which should +# never fail in any circumstances +from inc_cfg import * + +test_param = TestParam( + "Basic run", + [ + InstanceParam("pjsua", "--null-audio --local-port 0 --rtp-port 0") + ] + ) + diff --git a/pjsip-apps/src/test-pjsua/scripts-run/200_register.py b/pjsip-apps/src/test-pjsua/scripts-run/200_register.py new file mode 100644 index 00000000..34f837c8 --- /dev/null +++ b/pjsip-apps/src/test-pjsua/scripts-run/200_register.py @@ -0,0 +1,20 @@ +# $Id:$ +# +from inc_cfg import * + +# Basic registration +test_param = TestParam( + "Basic registration", + [ + InstanceParam( "client", + "--null-audio"+ + " --id=<sip:test1@pjsip.org>"+ + " --registrar=sip:sip.pjsip.org" + + " --username=test1" + + " --password=test1" + + " --realm=*", + uri="sip:test1@pjsip.org", + have_reg=True), + ] + ) + |