buildtest.system

This module detects System changes defined in class BuildTestSystem.

Module Contents

Classes

BuildTestSystem

BuildTestSystem is a class that detects system configuration

Attributes

SUPPORTED_PLATFORMS

buildtest.system.SUPPORTED_PLATFORMS = ['Linux', 'Darwin']
class buildtest.system.BuildTestSystem[source]

BuildTestSystem is a class that detects system configuration

Constructor method for BuildTestSystem(). Defines all system configuration using class variable system which is a dictionary.

system
get()[source]
check()[source]

Based on the module “distro” get system details like linux distro, processor, hostname, etc…

detect_module_tool()[source]

Check if module tool exists, we check for Lmod or environment-modules by checking if environment variable LMOD_VERSION, MODULE_VERSION or MODULES_CMD exist. We check this with input specification in buildtest configuration. If user specifies lmod as the module tool but detected environment-modules, buildtest should pick this up and report this as part of configuration check