buildtest.system

This module detects System changes defined in class BuildTestSystem.

Module Contents

Classes

BuildTestSystem()

BuildTestSystem is a class that detects system configuration and outputs the result

Functions

get_lsf_queues()

Return json dictionary of available LSF Queues and their queue states

get_slurm_clusters()

get_slurm_partitions()

Get slurm partitions

get_slurm_qos()

Return all slurm qos

class buildtest.system.BuildTestSystem

BuildTestSystem is a class that detects system configuration and outputs the result in .run file which are generated upon test execution. This module also keeps track of what is supported (or not supported) for a system.

system
check_lmod(self)

Check if the system has Lmod installed, determine by setting of LMOD_DIR variable

check_scheduler(self)

Check for batch scheduler. Currently checks for LSF or SLURM by running bhosts and sinfo command. It must be present in $PATH when running buildtest. Since it’s unlikely for a single host to have more than one scheduler, we check for multiple and return the first found.

Returns

return string LSF or SLURM. If neither found returns None

Return type

str or None

init_system(self)

Based on the module “distro” set the linux distrubution name and version

buildtest.system.get_lsf_queues()

Return json dictionary of available LSF Queues and their queue states

buildtest.system.get_slurm_clusters()
buildtest.system.get_slurm_partitions()

Get slurm partitions

buildtest.system.get_slurm_qos()

Return all slurm qos