Package inca :: Module GlobusUnitReporter :: Class GlobusUnitReporter
[hide private]
[frames] | no frames]

Class GlobusUnitReporter

source code

                Reporter.Reporter --+    
                                    |    
SimpleUnitReporter.SimpleUnitReporter --+
                                        |
                                       GlobusUnitReporter

GlobusUnitReporter - Convenience module for creating simple unit reporters that submit a test via globus:

 from inca.GlobusUnitReporter import GlobusUnitReporter
 reporter = GlobusUnitReporter(
   name = 'Reporter Name',
   version = 0.1,
   description = 'A really helpful reporter description',
   url = 'http://url.to.more.reporter.info'
   unit_name = 'What this reporter tests'
 )

This module is a subclass of SimpleUnitReporter that provides convenience methods for submitting a unit test via globus.

Instance Methods [hide private]
 
__init__(self, **attributes)
Class constructor that returns a new GlobusUnitReporter object.
source code
 
submitCSource(self, **attrs)
Submit a small C program to execute via a local GRAM.
source code
 
submitJob(self, **attrs)
Submit a job to execute a command via Globus.
source code

Inherited from SimpleUnitReporter.SimpleUnitReporter: getUnitName, reportBody, setUnitName, unitFailure, unitSuccess

Inherited from Reporter.Reporter: __del__, addArg, addDependency, argValue, argValues, compiledProgramOutput, compiledProgramStatusOutput, failPrintAndExit, getBody, getCompleted, getCwd, getDescription, getFailMessage, getName, getUrl, getVersion, log, loggedCommandOutput, loggedCommandStatusOutput, printReport, processArgv, report, setBody, setCompleted, setCwd, setDescription, setFailMessage, setName, setResult, setUrl, setVersion, tempFile, xmlElement

Method Details [hide private]

__init__(self, **attributes)
(Constructor)

source code 

Class constructor that returns a new GlobusUnitReporter object. See SimpleUnitReporter for parameters.

Overrides: Reporter.Reporter.__init__

submitCSource(self, **attrs)

source code 

Submit a small C program to execute via a local GRAM. In addition to the parameters recognized by submitJob, the required attrs['code'] specifies the source to compile.

submitJob(self, **attrs)

source code 

Submit a job to execute a command via Globus. Recognized parameters:

 arguments
   arguments to pass to executable; default ''

 check
   poll job for completion every this many seconds; default 30

 cleanup
   remove temporary files after run; default true

 count
   number of hosts to use; default 1

 debug
   log the submision command and the result with -dumprsl; default false

 duroc
   add (resourceManagerContact=xx) to rsl; default false

 executable
   the program to run; required

 env
   environment variable to set; default ''

 host
   host where run takes place; default localhost

 mpi
   execute as an MPI program; default false

 queue
   name of batch queue to submit job to; default none

 remote
   executable is already on the jobmanager resource; default true

 service
   the Globus service to invoke; default to Globus default

 timeout
   kill the job and report an error after this many seconds; default
   3600 (1 hr)