diff options
author | Benny Prijono <bennylp@teluu.com> | 2008-12-22 18:54:58 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2008-12-22 18:54:58 +0000 |
commit | 0723dbc601c74330f792db67ad75f6d580c30d8b (patch) | |
tree | a10e1cc45bdeb80210168f2e26421ae0d7e7295d /tests/pjsua/scripts-call | |
parent | 341dea971f9d548cc922f5f3446d80130a1d57d9 (diff) |
Created top-level directory tests and moved test-pjsua there. This will be the placeholder for future developed tests
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2392 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'tests/pjsua/scripts-call')
-rw-r--r-- | tests/pjsua/scripts-call/100_simplecall.py | 12 | ||||
-rw-r--r-- | tests/pjsua/scripts-call/150_srtp_0_1.py | 11 | ||||
-rw-r--r-- | tests/pjsua/scripts-call/150_srtp_1_0.py | 11 | ||||
-rw-r--r-- | tests/pjsua/scripts-call/150_srtp_1_1.py | 11 | ||||
-rw-r--r-- | tests/pjsua/scripts-call/150_srtp_1_2.py | 11 | ||||
-rw-r--r-- | tests/pjsua/scripts-call/150_srtp_2_1.py | 12 | ||||
-rw-r--r-- | tests/pjsua/scripts-call/150_srtp_2_2.py | 11 | ||||
-rw-r--r-- | tests/pjsua/scripts-call/200_tcp.py | 12 | ||||
-rw-r--r-- | tests/pjsua/scripts-call/300_ice_0_1.py | 12 | ||||
-rw-r--r-- | tests/pjsua/scripts-call/300_ice_1_0.py | 12 | ||||
-rw-r--r-- | tests/pjsua/scripts-call/300_ice_1_1.py | 12 | ||||
-rw-r--r-- | tests/pjsua/scripts-call/301_ice_public_a.py | 22 | ||||
-rw-r--r-- | tests/pjsua/scripts-call/301_ice_public_b.py | 25 | ||||
-rw-r--r-- | tests/pjsua/scripts-call/305_ice_comp_1_2.py | 12 | ||||
-rw-r--r-- | tests/pjsua/scripts-call/305_ice_comp_2_1.py | 12 | ||||
-rw-r--r-- | tests/pjsua/scripts-call/350_prack_a.py | 12 | ||||
-rw-r--r-- | tests/pjsua/scripts-call/350_prack_b.py | 12 |
17 files changed, 222 insertions, 0 deletions
diff --git a/tests/pjsua/scripts-call/100_simplecall.py b/tests/pjsua/scripts-call/100_simplecall.py new file mode 100644 index 00000000..c6bfcb3f --- /dev/null +++ b/tests/pjsua/scripts-call/100_simplecall.py @@ -0,0 +1,12 @@ +# $Id$ +# +from inc_cfg import * + +# Simple call +test_param = TestParam( + "Basic call", + [ + InstanceParam("callee", "--null-audio --max-calls=1"), + InstanceParam("caller", "--null-audio --max-calls=1") + ] + ) diff --git a/tests/pjsua/scripts-call/150_srtp_0_1.py b/tests/pjsua/scripts-call/150_srtp_0_1.py new file mode 100644 index 00000000..92b0ff41 --- /dev/null +++ b/tests/pjsua/scripts-call/150_srtp_0_1.py @@ -0,0 +1,11 @@ +# $Id$ +# +from inc_cfg import * + +test_param= TestParam( + "Callee=no SRTP, caller=optional SRTP", + [ + InstanceParam("callee", "--null-audio --max-calls=1"), + InstanceParam("caller", "--null-audio --use-srtp=1 --srtp-secure=0 --max-calls=1") + ] + ) diff --git a/tests/pjsua/scripts-call/150_srtp_1_0.py b/tests/pjsua/scripts-call/150_srtp_1_0.py new file mode 100644 index 00000000..fa128b6c --- /dev/null +++ b/tests/pjsua/scripts-call/150_srtp_1_0.py @@ -0,0 +1,11 @@ +# $Id$ +# +from inc_cfg import * + +test_param = TestParam( + "Callee=optional SRTP, caller=no SRTP", + [ + InstanceParam("callee", "--null-audio --use-srtp=1 --srtp-secure=0 --max-calls=1"), + InstanceParam("caller", "--null-audio --max-calls=1") + ] + ) diff --git a/tests/pjsua/scripts-call/150_srtp_1_1.py b/tests/pjsua/scripts-call/150_srtp_1_1.py new file mode 100644 index 00000000..3b4446c7 --- /dev/null +++ b/tests/pjsua/scripts-call/150_srtp_1_1.py @@ -0,0 +1,11 @@ +# $Id$ +# +from inc_cfg import * + +test_param = TestParam( + "Callee=optional SRTP, caller=optional SRTP", + [ + InstanceParam("callee", "--null-audio --use-srtp=1 --srtp-secure=0 --max-calls=1"), + InstanceParam("caller", "--null-audio --use-srtp=1 --srtp-secure=0 --max-calls=1") + ] + ) diff --git a/tests/pjsua/scripts-call/150_srtp_1_2.py b/tests/pjsua/scripts-call/150_srtp_1_2.py new file mode 100644 index 00000000..03f58863 --- /dev/null +++ b/tests/pjsua/scripts-call/150_srtp_1_2.py @@ -0,0 +1,11 @@ +# $Id$ +# +from inc_cfg import * + +test_param = TestParam( + "Callee=optional SRTP, caller=mandatory SRTP", + [ + InstanceParam("callee", "--null-audio --use-srtp=1 --srtp-secure=0 --max-calls=1"), + InstanceParam("caller", "--null-audio --use-srtp=2 --srtp-secure=0 --max-calls=1") + ] + ) diff --git a/tests/pjsua/scripts-call/150_srtp_2_1.py b/tests/pjsua/scripts-call/150_srtp_2_1.py new file mode 100644 index 00000000..16341ebe --- /dev/null +++ b/tests/pjsua/scripts-call/150_srtp_2_1.py @@ -0,0 +1,12 @@ +# $Id$ +# +from inc_cfg import * + +# Simple call +test_param = TestParam( + "Callee=mandatory SRTP, caller=optional SRTP", + [ + InstanceParam("callee", "--null-audio --use-srtp=2 --srtp-secure=0 --max-calls=1"), + InstanceParam("caller", "--null-audio --use-srtp=1 --srtp-secure=0 --max-calls=1") + ] + ) diff --git a/tests/pjsua/scripts-call/150_srtp_2_2.py b/tests/pjsua/scripts-call/150_srtp_2_2.py new file mode 100644 index 00000000..9ec2ab69 --- /dev/null +++ b/tests/pjsua/scripts-call/150_srtp_2_2.py @@ -0,0 +1,11 @@ +# $Id$ +# +from inc_cfg import * + +test_param = TestParam( + "Callee=mandatory SRTP, caller=mandatory SRTP", + [ + InstanceParam("callee", "--null-audio --use-srtp=2 --srtp-secure=0 --max-calls=1"), + InstanceParam("caller", "--null-audio --use-srtp=2 --srtp-secure=0 --max-calls=1") + ] + ) diff --git a/tests/pjsua/scripts-call/200_tcp.py b/tests/pjsua/scripts-call/200_tcp.py new file mode 100644 index 00000000..3414f17c --- /dev/null +++ b/tests/pjsua/scripts-call/200_tcp.py @@ -0,0 +1,12 @@ +# $Id$ +# +from inc_cfg import * + +# TCP call +test_param = TestParam( + "TCP transport", + [ + InstanceParam("callee", "--null-audio --no-udp --max-calls=1", uri_param=";transport=tcp"), + InstanceParam("caller", "--null-audio --no-udp --max-calls=1") + ] + ) diff --git a/tests/pjsua/scripts-call/300_ice_0_1.py b/tests/pjsua/scripts-call/300_ice_0_1.py new file mode 100644 index 00000000..fb0b9def --- /dev/null +++ b/tests/pjsua/scripts-call/300_ice_0_1.py @@ -0,0 +1,12 @@ +# $Id$ +# +from inc_cfg import * + +# ICE mismatch +test_param = TestParam( + "Callee=no ICE, caller=use ICE", + [ + InstanceParam("callee", "--null-audio --max-calls=1"), + InstanceParam("caller", "--null-audio --use-ice --max-calls=1") + ] + ) diff --git a/tests/pjsua/scripts-call/300_ice_1_0.py b/tests/pjsua/scripts-call/300_ice_1_0.py new file mode 100644 index 00000000..ef800e7f --- /dev/null +++ b/tests/pjsua/scripts-call/300_ice_1_0.py @@ -0,0 +1,12 @@ +# $Id$ +# +from inc_cfg import * + +# ICE mismatch +test_param = TestParam( + "Callee=use ICE, caller=no ICE", + [ + InstanceParam("callee", "--null-audio --use-ice --max-calls=1"), + InstanceParam("caller", "--null-audio --max-calls=1") + ] + ) diff --git a/tests/pjsua/scripts-call/300_ice_1_1.py b/tests/pjsua/scripts-call/300_ice_1_1.py new file mode 100644 index 00000000..456aa46b --- /dev/null +++ b/tests/pjsua/scripts-call/300_ice_1_1.py @@ -0,0 +1,12 @@ +# $Id$ +# +from inc_cfg import * + +# ICE mismatch +test_param = TestParam( + "Callee=use ICE, caller=use ICE", + [ + InstanceParam("callee", "--null-audio --use-ice --max-calls=1", enable_buffer=True), + InstanceParam("caller", "--null-audio --use-ice --max-calls=1", enable_buffer=True) + ] + ) diff --git a/tests/pjsua/scripts-call/301_ice_public_a.py b/tests/pjsua/scripts-call/301_ice_public_a.py new file mode 100644 index 00000000..daa4c6cf --- /dev/null +++ b/tests/pjsua/scripts-call/301_ice_public_a.py @@ -0,0 +1,22 @@ +# $Id$ +# +from inc_cfg import * + +# Note: +# - need --dis-codec to make INVITE packet less than typical MTU +uas_args = "--null-audio --id=\"<sip:test1@pjsip.org>\" --registrar=sip:sip.pjsip.org --username=test1 --password=test1 --realm=pjsip.org --proxy=\"sip:sip.pjsip.org;lr\" --rtp-port 0 --stun-srv stun.pjsip.org --use-ice --use-compact-form --max-calls 1 --dis-codec=i --dis-codec=s --dis-codec=g" + +uac_args = "--null-audio --id=\"<sip:test2@pjsip.org>\" --registrar=sip:sip.pjsip.org --username=test2 --password=test2 --realm=pjsip.org --proxy=\"sip:sip.pjsip.org;lr\" --rtp-port 0 --stun-srv stun.pjsip.org --use-ice --use-compact-form --max-calls 1 --dis-codec=i --dis-codec=s --dis-codec=g" + +test_param = TestParam( + "ICE via public internet", + [ + InstanceParam( "callee", uas_args, + uri="<sip:test1@pjsip.org>", + have_reg=True, have_publish=False), + InstanceParam( "caller", uac_args, + uri="<sip:test2@pjsip.org>", + have_reg=True, have_publish=False), + ] + ) + diff --git a/tests/pjsua/scripts-call/301_ice_public_b.py b/tests/pjsua/scripts-call/301_ice_public_b.py new file mode 100644 index 00000000..d78992c8 --- /dev/null +++ b/tests/pjsua/scripts-call/301_ice_public_b.py @@ -0,0 +1,25 @@ +# $Id$ +# +from inc_cfg import * + +# This test: +# to make call with ICE but without STUN. + +# Note: +# - need --dis-codec to make INVITE packet less than typical MTU +uas_args = "--null-audio --id=\"<sip:test1@pjsip.org>\" --registrar=sip:sip.pjsip.org --username=test1 --password=test1 --realm=pjsip.org --proxy=\"sip:sip.pjsip.org;lr\" --rtp-port 0 --use-ice --use-compact-form --max-calls 1 --dis-codec=i --dis-codec=s --dis-codec=g --log-file callee.log" + +uac_args = "--null-audio --id=\"<sip:test2@pjsip.org>\" --registrar=sip:sip.pjsip.org --username=test2 --password=test2 --realm=pjsip.org --proxy=\"sip:sip.pjsip.org;lr\" --rtp-port 0 --use-ice --use-compact-form --max-calls 1 --dis-codec=i --dis-codec=s --dis-codec=g --log-file caller.log" + +test_param = TestParam( + "ICE via public internet with no STUN", + [ + InstanceParam( "callee", uas_args, + uri="<sip:test1@pjsip.org>", + have_reg=True, have_publish=False), + InstanceParam( "caller", uac_args, + uri="<sip:test2@pjsip.org>", + have_reg=True, have_publish=False), + ] + ) + diff --git a/tests/pjsua/scripts-call/305_ice_comp_1_2.py b/tests/pjsua/scripts-call/305_ice_comp_1_2.py new file mode 100644 index 00000000..7580b204 --- /dev/null +++ b/tests/pjsua/scripts-call/305_ice_comp_1_2.py @@ -0,0 +1,12 @@ +# $Id$ +# +from inc_cfg import * + +# Different number of ICE components +test_param = TestParam( + "Callee=use ICE, caller=use ICE", + [ + InstanceParam("callee", "--null-audio --use-ice --max-calls=1 --ice-no-rtcp", enable_buffer=True), + InstanceParam("caller", "--null-audio --use-ice --max-calls=1", enable_buffer=True) + ] + ) diff --git a/tests/pjsua/scripts-call/305_ice_comp_2_1.py b/tests/pjsua/scripts-call/305_ice_comp_2_1.py new file mode 100644 index 00000000..a0ddaf78 --- /dev/null +++ b/tests/pjsua/scripts-call/305_ice_comp_2_1.py @@ -0,0 +1,12 @@ +# $Id$ +# +from inc_cfg import * + +# Different number of ICE components +test_param = TestParam( + "Callee=use ICE, caller=use ICE", + [ + InstanceParam("callee", "--null-audio --use-ice --max-calls=1", enable_buffer=True), + InstanceParam("caller", "--null-audio --use-ice --max-calls=1 --ice-no-rtcp", enable_buffer=True) + ] + ) diff --git a/tests/pjsua/scripts-call/350_prack_a.py b/tests/pjsua/scripts-call/350_prack_a.py new file mode 100644 index 00000000..13649f67 --- /dev/null +++ b/tests/pjsua/scripts-call/350_prack_a.py @@ -0,0 +1,12 @@ +# $Id$ +# +from inc_cfg import * + +# TCP call +test_param = TestParam( + "Callee requires PRACK", + [ + InstanceParam("callee", "--null-audio --max-calls=1 --use-100rel"), + InstanceParam("caller", "--null-audio --max-calls=1") + ] + ) diff --git a/tests/pjsua/scripts-call/350_prack_b.py b/tests/pjsua/scripts-call/350_prack_b.py new file mode 100644 index 00000000..b97bdc22 --- /dev/null +++ b/tests/pjsua/scripts-call/350_prack_b.py @@ -0,0 +1,12 @@ +# $Id$ +# +from inc_cfg import * + +# TCP call +test_param = TestParam( + "Caller requires PRACK", + [ + InstanceParam("callee", "--null-audio --max-calls=1"), + InstanceParam("caller", "--null-audio --max-calls=1 --use-100rel") + ] + ) |