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

Class GlobusUnitReporter

source code

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, **atts)
Submit a job to execute a command via Globus.
source code
Method Details [hide private]

__init__(self, **attributes)
(Constructor)

source code 

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

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, **atts)

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 1

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)