diff options
Diffstat (limited to 'tests/simulator')
-rw-r--r-- | tests/simulator/data/LICENSE | 7 | ||||
-rw-r--r-- | tests/simulator/data/chaitanya.jpg | bin | 1653 -> 0 bytes | |||
-rw-r--r-- | tests/simulator/data/kiu.jpg | bin | 1364 -> 0 bytes | |||
-rw-r--r-- | tests/simulator/data/penelope.jpg | bin | 1577 -> 0 bytes | |||
-rw-r--r-- | tests/simulator/demo/chaitanya.py | 24 | ||||
-rw-r--r-- | tests/simulator/demo/others.py | 37 | ||||
-rw-r--r-- | tests/simulator/demo/penelope.py | 24 | ||||
-rwxr-xr-x | tests/simulator/simulator | 35 |
8 files changed, 0 insertions, 127 deletions
diff --git a/tests/simulator/data/LICENSE b/tests/simulator/data/LICENSE deleted file mode 100644 index e80f60b..0000000 --- a/tests/simulator/data/LICENSE +++ /dev/null @@ -1,7 +0,0 @@ -This work is licensed under the Creative Commons Attribution 2.5 License. To view a copy of this license, visit http://creativecommons.org/licenses/by/2.5/ or send a letter to Creative Commons, 543 Howard Street, 5th Floor, San Francisco, California, 94105, USA. - -Attributions: - -chaitanya.jpg http://www.flickr.com/photos/meanestindian/166408558/ -penelope.jpg http://www.flickr.com/photos/gagah/9257515/ -kiu.jpg http://flickr.com/photos/31072589@N00/139234295/ diff --git a/tests/simulator/data/chaitanya.jpg b/tests/simulator/data/chaitanya.jpg Binary files differdeleted file mode 100644 index aecaf81..0000000 --- a/tests/simulator/data/chaitanya.jpg +++ /dev/null diff --git a/tests/simulator/data/kiu.jpg b/tests/simulator/data/kiu.jpg Binary files differdeleted file mode 100644 index 1beca11..0000000 --- a/tests/simulator/data/kiu.jpg +++ /dev/null diff --git a/tests/simulator/data/penelope.jpg b/tests/simulator/data/penelope.jpg Binary files differdeleted file mode 100644 index 0d81097..0000000 --- a/tests/simulator/data/penelope.jpg +++ /dev/null diff --git a/tests/simulator/demo/chaitanya.py b/tests/simulator/demo/chaitanya.py deleted file mode 100644 index 7d374a3..0000000 --- a/tests/simulator/demo/chaitanya.py +++ /dev/null @@ -1,24 +0,0 @@ -# Copyright (C) 2006, Red Hat, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -from sugar.simulator import Bot - -bot = Bot() -bot.name = 'chaitanya' - -bot.share_chat('giraffes', 'All About Giraffes') - -bot.start() diff --git a/tests/simulator/demo/others.py b/tests/simulator/demo/others.py deleted file mode 100644 index 0b87c0c..0000000 --- a/tests/simulator/demo/others.py +++ /dev/null @@ -1,37 +0,0 @@ -# Copyright (C) 2006, Red Hat, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -import random - -from sugar.simulator import Bot - -for i in range(0, 8): - bot = Bot() - - bot.wait(random.randint(10, 20)) - bot.join_activity('giraffes') - bot.change_activity('giraffes') - - bot.start() - -for i in range(0, 6): - bot = Bot() - - bot.wait(random.randint(10, 20)) - bot.join_activity('nekkhamma') - bot.change_activity('nekkhamma') - - bot.start() diff --git a/tests/simulator/demo/penelope.py b/tests/simulator/demo/penelope.py deleted file mode 100644 index 60cc1fe..0000000 --- a/tests/simulator/demo/penelope.py +++ /dev/null @@ -1,24 +0,0 @@ -# Copyright (C) 2006, Red Hat, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -from sugar.simulator import Bot - -bot = Bot() -bot.name = 'penelope' - -bot.share_chat('nekkhamma', 'Nekkhamma') - -bot.start() diff --git a/tests/simulator/simulator b/tests/simulator/simulator deleted file mode 100755 index 838d645..0000000 --- a/tests/simulator/simulator +++ /dev/null @@ -1,35 +0,0 @@ -#!/usr/bin/env python - -# Copyright (C) 2006, Red Hat, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA - -import os - -import gobject - -from sugar.presence import PresenceService - -PresenceService.start() - -base_path = os.path.abspath(os.path.dirname(__file__)) - -stage_path = os.path.join(base_path, 'demo') -for bot_file in os.listdir(stage_path): - if bot_file.endswith('.py'): - execfile(os.path.join(stage_path, bot_file)) - -mainloop = gobject.MainLoop() -mainloop.run() |