diff options
author | Benny Prijono <bennylp@teluu.com> | 2008-06-12 15:37:22 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2008-06-12 15:37:22 +0000 |
commit | e5c47747a5355a29b5184ed690d05c241f1bd34e (patch) | |
tree | 6ccd15b80ddbcdc7920d6d451b267378a5695490 /pjsip-apps/src/test-pjsua/mod_run.py | |
parent | 33a19f0c14777cd7e2923e9eb1f355547fbee3cc (diff) |
Ticket #543: initial framework for pjsua testing, still needs lots of test scenarios
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2009 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip-apps/src/test-pjsua/mod_run.py')
-rw-r--r-- | pjsip-apps/src/test-pjsua/mod_run.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/pjsip-apps/src/test-pjsua/mod_run.py b/pjsip-apps/src/test-pjsua/mod_run.py new file mode 100644 index 00000000..c5e475d3 --- /dev/null +++ b/pjsip-apps/src/test-pjsua/mod_run.py @@ -0,0 +1,19 @@ +# $Id$
+import imp
+import sys
+import inc_param as param
+
+
+# Read configuration
+cfg_file = imp.load_source("cfg_file", sys.argv[2])
+
+# Test title
+title = "Basic pjsua"
+
+# Param to spawn pjsua
+p1 = param.Pjsua("pjsua", args=cfg_file.config.arg,
+ echo=cfg_file.config.echo_enabled,
+ trace=cfg_file.config.trace_enabled)
+
+# Here where it all comes together
+test = param.Test(title, run=[p1])
|