buildtest.buildsystem.spack

This method defines the Spack buildsystem for the spack package manager (https://spack.readthedocs.io/en/latest/) by generating scripts that will do various spack operation. The SpackBuilder class will generate a test script using the schema definition ‘spack-v1.0.schema.json’ that defines how buildspecs are written.

Module Contents

Classes

SpackBuilder

The BuilderBase is an abstract class that implements common functions for

class buildtest.buildsystem.spack.SpackBuilder(name, recipe, buildspec, buildexecutor, executor, testdir=None)

Bases: buildtest.buildsystem.base.BuilderBase

The BuilderBase is an abstract class that implements common functions for any kind of builder.

type = spack
_resolve_spack_root(self, path, verify_spack=True)

Given a path find the startup spack setup script to source.

_spack_environment(self, spack_env)

This method is responsible for creating a spack environment, activate an existing spack environment, create a spack environment from a directory and a manifest file (spack.yaml, spack.lock)

generate_script(self)

Method responsible for generating the content of test script for spack buildsystem