buildtest.system
This module detects System changes defined in class BuildTestSystem.
Module Contents
Classes
BuildTestSystem is a class that detects system configuration |
Attributes
- buildtest.system.SUPPORTED_PLATFORMS = ['Linux', 'Darwin']
- buildtest.system.SCHEDULERS
- 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
- check()[source]
Based on the module “distro” get system details like linux distro, processor, hostname, etc…
- check_scheduler()[source]
Check existence of batch scheduler and if so determine which scheduler it is. Currently, we support Slurm, LSF, Cobalt, PBS and Torque. We invoke each class and see if its valid state. The checks determine if scheduler binaries exist in $PATH.
- 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
orMODULES_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