diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-10-09 16:03:35 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-10-09 16:03:35 (GMT) |
commit | c9b5381c16fce563307379aa8b52a5b902a7cc98 (patch) | |
tree | 20cfb956408f4f99dfac620c45ab0adaa3d61d10 /tests | |
parent | 386dbe71232110c8177ab1833f77f42c32c85283 (diff) |
Add a list of names to pick from. Refactor a bit to allow different simulator stages.
Create a bunch of random bots.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/simulator/demo/chaitanya.py (renamed from tests/simulator/bots/chaitanya.py) | 0 | ||||
-rwxr-xr-x | tests/simulator/demo/kiu.py (renamed from tests/simulator/bots/kiu.py) | 0 | ||||
-rw-r--r-- | tests/simulator/demo/others.py | 5 | ||||
-rw-r--r-- | tests/simulator/demo/penelope.py (renamed from tests/simulator/bots/penelope.py) | 0 | ||||
-rwxr-xr-x | tests/simulator/simulator | 6 |
5 files changed, 8 insertions, 3 deletions
diff --git a/tests/simulator/bots/chaitanya.py b/tests/simulator/demo/chaitanya.py index 95798c7..95798c7 100644 --- a/tests/simulator/bots/chaitanya.py +++ b/tests/simulator/demo/chaitanya.py diff --git a/tests/simulator/bots/kiu.py b/tests/simulator/demo/kiu.py index 2e8c448..2e8c448 100755 --- a/tests/simulator/bots/kiu.py +++ b/tests/simulator/demo/kiu.py diff --git a/tests/simulator/demo/others.py b/tests/simulator/demo/others.py new file mode 100644 index 0000000..3b1218f --- /dev/null +++ b/tests/simulator/demo/others.py @@ -0,0 +1,5 @@ +from sugar.simulator import Bot + +for i in range(0, 10): + bot = Bot() + bot.start() diff --git a/tests/simulator/bots/penelope.py b/tests/simulator/demo/penelope.py index 90f9d35..90f9d35 100644 --- a/tests/simulator/bots/penelope.py +++ b/tests/simulator/demo/penelope.py diff --git a/tests/simulator/simulator b/tests/simulator/simulator index de21697..552512c 100755 --- a/tests/simulator/simulator +++ b/tests/simulator/simulator @@ -13,10 +13,10 @@ 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): +stage_path = os.path.join(base_path, 'demo') +for bot_file in os.listdir(stage_path): if bot_file.endswith('.py') and bot_file != 'kiu.py': - execfile(os.path.join(bots_path, bot_file)) + execfile(os.path.join(stage_path, bot_file)) mainloop = gobject.MainLoop() mainloop.run() |