toil.test.batchSystems.batchSystemTest
¶
Module Contents¶
Classes¶
Class for testing batch system plugin functionality. |
|
Hide abstract base class from unittest's test case loader |
|
Tests against the Kubernetes batch system |
|
Kubernetes batch system unit tests that don't need to actually talk to a cluster. |
|
Tests against the AWS Batch batch system |
|
Tests against the Mesos batch system |
|
Tests against the single-machine batch system |
|
This test ensures that single machine batch system doesn't exceed the configured number |
|
Abstract class used to define the interface to a service. |
|
Tests against the GridEngine batch system |
|
Tests against the Slurm batch system |
|
Tests against the LSF batch system |
|
Tests against the Torque batch system |
|
Tests against the HTCondor batch system |
|
Tests Toil workflow against the SingleMachine batch system |
|
Tests Toil workflow against the Mesos batch system |
Functions¶
|
Dump a string into a temp file and return its path. |
|
|
|
|
|
|
|
|
|
Run in parallel to determine the number of concurrent tasks. |
|
Increments counter file and returns the max number of times the file |
|
|
|
|
Attributes¶
- toil.test.batchSystems.batchSystemTest.logger¶
- toil.test.batchSystems.batchSystemTest.numCores = 2¶
- toil.test.batchSystems.batchSystemTest.preemptible = False¶
- toil.test.batchSystems.batchSystemTest.defaultRequirements¶
- class toil.test.batchSystems.batchSystemTest.BatchSystemPluginTest(methodName='runTest')[source]¶
Bases:
digraph inheritance2382fc7f17 { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "BatchSystemPluginTest" [URL="#toil.test.batchSystems.batchSystemTest.BatchSystemPluginTest",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Class for testing batch system plugin functionality."]; "ToilTest" -> "BatchSystemPluginTest" [arrowsize=0.5,style="setlinewidth(0.5)"]; "TestCase" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="A class whose instances are single test cases."]; "ToilTest" [URL="../../index.html#toil.test.ToilTest",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A common base class for Toil tests."]; "TestCase" -> "ToilTest" [arrowsize=0.5,style="setlinewidth(0.5)"]; }toil.test.ToilTest
Class for testing batch system plugin functionality.
Hide abstract base class from unittest’s test case loader
http://stackoverflow.com/questions/1323455/python-unit-test-with-base-and-sub-class#answer-25695512
Bases:
digraph inheritance5d75f67c20 { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "AbstractBatchSystemTest" [URL="#toil.test.batchSystems.batchSystemTest.hidden.AbstractBatchSystemTest",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A base test case with generic tests that every batch system should pass."]; "ToilTest" -> "AbstractBatchSystemTest" [arrowsize=0.5,style="setlinewidth(0.5)"]; "TestCase" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="A class whose instances are single test cases."]; "ToilTest" [URL="../../index.html#toil.test.ToilTest",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A common base class for Toil tests."]; "TestCase" -> "ToilTest" [arrowsize=0.5,style="setlinewidth(0.5)"]; }toil.test.ToilTest
A base test case with generic tests that every batch system should pass.
Cannot assume that the batch system actually executes commands on the local machine/filesystem.
Returns a dummy config for the batch system tests. We need a workflowID to be set up since we are running tests without setting up a jobstore. This is the class version to be used when an instance is not available.
- Return type:
Hook method for setting up class fixture before running tests in the class.
Hook method for setting up the test fixture before exercising it.
Hook method for deconstructing the test fixture after testing it.
Get the number of seconds this test ought to wait for the first job to run. Some batch systems may need time to scale up.
- Return type:
Test the mechanism for setting per-job environment variables to batch system jobs.
Bases:
digraph inheritancef3a6ad94ec { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "AbstractBatchSystemJobTest" [URL="#toil.test.batchSystems.batchSystemTest.hidden.AbstractBatchSystemJobTest",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="An abstract base class for batch system tests that use a full Toil workflow rather"]; "ToilTest" -> "AbstractBatchSystemJobTest" [arrowsize=0.5,style="setlinewidth(0.5)"]; "TestCase" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="A class whose instances are single test cases."]; "ToilTest" [URL="../../index.html#toil.test.ToilTest",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A common base class for Toil tests."]; "TestCase" -> "ToilTest" [arrowsize=0.5,style="setlinewidth(0.5)"]; }toil.test.ToilTest
An abstract base class for batch system tests that use a full Toil workflow rather than using the batch system directly.
- Return type:
Configures options for Toil workflow and makes job store. :param str tempDir: path to test directory :return: Toil options object
Hook method for setting up the test fixture before exercising it.
Hook method for deconstructing the test fixture after testing it.
Tests that the batch system is allocating core resources properly for concurrent tasks.
Test if the OMP_NUM_THREADS env var is set correctly based on jobs.cores.
Bases:
digraph inheritance0534adb5d2 { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "AbstractBatchSystemTest" [URL="#toil.test.batchSystems.batchSystemTest.hidden.AbstractBatchSystemTest",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A base test case with generic tests that every batch system should pass."]; "ToilTest" -> "AbstractBatchSystemTest" [arrowsize=0.5,style="setlinewidth(0.5)"]; "AbstractGridEngineBatchSystemTest" [URL="#toil.test.batchSystems.batchSystemTest.hidden.AbstractGridEngineBatchSystemTest",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="An abstract class to reduce redundancy between Grid Engine, Slurm, and other similar batch"]; "AbstractBatchSystemTest" -> "AbstractGridEngineBatchSystemTest" [arrowsize=0.5,style="setlinewidth(0.5)"]; "TestCase" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="A class whose instances are single test cases."]; "ToilTest" [URL="../../index.html#toil.test.ToilTest",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A common base class for Toil tests."]; "TestCase" -> "ToilTest" [arrowsize=0.5,style="setlinewidth(0.5)"]; }hidden.AbstractBatchSystemTest
An abstract class to reduce redundancy between Grid Engine, Slurm, and other similar batch systems
- class toil.test.batchSystems.batchSystemTest.KubernetesBatchSystemTest(methodName='runTest')[source]¶
Bases:
digraph inheritancebfde620e6c { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "AbstractBatchSystemTest" [URL="#toil.test.batchSystems.batchSystemTest.hidden.AbstractBatchSystemTest",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A base test case with generic tests that every batch system should pass."]; "ToilTest" -> "AbstractBatchSystemTest" [arrowsize=0.5,style="setlinewidth(0.5)"]; "KubernetesBatchSystemTest" [URL="#toil.test.batchSystems.batchSystemTest.KubernetesBatchSystemTest",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Tests against the Kubernetes batch system"]; "AbstractBatchSystemTest" -> "KubernetesBatchSystemTest" [arrowsize=0.5,style="setlinewidth(0.5)"]; "TestCase" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="A class whose instances are single test cases."]; "ToilTest" [URL="../../index.html#toil.test.ToilTest",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A common base class for Toil tests."]; "TestCase" -> "ToilTest" [arrowsize=0.5,style="setlinewidth(0.5)"]; }hidden
Tests against the Kubernetes batch system
- class toil.test.batchSystems.batchSystemTest.KubernetesBatchSystemBenchTest(methodName='runTest')[source]¶
Bases:
digraph inheritance0e807b3024 { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "KubernetesBatchSystemBenchTest" [URL="#toil.test.batchSystems.batchSystemTest.KubernetesBatchSystemBenchTest",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Kubernetes batch system unit tests that don't need to actually talk to a cluster."]; "ToilTest" -> "KubernetesBatchSystemBenchTest" [arrowsize=0.5,style="setlinewidth(0.5)"]; "TestCase" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="A class whose instances are single test cases."]; "ToilTest" [URL="../../index.html#toil.test.ToilTest",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A common base class for Toil tests."]; "TestCase" -> "ToilTest" [arrowsize=0.5,style="setlinewidth(0.5)"]; }toil.test.ToilTest
Kubernetes batch system unit tests that don’t need to actually talk to a cluster.
- class toil.test.batchSystems.batchSystemTest.AWSBatchBatchSystemTest(methodName='runTest')[source]¶
Bases:
digraph inheritancec30457f9e4 { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "AWSBatchBatchSystemTest" [URL="#toil.test.batchSystems.batchSystemTest.AWSBatchBatchSystemTest",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Tests against the AWS Batch batch system"]; "AbstractBatchSystemTest" -> "AWSBatchBatchSystemTest" [arrowsize=0.5,style="setlinewidth(0.5)"]; "AbstractBatchSystemTest" [URL="#toil.test.batchSystems.batchSystemTest.hidden.AbstractBatchSystemTest",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A base test case with generic tests that every batch system should pass."]; "ToilTest" -> "AbstractBatchSystemTest" [arrowsize=0.5,style="setlinewidth(0.5)"]; "TestCase" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="A class whose instances are single test cases."]; "ToilTest" [URL="../../index.html#toil.test.ToilTest",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A common base class for Toil tests."]; "TestCase" -> "ToilTest" [arrowsize=0.5,style="setlinewidth(0.5)"]; }hidden
Tests against the AWS Batch batch system
- class toil.test.batchSystems.batchSystemTest.MesosBatchSystemTest(methodName='runTest')[source]¶
Bases:
digraph inheritanced52a3594ce { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "AbstractBatchSystemTest" [URL="#toil.test.batchSystems.batchSystemTest.hidden.AbstractBatchSystemTest",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A base test case with generic tests that every batch system should pass."]; "ToilTest" -> "AbstractBatchSystemTest" [arrowsize=0.5,style="setlinewidth(0.5)"]; "MesosBatchSystemTest" [URL="#toil.test.batchSystems.batchSystemTest.MesosBatchSystemTest",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Tests against the Mesos batch system"]; "AbstractBatchSystemTest" -> "MesosBatchSystemTest" [arrowsize=0.5,style="setlinewidth(0.5)"]; "MesosTestSupport" -> "MesosBatchSystemTest" [arrowsize=0.5,style="setlinewidth(0.5)"]; "MesosTestSupport" [URL="../../../batchSystems/mesos/test/index.html#toil.batchSystems.mesos.test.MesosTestSupport",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Mixin for test cases that need a running Mesos master and agent on the local host."]; "TestCase" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="A class whose instances are single test cases."]; "ToilTest" [URL="../../index.html#toil.test.ToilTest",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A common base class for Toil tests."]; "TestCase" -> "ToilTest" [arrowsize=0.5,style="setlinewidth(0.5)"]; }hidden
,toil.batchSystems.mesos.test.MesosTestSupport
Tests against the Mesos batch system
- toil.test.batchSystems.batchSystemTest.write_temp_file(s, temp_dir)[source]¶
Dump a string into a temp file and return its path.
- class toil.test.batchSystems.batchSystemTest.SingleMachineBatchSystemTest(methodName='runTest')[source]¶
Bases:
digraph inheritance1a759bd197 { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "AbstractBatchSystemTest" [URL="#toil.test.batchSystems.batchSystemTest.hidden.AbstractBatchSystemTest",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A base test case with generic tests that every batch system should pass."]; "ToilTest" -> "AbstractBatchSystemTest" [arrowsize=0.5,style="setlinewidth(0.5)"]; "SingleMachineBatchSystemTest" [URL="#toil.test.batchSystems.batchSystemTest.SingleMachineBatchSystemTest",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Tests against the single-machine batch system"]; "AbstractBatchSystemTest" -> "SingleMachineBatchSystemTest" [arrowsize=0.5,style="setlinewidth(0.5)"]; "TestCase" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="A class whose instances are single test cases."]; "ToilTest" [URL="../../index.html#toil.test.ToilTest",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A common base class for Toil tests."]; "TestCase" -> "ToilTest" [arrowsize=0.5,style="setlinewidth(0.5)"]; }hidden
Tests against the single-machine batch system
- class toil.test.batchSystems.batchSystemTest.MaxCoresSingleMachineBatchSystemTest(methodName='runTest')[source]¶
Bases:
digraph inheritance2f11684c09 { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "MaxCoresSingleMachineBatchSystemTest" [URL="#toil.test.batchSystems.batchSystemTest.MaxCoresSingleMachineBatchSystemTest",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="This test ensures that single machine batch system doesn't exceed the configured number"]; "ToilTest" -> "MaxCoresSingleMachineBatchSystemTest" [arrowsize=0.5,style="setlinewidth(0.5)"]; "TestCase" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="A class whose instances are single test cases."]; "ToilTest" [URL="../../index.html#toil.test.ToilTest",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A common base class for Toil tests."]; "TestCase" -> "ToilTest" [arrowsize=0.5,style="setlinewidth(0.5)"]; }toil.test.ToilTest
This test ensures that single machine batch system doesn’t exceed the configured number cores
- classmethod setUpClass()[source]¶
Hook method for setting up class fixture before running tests in the class.
- Return type:
None
- setUp()[source]¶
Hook method for setting up the test fixture before exercising it.
- Return type:
None
- class toil.test.batchSystems.batchSystemTest.Service(cmd)[source]¶
Bases:
digraph inheritanceaeb2cce49b { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "Requirer" [URL="../../../job/index.html#toil.job.Requirer",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Base class implementing the storage and presentation of requirements."]; "Service" [URL="../../../job/index.html#toil.job.Job.Service",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Abstract class used to define the interface to a service."]; "Requirer" -> "Service" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Service" [URL="#toil.test.batchSystems.batchSystemTest.Service",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "Service" -> "Service" [arrowsize=0.5,style="setlinewidth(0.5)"]; }toil.job.Job.Service
Abstract class used to define the interface to a service.
Should be subclassed by the user to define services.
Is not executed as a job; runs within a ServiceHostJob.
- start(fileStore)[source]¶
Start the service.
- Parameters:
job – The underlying host job that the service is being run in. Can be used to register deferred functions, or to access the fileStore for creating temporary files.
- Returns:
An object describing how to access the service. The object must be pickleable and will be used by jobs to access the service (see
toil.job.Job.addService()
).
- check()[source]¶
Checks the service is still running.
- Raises:
exceptions.RuntimeError – If the service failed, this will cause the service job to be labeled failed.
- Returns:
True if the service is still running, else False. If False then the service job will be terminated, and considered a success. Important point: if the service job exits due to a failure, it should raise a RuntimeError, not return False!
- class toil.test.batchSystems.batchSystemTest.GridEngineBatchSystemTest(methodName='runTest')[source]¶
Bases:
digraph inheritanceae6728af28 { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "AbstractBatchSystemTest" [URL="#toil.test.batchSystems.batchSystemTest.hidden.AbstractBatchSystemTest",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A base test case with generic tests that every batch system should pass."]; "ToilTest" -> "AbstractBatchSystemTest" [arrowsize=0.5,style="setlinewidth(0.5)"]; "AbstractGridEngineBatchSystemTest" [URL="#toil.test.batchSystems.batchSystemTest.hidden.AbstractGridEngineBatchSystemTest",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="An abstract class to reduce redundancy between Grid Engine, Slurm, and other similar batch"]; "AbstractBatchSystemTest" -> "AbstractGridEngineBatchSystemTest" [arrowsize=0.5,style="setlinewidth(0.5)"]; "GridEngineBatchSystemTest" [URL="#toil.test.batchSystems.batchSystemTest.GridEngineBatchSystemTest",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Tests against the GridEngine batch system"]; "AbstractGridEngineBatchSystemTest" -> "GridEngineBatchSystemTest" [arrowsize=0.5,style="setlinewidth(0.5)"]; "TestCase" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="A class whose instances are single test cases."]; "ToilTest" [URL="../../index.html#toil.test.ToilTest",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A common base class for Toil tests."]; "TestCase" -> "ToilTest" [arrowsize=0.5,style="setlinewidth(0.5)"]; }hidden
Tests against the GridEngine batch system
- class toil.test.batchSystems.batchSystemTest.SlurmBatchSystemTest(methodName='runTest')[source]¶
Bases:
digraph inheritance78834bde98 { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "AbstractBatchSystemTest" [URL="#toil.test.batchSystems.batchSystemTest.hidden.AbstractBatchSystemTest",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A base test case with generic tests that every batch system should pass."]; "ToilTest" -> "AbstractBatchSystemTest" [arrowsize=0.5,style="setlinewidth(0.5)"]; "AbstractGridEngineBatchSystemTest" [URL="#toil.test.batchSystems.batchSystemTest.hidden.AbstractGridEngineBatchSystemTest",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="An abstract class to reduce redundancy between Grid Engine, Slurm, and other similar batch"]; "AbstractBatchSystemTest" -> "AbstractGridEngineBatchSystemTest" [arrowsize=0.5,style="setlinewidth(0.5)"]; "SlurmBatchSystemTest" [URL="#toil.test.batchSystems.batchSystemTest.SlurmBatchSystemTest",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Tests against the Slurm batch system"]; "AbstractGridEngineBatchSystemTest" -> "SlurmBatchSystemTest" [arrowsize=0.5,style="setlinewidth(0.5)"]; "TestCase" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="A class whose instances are single test cases."]; "ToilTest" [URL="../../index.html#toil.test.ToilTest",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A common base class for Toil tests."]; "TestCase" -> "ToilTest" [arrowsize=0.5,style="setlinewidth(0.5)"]; }hidden
Tests against the Slurm batch system
- class toil.test.batchSystems.batchSystemTest.LSFBatchSystemTest(methodName='runTest')[source]¶
Bases:
digraph inheritance2419e34180 { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "AbstractBatchSystemTest" [URL="#toil.test.batchSystems.batchSystemTest.hidden.AbstractBatchSystemTest",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A base test case with generic tests that every batch system should pass."]; "ToilTest" -> "AbstractBatchSystemTest" [arrowsize=0.5,style="setlinewidth(0.5)"]; "AbstractGridEngineBatchSystemTest" [URL="#toil.test.batchSystems.batchSystemTest.hidden.AbstractGridEngineBatchSystemTest",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="An abstract class to reduce redundancy between Grid Engine, Slurm, and other similar batch"]; "AbstractBatchSystemTest" -> "AbstractGridEngineBatchSystemTest" [arrowsize=0.5,style="setlinewidth(0.5)"]; "LSFBatchSystemTest" [URL="#toil.test.batchSystems.batchSystemTest.LSFBatchSystemTest",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Tests against the LSF batch system"]; "AbstractGridEngineBatchSystemTest" -> "LSFBatchSystemTest" [arrowsize=0.5,style="setlinewidth(0.5)"]; "TestCase" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="A class whose instances are single test cases."]; "ToilTest" [URL="../../index.html#toil.test.ToilTest",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A common base class for Toil tests."]; "TestCase" -> "ToilTest" [arrowsize=0.5,style="setlinewidth(0.5)"]; }hidden
Tests against the LSF batch system
- class toil.test.batchSystems.batchSystemTest.TorqueBatchSystemTest(methodName='runTest')[source]¶
Bases:
digraph inheritance787418e1f9 { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "AbstractBatchSystemTest" [URL="#toil.test.batchSystems.batchSystemTest.hidden.AbstractBatchSystemTest",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A base test case with generic tests that every batch system should pass."]; "ToilTest" -> "AbstractBatchSystemTest" [arrowsize=0.5,style="setlinewidth(0.5)"]; "AbstractGridEngineBatchSystemTest" [URL="#toil.test.batchSystems.batchSystemTest.hidden.AbstractGridEngineBatchSystemTest",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="An abstract class to reduce redundancy between Grid Engine, Slurm, and other similar batch"]; "AbstractBatchSystemTest" -> "AbstractGridEngineBatchSystemTest" [arrowsize=0.5,style="setlinewidth(0.5)"]; "TestCase" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="A class whose instances are single test cases."]; "ToilTest" [URL="../../index.html#toil.test.ToilTest",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A common base class for Toil tests."]; "TestCase" -> "ToilTest" [arrowsize=0.5,style="setlinewidth(0.5)"]; "TorqueBatchSystemTest" [URL="#toil.test.batchSystems.batchSystemTest.TorqueBatchSystemTest",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Tests against the Torque batch system"]; "AbstractGridEngineBatchSystemTest" -> "TorqueBatchSystemTest" [arrowsize=0.5,style="setlinewidth(0.5)"]; }hidden
Tests against the Torque batch system
- class toil.test.batchSystems.batchSystemTest.HTCondorBatchSystemTest(methodName='runTest')[source]¶
Bases:
digraph inheritance365d7cf8b8 { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "AbstractBatchSystemTest" [URL="#toil.test.batchSystems.batchSystemTest.hidden.AbstractBatchSystemTest",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A base test case with generic tests that every batch system should pass."]; "ToilTest" -> "AbstractBatchSystemTest" [arrowsize=0.5,style="setlinewidth(0.5)"]; "AbstractGridEngineBatchSystemTest" [URL="#toil.test.batchSystems.batchSystemTest.hidden.AbstractGridEngineBatchSystemTest",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="An abstract class to reduce redundancy between Grid Engine, Slurm, and other similar batch"]; "AbstractBatchSystemTest" -> "AbstractGridEngineBatchSystemTest" [arrowsize=0.5,style="setlinewidth(0.5)"]; "HTCondorBatchSystemTest" [URL="#toil.test.batchSystems.batchSystemTest.HTCondorBatchSystemTest",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Tests against the HTCondor batch system"]; "AbstractGridEngineBatchSystemTest" -> "HTCondorBatchSystemTest" [arrowsize=0.5,style="setlinewidth(0.5)"]; "TestCase" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="A class whose instances are single test cases."]; "ToilTest" [URL="../../index.html#toil.test.ToilTest",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A common base class for Toil tests."]; "TestCase" -> "ToilTest" [arrowsize=0.5,style="setlinewidth(0.5)"]; }hidden
Tests against the HTCondor batch system
- class toil.test.batchSystems.batchSystemTest.SingleMachineBatchSystemJobTest(methodName='runTest')[source]¶
Bases:
digraph inheritanceeb1b8c864f { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "AbstractBatchSystemJobTest" [URL="#toil.test.batchSystems.batchSystemTest.hidden.AbstractBatchSystemJobTest",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="An abstract base class for batch system tests that use a full Toil workflow rather"]; "ToilTest" -> "AbstractBatchSystemJobTest" [arrowsize=0.5,style="setlinewidth(0.5)"]; "SingleMachineBatchSystemJobTest" [URL="#toil.test.batchSystems.batchSystemTest.SingleMachineBatchSystemJobTest",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Tests Toil workflow against the SingleMachine batch system"]; "AbstractBatchSystemJobTest" -> "SingleMachineBatchSystemJobTest" [arrowsize=0.5,style="setlinewidth(0.5)"]; "TestCase" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="A class whose instances are single test cases."]; "ToilTest" [URL="../../index.html#toil.test.ToilTest",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A common base class for Toil tests."]; "TestCase" -> "ToilTest" [arrowsize=0.5,style="setlinewidth(0.5)"]; }hidden
Tests Toil workflow against the SingleMachine batch system
- class toil.test.batchSystems.batchSystemTest.MesosBatchSystemJobTest(methodName='runTest')[source]¶
Bases:
digraph inheritance886ceed052 { bgcolor=transparent; rankdir=LR; size="8.0, 12.0"; "AbstractBatchSystemJobTest" [URL="#toil.test.batchSystems.batchSystemTest.hidden.AbstractBatchSystemJobTest",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="An abstract base class for batch system tests that use a full Toil workflow rather"]; "ToilTest" -> "AbstractBatchSystemJobTest" [arrowsize=0.5,style="setlinewidth(0.5)"]; "MesosBatchSystemJobTest" [URL="#toil.test.batchSystems.batchSystemTest.MesosBatchSystemJobTest",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Tests Toil workflow against the Mesos batch system"]; "AbstractBatchSystemJobTest" -> "MesosBatchSystemJobTest" [arrowsize=0.5,style="setlinewidth(0.5)"]; "MesosTestSupport" -> "MesosBatchSystemJobTest" [arrowsize=0.5,style="setlinewidth(0.5)"]; "MesosTestSupport" [URL="../../../batchSystems/mesos/test/index.html#toil.batchSystems.mesos.test.MesosTestSupport",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="Mixin for test cases that need a running Mesos master and agent on the local host."]; "TestCase" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",tooltip="A class whose instances are single test cases."]; "ToilTest" [URL="../../index.html#toil.test.ToilTest",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top",tooltip="A common base class for Toil tests."]; "TestCase" -> "ToilTest" [arrowsize=0.5,style="setlinewidth(0.5)"]; }hidden
,toil.batchSystems.mesos.test.MesosTestSupport
Tests Toil workflow against the Mesos batch system
- getOptions(tempDir)[source]¶
Configures options for Toil workflow and makes job store. :param str tempDir: path to test directory :return: Toil options object
- toil.test.batchSystems.batchSystemTest.measureConcurrency(filepath, sleep_time=10)[source]¶
Run in parallel to determine the number of concurrent tasks. This code was copied from toil.batchSystemTestMaxCoresSingleMachineBatchSystemTest :param str filepath: path to counter file :param int sleep_time: number of seconds to sleep before counting down :return int max concurrency value: