Tinderbox/Modules: Difference between revisions

From OLPC
Jump to navigation Jump to search
m (New page: Tinderbox organizes measurements, fixture setup, and fixture teardown into groups called ''modules''. Example modules include the [http://dev.laptop.org/git?p=sugar-jhbuild;a=blob_plain;f...)
 
mNo edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
Tinderbox organizes measurements, fixture setup, and fixture teardown into groups called ''modules''.
Tinderbox organizes measurements, fixture setup, and fixture teardown into groups called ''modules''.
* Module source code is located in Tinderbox's [http://dev.laptop.org/git?p=projects/tinderbox;a=tree;f=jhbuild/modtypes;hb=HEAD jhbuild.modtypes python package].
* Modules are implemented as python modules such as [http://dev.laptop.org/git?p=projects/tinderbox;a=blob;f=jhbuild/modtypes/olpc.py;hb=HEAD jhbuild.modtypes.olpc].
* Tinderbox learns about modules by reading XML descriptors called "modulesets". Example modulesets include the [http://dev.laptop.org/git?p=sugar-jhbuild;a=blob_plain;f=config/modulesets/platform.modules;hb=HEAD jhbuild modules] and the [http://dev.laptop.org/git?p=projects/tinderbox;a=blob;f=modulesets/olpc.modules;hb=HEAD "olpc" moduleset].


Modules are further subdivided into phases.
Example modules include the [http://dev.laptop.org/git?p=sugar-jhbuild;a=blob_plain;f=config/modulesets/platform.modules;hb=HEAD jhbuild modules], and the [http://dev.laptop.org/git?p=projects/tinderbox;a=blob;f=modulesets/olpc.modules;hb=HEAD "olpc" stub module].
* Sugar-jhbuild modules have phases such as "start", "checkout", "build", "install".

* The "olpc" module has phases including "start", "download", "nandwrite", "boot", "networking", "sugar", "activities", "performance", and "reboot".
Modules have phases.
* The phases are implemented as named functions inside Tinderbox python modules, e.g. the "olpc" module's "start" phase is the "do_start(...)" function in jhbuild.modtypes.olpc.

Latest revision as of 01:05, 26 April 2008

Tinderbox organizes measurements, fixture setup, and fixture teardown into groups called modules.

Modules are further subdivided into phases.

  • Sugar-jhbuild modules have phases such as "start", "checkout", "build", "install".
  • The "olpc" module has phases including "start", "download", "nandwrite", "boot", "networking", "sugar", "activities", "performance", and "reboot".
  • The phases are implemented as named functions inside Tinderbox python modules, e.g. the "olpc" module's "start" phase is the "do_start(...)" function in jhbuild.modtypes.olpc.