From a9876ac78826e681ecc60fbd3b8a713b6897edd3 Mon Sep 17 00:00:00 2001 From: mcawood Date: Fri, 19 Jan 2024 13:18:08 -0600 Subject: [PATCH] new tests for terse_avail --- rt/terse_avail/err.txt | 72 ++++++++++++++++++++++++++++++++ rt/terse_avail/out.txt | 54 ++++++++++++++++++++++++ rt/terse_avail/terse_avail.tdesc | 5 ++- 3 files changed, 129 insertions(+), 2 deletions(-) create mode 100644 rt/terse_avail/err.txt create mode 100644 rt/terse_avail/out.txt diff --git a/rt/terse_avail/err.txt b/rt/terse_avail/err.txt new file mode 100644 index 000000000..39bdd9f16 --- /dev/null +++ b/rt/terse_avail/err.txt @@ -0,0 +1,72 @@ +=========================== +step 1 +lua ProjectDIR/src/lmod.in.lua shell --regression_testing --version +=========================== +Modules based on Lua: Version 8.7.34 2024-01-05 19:34 -07:00 + by Robert McLay mclay@tacc.utexas.edu +=========================== +step 2 +lua ProjectDIR/src/lmod.in.lua shell --regression_testing load intel +=========================== +=========================== +step 3 +lua ProjectDIR/src/lmod.in.lua shell --regression_testing avail +=========================== +ProjectDIR/rt/terse_avail/mf/Compiler/intel/19 + python/3.7 +ProjectDIR/rt/terse_avail/mf/Core + TACC gcc/9.4 intel/19.1 (L) +This is a list of module extensions. Use "module --nx avail ..." to not show extensions. + CC (E) DDD (E) +These extensions cannot be loaded directly, use "module spider extension_name" for more information. + Where: + E: Extension that is provided by another module + L: Module is loaded +If the avail list is too long consider trying: +"module --default avail" or "ml -d av" to just list the default modules. +"module overview" or "ml ov" to display the number of modules for each name. +Use "module spider" to find all possible modules and extensions. +Use "module keyword key1 key2 ..." to search for all possible modules matching any of the "keys". +=========================== +step 4 +lua ProjectDIR/src/lmod.in.lua shell --regression_testing --nx avail +=========================== +ProjectDIR/rt/terse_avail/mf/Compiler/intel/19 + python/3.7 +ProjectDIR/rt/terse_avail/mf/Core + TACC gcc/9.4 intel/19.1 (L) + Where: + L: Module is loaded +If the avail list is too long consider trying: +"module --default avail" or "ml -d av" to just list the default modules. +"module overview" or "ml ov" to display the number of modules for each name. +Use "module spider" to find all possible modules and extensions. +Use "module keyword key1 key2 ..." to search for all possible modules matching any of the "keys". +=========================== +step 5 +lua ProjectDIR/src/lmod.in.lua shell --regression_testing --terse avail +=========================== +ProjectDIR/rt/terse_avail/mf/Compiler/intel/19: +python/ +python/3.7 +ProjectDIR/rt/terse_avail/mf/Core: +TACC +gcc/ +gcc/9.4 +intel/ +intel/19.1 +=========================== +step 6 +lua ProjectDIR/src/lmod.in.lua shell --regression_testing --terse_show_extensions avail +=========================== +ProjectDIR/rt/terse_avail/mf/Compiler/intel/19: +python/ +python/3.7 +ProjectDIR/rt/terse_avail/mf/Core: +TACC +gcc/ +gcc/9.4 +intel/ +intel/19.1 +# CC +# DDD diff --git a/rt/terse_avail/out.txt b/rt/terse_avail/out.txt new file mode 100644 index 000000000..bf7b87696 --- /dev/null +++ b/rt/terse_avail/out.txt @@ -0,0 +1,54 @@ +=========================== +step 1 +lua ProjectDIR/src/lmod.in.lua shell --regression_testing --version +=========================== +=========================== +step 2 +lua ProjectDIR/src/lmod.in.lua shell --regression_testing load intel +=========================== +LMOD_FAMILY_COMPILER=intel; +export LMOD_FAMILY_COMPILER; +LMOD_FAMILY_COMPILER_VERSION=19.1; +export LMOD_FAMILY_COMPILER_VERSION; +LOADEDMODULES=intel/19.1; +export LOADEDMODULES; +__LMOD_REF_COUNT_MODULEPATH=ProjectDIR/rt/terse_avail/mf/Compiler/intel/19:1\;ProjectDIR/rt/terse_avail/mf/Core:1; +export __LMOD_REF_COUNT_MODULEPATH; +MODULEPATH=ProjectDIR/rt/terse_avail/mf/Compiler/intel/19:ProjectDIR/rt/terse_avail/mf/Core; +export MODULEPATH; +_LMFILES_=ProjectDIR/rt/terse_avail/mf/Core/intel/19.1.lua; +export _LMFILES_; +_ModuleTable_='_ModuleTable_={MTversion=3,depthT={},family={compiler="intel",},mT={intel={fn="ProjectDIR/rt/terse_avail/mf/Core/intel/19.1.lua",fullName="intel/19.1",loadOrder=1,propT={},stackDepth=0,status="active",userName="intel",wV="000000019.000000001.*zfinal",},},mpathA={"ProjectDIR/rt/terse_avail/mf/Compiler/intel/19","ProjectDIR/rt/terse_avail/mf/Core",},systemBaseMPATH="ProjectDIR/rt/terse_avail/mf/Core",}'; +export _ModuleTable_; +=========================== +step 3 +lua ProjectDIR/src/lmod.in.lua shell --regression_testing avail +=========================== +MODULEPATH=ProjectDIR/rt/terse_avail/mf/Compiler/intel/19:ProjectDIR/rt/terse_avail/mf/Core; +export MODULEPATH; +_ModuleTable_='_ModuleTable_={MTversion=3,depthT={},family={compiler="intel",},mT={intel={fn="ProjectDIR/rt/terse_avail/mf/Core/intel/19.1.lua",fullName="intel/19.1",loadOrder=1,propT={},stackDepth=0,status="active",userName="intel",wV="000000019.000000001.*zfinal",},},mpathA={"ProjectDIR/rt/terse_avail/mf/Compiler/intel/19","ProjectDIR/rt/terse_avail/mf/Core",},systemBaseMPATH="ProjectDIR/rt/terse_avail/mf/Core",}'; +export _ModuleTable_; +=========================== +step 4 +lua ProjectDIR/src/lmod.in.lua shell --regression_testing --nx avail +=========================== +MODULEPATH=ProjectDIR/rt/terse_avail/mf/Compiler/intel/19:ProjectDIR/rt/terse_avail/mf/Core; +export MODULEPATH; +_ModuleTable_='_ModuleTable_={MTversion=3,depthT={},family={compiler="intel",},mT={intel={fn="ProjectDIR/rt/terse_avail/mf/Core/intel/19.1.lua",fullName="intel/19.1",loadOrder=1,propT={},stackDepth=0,status="active",userName="intel",wV="000000019.000000001.*zfinal",},},mpathA={"ProjectDIR/rt/terse_avail/mf/Compiler/intel/19","ProjectDIR/rt/terse_avail/mf/Core",},systemBaseMPATH="ProjectDIR/rt/terse_avail/mf/Core",}'; +export _ModuleTable_; +=========================== +step 5 +lua ProjectDIR/src/lmod.in.lua shell --regression_testing --terse avail +=========================== +MODULEPATH=ProjectDIR/rt/terse_avail/mf/Compiler/intel/19:ProjectDIR/rt/terse_avail/mf/Core; +export MODULEPATH; +_ModuleTable_='_ModuleTable_={MTversion=3,depthT={},family={compiler="intel",},mT={intel={fn="ProjectDIR/rt/terse_avail/mf/Core/intel/19.1.lua",fullName="intel/19.1",loadOrder=1,propT={},stackDepth=0,status="active",userName="intel",wV="000000019.000000001.*zfinal",},},mpathA={"ProjectDIR/rt/terse_avail/mf/Compiler/intel/19","ProjectDIR/rt/terse_avail/mf/Core",},systemBaseMPATH="ProjectDIR/rt/terse_avail/mf/Core",}'; +export _ModuleTable_; +=========================== +step 6 +lua ProjectDIR/src/lmod.in.lua shell --regression_testing --terse_show_extensions avail +=========================== +MODULEPATH=ProjectDIR/rt/terse_avail/mf/Compiler/intel/19:ProjectDIR/rt/terse_avail/mf/Core; +export MODULEPATH; +_ModuleTable_='_ModuleTable_={MTversion=3,depthT={},family={compiler="intel",},mT={intel={fn="ProjectDIR/rt/terse_avail/mf/Core/intel/19.1.lua",fullName="intel/19.1",loadOrder=1,propT={},stackDepth=0,status="active",userName="intel",wV="000000019.000000001.*zfinal",},},mpathA={"ProjectDIR/rt/terse_avail/mf/Compiler/intel/19","ProjectDIR/rt/terse_avail/mf/Core",},systemBaseMPATH="ProjectDIR/rt/terse_avail/mf/Core",}'; +export _ModuleTable_; diff --git a/rt/terse_avail/terse_avail.tdesc b/rt/terse_avail/terse_avail.tdesc index 15ff3ec21..2d262700d 100644 --- a/rt/terse_avail/terse_avail.tdesc +++ b/rt/terse_avail/terse_avail.tdesc @@ -29,8 +29,9 @@ testdescript = { runLmod --version # 1 runLmod load intel # 2 runLmod avail # 3 - runLmod --terse avail # 4 - runLmod --terse_show_extensions avail #5 + runLmod --nx avail # 4 + runLmod --terse avail # 5 + runLmod --terse_show_extensions avail #6 HOME=$ORIG_HOME