diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-10-09 13:11:15 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-10-09 13:11:15 (GMT) |
commit | cbd3a52a6852574e3f481dac0ff2fc51c8d5038d (patch) | |
tree | d23c947525502e83be7b7640f21ed17eb276ace9 /tests | |
parent | 1dd8f784535920dc1eb404b491761f442590e68c (diff) |
Do not set up the owner of the presence service if there
is no nick name in the env. I'm not sure this is the best
approach, we need to figure it out.
First go at the new simulator.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/simulator/bots/penelope.py | 6 | ||||
-rwxr-xr-x | tests/simulator/simulator | 22 |
2 files changed, 28 insertions, 0 deletions
diff --git a/tests/simulator/bots/penelope.py b/tests/simulator/bots/penelope.py new file mode 100644 index 0000000..30774ae --- /dev/null +++ b/tests/simulator/bots/penelope.py @@ -0,0 +1,6 @@ +from sugar.simulator import Bot + +bot = Bot() +bot.name = 'penelope' + +bot.start() diff --git a/tests/simulator/simulator b/tests/simulator/simulator new file mode 100755 index 0000000..de21697 --- /dev/null +++ b/tests/simulator/simulator @@ -0,0 +1,22 @@ +#!/usr/bin/python +import os + +import gobject + +from sugar.session.TestSession import TestSession +from sugar.presence import PresenceService + +session = TestSession() +session.start() + +PresenceService.start() + +base_path = os.path.abspath(os.path.dirname(__file__)) + +bots_path = os.path.join(base_path, 'bots') +for bot_file in os.listdir(bots_path): + if bot_file.endswith('.py') and bot_file != 'kiu.py': + execfile(os.path.join(bots_path, bot_file)) + +mainloop = gobject.MainLoop() +mainloop.run() |