Skip to content

Commit

Permalink
Issue #684: Now use spiderT to build mpathA for dbT and update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert McLay committed Jan 18, 2024
1 parent 48d63d6 commit cde7d22
Show file tree
Hide file tree
Showing 8 changed files with 280 additions and 50 deletions.
34 changes: 33 additions & 1 deletion rt/dbT/err.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
step 1
lua ProjectDIR/src/lmod.in.lua shell --regression_testing --version
===========================
Modules based on Lua: Version 8.6.9 2022-02-02 11:25 -04:00
Modules based on Lua: Version 8.7.34 2024-01-05 19:34 -07:00
by Robert McLay [email protected]
===========================
step 2
Expand All @@ -19,3 +19,35 @@ If the avail list is too long consider trying:
"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 3
lua ProjectDIR/src/lmod.in.lua shell --regression_testing purge
===========================
===========================
step 4
runSpiderCmd -o dbT ProjectDIR/rt/dbT/mf4
===========================
===========================
step 5
lua ProjectDIR/src/lmod.in.lua shell --regression_testing load newdir
===========================
===========================
step 6
lua ProjectDIR/src/lmod.in.lua shell --regression_testing --show_hidden av
===========================
ProjectDIR/rt/dbT/mf3
foobar/1.2.3 (H)
ProjectDIR/rt/dbT/mf4
bar/2.3 (H) newdir/1.0 (L)
Where:
H: Hidden 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 7
runSpiderCmd -o dbT ProjectDIR/rt/dbT/mf3:ProjectDIR/rt/dbT/mf4
===========================
126 changes: 126 additions & 0 deletions rt/dbT/out.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,129 @@ MODULEPATH=ProjectDIR/rt/dbT/mf2/Core:ProjectDIR/rt/dbT/mf1/Core;
export MODULEPATH;
_ModuleTable_='_ModuleTable_={MTversion=3,depthT={},family={},mT={},mpathA={"ProjectDIR/rt/dbT/mf2/Core","ProjectDIR/rt/dbT/mf1/Core",},systemBaseMPATH="ProjectDIR/rt/dbT/mf2/Core:ProjectDIR/rt/dbT/mf1/Core",}';
export _ModuleTable_;
===========================
step 3
lua ProjectDIR/src/lmod.in.lua shell --regression_testing purge
===========================
MODULEPATH=ProjectDIR/rt/dbT/mf2/Core:ProjectDIR/rt/dbT/mf1/Core;
export MODULEPATH;
_ModuleTable_='_ModuleTable_={MTversion=3,depthT={},family={},mT={},mpathA={"ProjectDIR/rt/dbT/mf2/Core","ProjectDIR/rt/dbT/mf1/Core",},systemBaseMPATH="ProjectDIR/rt/dbT/mf2/Core:ProjectDIR/rt/dbT/mf1/Core",}';
export _ModuleTable_;
===========================
step 4
runSpiderCmd -o dbT ProjectDIR/rt/dbT/mf4
===========================
timestampFn = {
false,
}
dbT = {
bar = {
["ProjectDIR/rt/dbT/mf4/bar/2.3.lua"] = {
Version = "2.3",
fullName = "bar/2.3",
hidden = true,
mpath = "ProjectDIR/rt/dbT/mf4",
pV = "000000002.000000003.*zfinal",
wV = "000000002.000000003.*zfinal",
},
},
foobar = {
["ProjectDIR/rt/dbT/mf3/foobar/1.2.3.lua"] = {
Version = "1.2.3",
fullName = "foobar/1.2.3",
hidden = false,
mpath = "ProjectDIR/rt/dbT/mf3",
pV = "000000001.000000002.000000003.*zfinal",
parentAA = {
{
"newdir/1.0",
},
},
pathA = {
["/opt/foobar"] = 1,
},
wV = "000000001.000000002.000000003.*zfinal",
},
},
newdir = {
["ProjectDIR/rt/dbT/mf4/newdir/1.0.lua"] = {
Version = "1.0",
fullName = "newdir/1.0",
hidden = false,
mpath = "ProjectDIR/rt/dbT/mf4",
pV = "000000001.*zfinal",
wV = "000000001.*zfinal",
},
},
}
provideByT = {}
===========================
step 5
lua ProjectDIR/src/lmod.in.lua shell --regression_testing load newdir
===========================
LOADEDMODULES=newdir/1.0;
export LOADEDMODULES;
__LMOD_REF_COUNT_MODULEPATH=ProjectDIR/rt/dbT/mf3:1\;ProjectDIR/rt/dbT/mf4:1;
export __LMOD_REF_COUNT_MODULEPATH;
MODULEPATH=ProjectDIR/rt/dbT/mf3:ProjectDIR/rt/dbT/mf4;
export MODULEPATH;
_LMFILES_=ProjectDIR/rt/dbT/mf4/newdir/1.0.lua;
export _LMFILES_;
_ModuleTable_='_ModuleTable_={MTversion=3,depthT={},family={},mT={newdir={fn="ProjectDIR/rt/dbT/mf4/newdir/1.0.lua",fullName="newdir/1.0",loadOrder=1,propT={},stackDepth=0,status="active",userName="newdir",wV="000000001.*zfinal",},},mpathA={"ProjectDIR/rt/dbT/mf3","ProjectDIR/rt/dbT/mf4",},systemBaseMPATH="ProjectDIR/rt/dbT/mf4",}';
export _ModuleTable_;
===========================
step 6
lua ProjectDIR/src/lmod.in.lua shell --regression_testing --show_hidden av
===========================
MODULEPATH=ProjectDIR/rt/dbT/mf3:ProjectDIR/rt/dbT/mf4;
export MODULEPATH;
_ModuleTable_='_ModuleTable_={MTversion=3,depthT={},family={},mT={newdir={fn="ProjectDIR/rt/dbT/mf4/newdir/1.0.lua",fullName="newdir/1.0",loadOrder=1,propT={},stackDepth=0,status="active",userName="newdir",wV="000000001.*zfinal",},},mpathA={"ProjectDIR/rt/dbT/mf3","ProjectDIR/rt/dbT/mf4",},systemBaseMPATH="ProjectDIR/rt/dbT/mf4",}';
export _ModuleTable_;
===========================
step 7
runSpiderCmd -o dbT ProjectDIR/rt/dbT/mf3:ProjectDIR/rt/dbT/mf4
===========================
timestampFn = {
false,
}
dbT = {
bar = {
["ProjectDIR/rt/dbT/mf4/bar/2.3.lua"] = {
Version = "2.3",
fullName = "bar/2.3",
hidden = true,
mpath = "ProjectDIR/rt/dbT/mf4",
pV = "000000002.000000003.*zfinal",
wV = "000000002.000000003.*zfinal",
},
},
foobar = {
["ProjectDIR/rt/dbT/mf3/foobar/1.2.3.lua"] = {
Version = "1.2.3",
fullName = "foobar/1.2.3",
hidden = true,
mpath = "ProjectDIR/rt/dbT/mf3",
pV = "000000001.000000002.000000003.*zfinal",
parentAA = {
{
"newdir/1.0",
},
},
pathA = {
["/opt/foobar"] = 1,
},
wV = "000000001.000000002.000000003.*zfinal",
},
},
newdir = {
["ProjectDIR/rt/dbT/mf4/newdir/1.0.lua"] = {
Version = "1.0",
fullName = "newdir/1.0",
hidden = false,
mpath = "ProjectDIR/rt/dbT/mf4",
pV = "000000001.*zfinal",
wV = "000000001.*zfinal",
},
},
}
provideByT = {}
21 changes: 20 additions & 1 deletion rt/inaccessible/err.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
step 1
lua ProjectDIR/src/lmod.in.lua shell --regression_testing --version
===========================
Modules based on Lua: Version 8.6.9 2022-02-02 11:25 -04:00
Modules based on Lua: Version 8.7.34 2024-01-05 19:34 -07:00
by Robert McLay [email protected]
===========================
step 2
Expand Down Expand Up @@ -58,3 +58,22 @@ lua ProjectDIR/src/lmod.in.lua shell --regression_testing spider software1
software1: software1/1.0
You will need to load all module(s) on any one of the lines below before the "software1/1.0" module is available to load.
compiler1/1.0
===========================
step 10
lua ProjectDIR/src/lmod.in.lua shell --regression_testing load compiler1
===========================
===========================
step 11
lua ProjectDIR/src/lmod.in.lua shell --regression_testing av
===========================
ProjectDIR/rt/inaccessible/mf2/Stages/2017a/modules/Compilers/compiler1/1.0
software1/1.0
ProjectDIR/rt/inaccessible/mf2/Stages/2017a/UI/Compilers
compiler1/1.0 (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".
8 changes: 6 additions & 2 deletions rt/inaccessible/inaccessible.tdesc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- -*- lua -*-
-- -*- lua -*-
local testName = "inaccessible"

testdescript = {
Expand Down Expand Up @@ -36,10 +36,14 @@ testdescript = {
runLmod spider inaccessible # 6
runLmod load extend # 7
runLmod purge # 8
unsetMT
buildSpiderT $MROOT2/Stages/2017a/UI/Compilers:$MROOT2/OtherStages > .cache/lmod/spiderT.lua
buildSpiderT $MROOT2/Stages/2017a/UI/Compilers > .cache/lmod/spiderT.lua
export MODULEPATH=$MROOT2/Stages/2017a/UI/Compilers
runLmod spider software1 # 9
runLmod load compiler1 #10
runLmod av #11
HOME=$ORIG_HOME
Expand Down
22 changes: 22 additions & 0 deletions rt/inaccessible/out.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,25 @@ MODULEPATH=ProjectDIR/rt/inaccessible/mf2/Stages/2017a/UI/Compilers;
export MODULEPATH;
_ModuleTable_='_ModuleTable_={MTversion=3,depthT={},family={},mT={},mpathA={"ProjectDIR/rt/inaccessible/mf2/Stages/2017a/UI/Compilers",},systemBaseMPATH="ProjectDIR/rt/inaccessible/mf2/Stages/2017a/UI/Compilers",}';
export _ModuleTable_;
===========================
step 10
lua ProjectDIR/src/lmod.in.lua shell --regression_testing load compiler1
===========================
LOADEDMODULES=compiler1/1.0;
export LOADEDMODULES;
__LMOD_REF_COUNT_MODULEPATH=ProjectDIR/rt/inaccessible/mf2/Stages/2017a/modules/Compilers/compiler1/1.0:1\;ProjectDIR/rt/inaccessible/mf2/Stages/2017a/UI/Compilers:1;
export __LMOD_REF_COUNT_MODULEPATH;
MODULEPATH=ProjectDIR/rt/inaccessible/mf2/Stages/2017a/modules/Compilers/compiler1/1.0:ProjectDIR/rt/inaccessible/mf2/Stages/2017a/UI/Compilers;
export MODULEPATH;
_LMFILES_=ProjectDIR/rt/inaccessible/mf2/Stages/2017a/UI/Compilers/compiler1/1.0.lua;
export _LMFILES_;
_ModuleTable_='_ModuleTable_={MTversion=3,depthT={},family={},mT={compiler1={fn="ProjectDIR/rt/inaccessible/mf2/Stages/2017a/UI/Compilers/compiler1/1.0.lua",fullName="compiler1/1.0",loadOrder=1,propT={},stackDepth=0,status="active",userName="compiler1",wV="000000001.*zfinal",},},mpathA={"ProjectDIR/rt/inaccessible/mf2/Stages/2017a/modules/Compilers/compiler1/1.0","ProjectDIR/rt/inaccessible/mf2/Stages/2017a/UI/Compilers",},systemBaseMPATH="ProjectDIR/rt/inaccessible/mf2/Stages/2017a/UI/Compilers",}';
export _ModuleTable_;
===========================
step 11
lua ProjectDIR/src/lmod.in.lua shell --regression_testing av
===========================
MODULEPATH=ProjectDIR/rt/inaccessible/mf2/Stages/2017a/modules/Compilers/compiler1/1.0:ProjectDIR/rt/inaccessible/mf2/Stages/2017a/UI/Compilers;
export MODULEPATH;
_ModuleTable_='_ModuleTable_={MTversion=3,depthT={},family={},mT={compiler1={fn="ProjectDIR/rt/inaccessible/mf2/Stages/2017a/UI/Compilers/compiler1/1.0.lua",fullName="compiler1/1.0",loadOrder=1,propT={},stackDepth=0,status="active",userName="compiler1",wV="000000001.*zfinal",},},mpathA={"ProjectDIR/rt/inaccessible/mf2/Stages/2017a/modules/Compilers/compiler1/1.0","ProjectDIR/rt/inaccessible/mf2/Stages/2017a/UI/Compilers",},systemBaseMPATH="ProjectDIR/rt/inaccessible/mf2/Stages/2017a/UI/Compilers",}';
export _ModuleTable_;
Loading

0 comments on commit cde7d22

Please sign in to comment.