:py:mod:`buildtest.system` ========================== .. py:module:: buildtest.system .. autoapi-nested-parse:: This module detects System changes defined in class BuildTestSystem. Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: buildtest.system.BuildTestSystem Attributes ~~~~~~~~~~ .. autoapisummary:: buildtest.system.SUPPORTED_PLATFORMS .. py:data:: SUPPORTED_PLATFORMS :value: ['Linux', 'Darwin'] .. py:class:: BuildTestSystem BuildTestSystem is a class that detects system configuration Constructor method for BuildTestSystem(). Defines all system configuration using class variable **system** which is a dictionary. .. py:attribute:: system .. py:method:: get() .. py:method:: check() Based on the module "distro" get system details like linux distro, processor, hostname, etc... .. py:method:: detect_module_tool() 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