annotate autobot/projects/__init__.py @ 34:206467b6f61f

* cleanup a bit in projects and start featuring autodiscovery * add some authz crap to the config file
author Jeff Hammel <jhammel@mozilla.com>
date Sat, 08 Jan 2011 10:21:54 -0800
parents 5b08b98897c6
children f586e28ff3d7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
28
5ce65c535472 add a docstring and other stubs to projects
Jeff Hammel <jhammel@mozilla.com>
parents: 19
diff changeset
1 """
5ce65c535472 add a docstring and other stubs to projects
Jeff Hammel <jhammel@mozilla.com>
parents: 19
diff changeset
2 projects that need some testing:
5ce65c535472 add a docstring and other stubs to projects
Jeff Hammel <jhammel@mozilla.com>
parents: 19
diff changeset
3
29
0f3737cfa0fc format docstring
Jeff Hammel <jhammel@mozilla.com>
parents: 28
diff changeset
4 * logparser [IN FLIGHT]
0f3737cfa0fc format docstring
Jeff Hammel <jhammel@mozilla.com>
parents: 28
diff changeset
5 * mozmill [IN FLIGHT]
0f3737cfa0fc format docstring
Jeff Hammel <jhammel@mozilla.com>
parents: 28
diff changeset
6 * devicemanager [TODO]
0f3737cfa0fc format docstring
Jeff Hammel <jhammel@mozilla.com>
parents: 28
diff changeset
7 * profilemanager [TODO]
0f3737cfa0fc format docstring
Jeff Hammel <jhammel@mozilla.com>
parents: 28
diff changeset
8 * firebug [TODO]
0f3737cfa0fc format docstring
Jeff Hammel <jhammel@mozilla.com>
parents: 28
diff changeset
9 * jetpack thing [TODO]
32
5b08b98897c6 autobot, test thyself
Jeff Hammel <jhammel@mozilla.com>
parents: 31
diff changeset
10 * autobot [TODO]
28
5ce65c535472 add a docstring and other stubs to projects
Jeff Hammel <jhammel@mozilla.com>
parents: 19
diff changeset
11 """
5ce65c535472 add a docstring and other stubs to projects
Jeff Hammel <jhammel@mozilla.com>
parents: 19
diff changeset
12
5ce65c535472 add a docstring and other stubs to projects
Jeff Hammel <jhammel@mozilla.com>
parents: 19
diff changeset
13 import os
5ce65c535472 add a docstring and other stubs to projects
Jeff Hammel <jhammel@mozilla.com>
parents: 19
diff changeset
14
10
9bda5ada5dca start on a dict of projects
Jeff Hammel <jhammel@mozilla.com>
parents: 0
diff changeset
15 from logparser import TestLogParserFactory
31
7a33d84b38e5 add mozmill to the dictionary of factories
Jeff Hammel <jhammel@mozilla.com>
parents: 29
diff changeset
16 from mozmill import TestMozmillFactory
28
5ce65c535472 add a docstring and other stubs to projects
Jeff Hammel <jhammel@mozilla.com>
parents: 19
diff changeset
17 # TODO: import these automagically:
34
206467b6f61f * cleanup a bit in projects and start featuring autodiscovery
Jeff Hammel <jhammel@mozilla.com>
parents: 32
diff changeset
18 # requires non-zipped eggs
206467b6f61f * cleanup a bit in projects and start featuring autodiscovery
Jeff Hammel <jhammel@mozilla.com>
parents: 32
diff changeset
19 here = os.path.dirname(os.path.abspath(__file__))
206467b6f61f * cleanup a bit in projects and start featuring autodiscovery
Jeff Hammel <jhammel@mozilla.com>
parents: 32
diff changeset
20 packages = [os.path.join(here, path)
206467b6f61f * cleanup a bit in projects and start featuring autodiscovery
Jeff Hammel <jhammel@mozilla.com>
parents: 32
diff changeset
21 for path in os.listdir(here)
206467b6f61f * cleanup a bit in projects and start featuring autodiscovery
Jeff Hammel <jhammel@mozilla.com>
parents: 32
diff changeset
22 if os.path.isdir(os.path.join(here, path))]
206467b6f61f * cleanup a bit in projects and start featuring autodiscovery
Jeff Hammel <jhammel@mozilla.com>
parents: 32
diff changeset
23 packages = [package for package in packages
206467b6f61f * cleanup a bit in projects and start featuring autodiscovery
Jeff Hammel <jhammel@mozilla.com>
parents: 32
diff changeset
24 if os.path.exists(os.path.join(package, '__init__.py'))]
10
9bda5ada5dca start on a dict of projects
Jeff Hammel <jhammel@mozilla.com>
parents: 0
diff changeset
25
31
7a33d84b38e5 add mozmill to the dictionary of factories
Jeff Hammel <jhammel@mozilla.com>
parents: 29
diff changeset
26 # available factories
7a33d84b38e5 add mozmill to the dictionary of factories
Jeff Hammel <jhammel@mozilla.com>
parents: 29
diff changeset
27 factories = {'logparser': TestLogParserFactory(),
7a33d84b38e5 add mozmill to the dictionary of factories
Jeff Hammel <jhammel@mozilla.com>
parents: 29
diff changeset
28 'mozmill': TestMozmillFactory() }