Exemplo n.º 1
0
class MPIJobRunnerTestCase(unittest.TestCase):
    def setUp(self):
        self.jobRunner = MPIJobRunner()

    def tearDown(self):
        pass

    def test_submitRun(self):
        self.fail()
        jobMetaInfo = self.jobRunner.submitRun(self,
                                               modelRun,
                                               prefixStr=None,
                                               extraCmdLineOpts=None,
                                               dryRun=False,
                                               maxRunTime=None)

    def test_blockResult(self):
        self.fail()
        # TODO: set up a fake MPI jobHandle
        result = self.jobRunner.blockResult(self, modelRun, jobMetaInfo)

    def test_attachPlatformInfo(self):
        jobMI = MPIJobMetaInfo()
        self.jobRunner.attachPlatformInfo(jobMI)
        #TODO: check MPI-specific info
        pass
class MPIJobRunnerTestCase(unittest.TestCase):
    def setUp(self):
        self.jobRunner = MPIJobRunner()

    def tearDown(self):
        pass

    def test_submitRun(self):
        self.fail()
        jobMetaInfo = self.jobRunner.submitRun(self, modelRun,
            prefixStr=None, extraCmdLineOpts=None, dryRun=False,
            maxRunTime=None)    
    
    def test_blockResult(self):
        self.fail()
        # TODO: set up a fake MPI jobHandle
        result = self.jobRunner.blockResult(self, modelRun, jobMetaInfo)
    
    def test_attachPlatformInfo(self):
        jobMI = MPIJobMetaInfo()
        self.jobRunner.attachPlatformInfo(jobMI)
        #TODO: check MPI-specific info
        pass
 def setUp(self):
     self.jobRunner = MPIJobRunner()
Exemplo n.º 4
0
 def setUp(self):
     self.jobRunner = MPIJobRunner()
Exemplo n.º 5
0
def defaultRunner():
    defRunner = MPIJobRunner()
    return defRunner