spack.test.cmd package

Submodules

spack.test.cmd.find module

spack.test.cmd.find.test_query_arguments()

spack.test.cmd.install module

class spack.test.cmd.install.InstallTestJunitLog(methodName='runTest')

Bases: unittest.case.TestCase

Tests test-install where X->Y

setUp()
tearDown()
test_dependency_already_installed()
test_installing_both()
class spack.test.cmd.install.MockPackage(spec, buildLogPath)

Bases: object

do_install(*args, **kwargs)
class spack.test.cmd.install.MockPackageDb(init=None)

Bases: object

get(spec)
class spack.test.cmd.install.MockSpec(name, version, hashStr=None)

Bases: object

dag_hash()
dependencies(deptype=None)
dependents(deptype=None)
short_spec
traverse(order=None)
spack.test.cmd.install.mock_fetch_log(path)
spack.test.cmd.install.mock_open(*args, **kwds)

spack.test.cmd.module module

spack.test.cmd.module.failure_args(request)

A list of arguments that will cause a failure

spack.test.cmd.module.parser()

Returns the parser for the module command

spack.test.cmd.module.test_exit_with_failure(database, parser, failure_args)
spack.test.cmd.module.test_find(database, parser)
spack.test.cmd.module.test_remove_and_add_dotkit(database, parser)
spack.test.cmd.module.test_remove_and_add_tcl(database, parser)

spack.test.cmd.test_compiler_cmd module

class spack.test.cmd.test_compiler_cmd.TestCompilerCommand

Bases: object

pytestmark = [<MarkDecorator 'usefixtures' {'args': ('config', 'builtin_mock'), 'kwargs': {}}>]
test_compiler_add(mock_compiler_dir)
test_compiler_remove()
spack.test.cmd.test_compiler_cmd.mock_compiler_dir(tmpdir)

Return a directory containing a fake, but detectable compiler.

spack.test.cmd.uninstall module

class spack.test.cmd.uninstall.MockArgs(packages, all=False, force=False, dependents=False)

Bases: object

spack.test.cmd.uninstall.test_uninstall(database)

Module contents