Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sugar/session/Makefile.am1
-rw-r--r--sugar/session/TestSession.py9
-rwxr-xr-xtests/simulator/kiu.py12
3 files changed, 22 insertions, 0 deletions
diff --git a/sugar/session/Makefile.am b/sugar/session/Makefile.am
index 3434c44..8c1e4f7 100644
--- a/sugar/session/Makefile.am
+++ b/sugar/session/Makefile.am
@@ -5,4 +5,5 @@ sugar_PYTHON = \
Emulator.py \
MatchboxProcess.py \
Process.py \
+ TestSession.py \
UITestSession.py
diff --git a/sugar/session/TestSession.py b/sugar/session/TestSession.py
new file mode 100644
index 0000000..12fb639
--- /dev/null
+++ b/sugar/session/TestSession.py
@@ -0,0 +1,9 @@
+from sugar.session.DbusProcess import DbusProcess
+from sugar import env
+
+class TestSession:
+ def start(self):
+ env.setup_python_path()
+
+ process = DbusProcess()
+ process.start()
diff --git a/tests/simulator/kiu.py b/tests/simulator/kiu.py
new file mode 100755
index 0000000..d51dafb
--- /dev/null
+++ b/tests/simulator/kiu.py
@@ -0,0 +1,12 @@
+#!/usr/bin/python
+import os
+from sugar.session.TestSession import TestSession
+from sugar.presence import PresenceService
+
+os.environ['SUGAR_NICK_NAME'] = 'kiu'
+
+session = TestSession()
+session.start()
+
+PresenceService.start()
+