From 516266fa3a15b030ab18fd11237c718e038d6c4e Mon Sep 17 00:00:00 2001 From: Robert McLay Date: Wed, 28 Feb 2024 17:10:08 -0600 Subject: [PATCH] Issue #684: update gold files for dbT test --- rt/dbT/err.txt | 10 ++++-- rt/dbT/out.txt | 95 +++++++++++++++++++++++++++++++++++++++++++++++--- 2 files changed, 98 insertions(+), 7 deletions(-) diff --git a/rt/dbT/err.txt b/rt/dbT/err.txt index fe428e792..7a6b9ed9f 100644 --- a/rt/dbT/err.txt +++ b/rt/dbT/err.txt @@ -25,14 +25,18 @@ lua ProjectDIR/src/lmod.in.lua shell --regression_testing purge =========================== =========================== step 4 -runSpiderCmd -o dbT ProjectDIR/rt/dbT/mf4 +runSpiderCmd -o spiderT ProjectDIR/rt/dbT/mf4 =========================== =========================== step 5 -lua ProjectDIR/src/lmod.in.lua shell --regression_testing load newdir +runSpiderCmd -o dbT ProjectDIR/rt/dbT/mf4 =========================== =========================== step 6 +lua ProjectDIR/src/lmod.in.lua shell --regression_testing load newdir +=========================== +=========================== +step 7 lua ProjectDIR/src/lmod.in.lua shell --regression_testing --show_hidden av =========================== ProjectDIR/rt/dbT/mf3 @@ -48,6 +52,6 @@ If the avail list is too long consider trying: 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 +step 8 runSpiderCmd -o dbT ProjectDIR/rt/dbT/mf3:ProjectDIR/rt/dbT/mf4 =========================== diff --git a/rt/dbT/out.txt b/rt/dbT/out.txt index 01f614baf..7deb9a126 100644 --- a/rt/dbT/out.txt +++ b/rt/dbT/out.txt @@ -22,6 +22,93 @@ _ModuleTable_='_ModuleTable_={MTversion=3,depthT={},family={},mT={},mpathA={"Pro export _ModuleTable_; =========================== step 4 +runSpiderCmd -o spiderT ProjectDIR/rt/dbT/mf4 +=========================== +timestampFn = { + false, +} +mrcT = { + alias2modT = {}, + hiddenT = { + ["foobar/1.2.3"] = true, + }, + version2modT = {}, +} +mrcMpathT = { + ["ProjectDIR/rt/dbT/mf3"] = { + hiddenT = { + ["foobar/1.2.3"] = true, + }, + }, +} +spiderT = { + ["ProjectDIR/rt/dbT/mf3"] = { + foobar = { + defaultA = { + { + barefn = ".modulerc.lua", + defaultIdx = 2, + fn = "ProjectDIR/rt/dbT/mf3/foobar/.modulerc.lua", + fullName = "foobar/.modulerc", + luaExt = 10, + mpath = "ProjectDIR/rt/dbT/mf3", + value = false, + }, + }, + defaultT = { + barefn = ".modulerc.lua", + defaultIdx = 2, + fn = "ProjectDIR/rt/dbT/mf3/foobar/.modulerc.lua", + fullName = "foobar/.modulerc", + luaExt = 10, + mpath = "ProjectDIR/rt/dbT/mf3", + value = false, + }, + dirT = {}, + fileT = { + ["foobar/1.2.3"] = { + Version = "1.2.3", + canonical = "1.2.3", + fn = "ProjectDIR/rt/dbT/mf3/foobar/1.2.3.lua", + luaExt = 6, + mpath = "ProjectDIR/rt/dbT/mf3", + pV = "000000001.000000002.000000003.*zfinal", + pathA = { + ["/opt/foobar"] = 1, + }, + wV = "000000001.000000002.000000003.*zfinal", + }, + }, + }, + }, + ["ProjectDIR/rt/dbT/mf4"] = { + newdir = { + defaultA = {}, + defaultT = {}, + dirT = {}, + fileT = { + ["newdir/1.0"] = { + Version = "1.0", + canonical = "1.0", + changeMPATH = true, + fn = "ProjectDIR/rt/dbT/mf4/newdir/1.0.lua", + luaExt = 4, + mpath = "ProjectDIR/rt/dbT/mf4", + pV = "000000001.*zfinal", + wV = "000000001.*zfinal", + }, + }, + }, + }, + version = 5, +} +mpathMapT = { + ["ProjectDIR/rt/dbT/mf3"] = { + ["newdir/1.0"] = "ProjectDIR/rt/dbT/mf4", + }, +} +=========================== +step 5 runSpiderCmd -o dbT ProjectDIR/rt/dbT/mf4 =========================== timestampFn = { @@ -32,7 +119,7 @@ dbT = { ["ProjectDIR/rt/dbT/mf3/foobar/1.2.3.lua"] = { Version = "1.2.3", fullName = "foobar/1.2.3", - hidden = false, + hidden = true, mpath = "ProjectDIR/rt/dbT/mf3", pV = "000000001.000000002.000000003.*zfinal", parentAA = { @@ -59,7 +146,7 @@ dbT = { } provideByT = {} =========================== -step 5 +step 6 lua ProjectDIR/src/lmod.in.lua shell --regression_testing load newdir =========================== LOADEDMODULES=newdir/1.0; @@ -73,7 +160,7 @@ 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 +step 7 lua ProjectDIR/src/lmod.in.lua shell --regression_testing --show_hidden av =========================== MODULEPATH=ProjectDIR/rt/dbT/mf3:ProjectDIR/rt/dbT/mf4; @@ -81,7 +168,7 @@ 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 +step 8 runSpiderCmd -o dbT ProjectDIR/rt/dbT/mf3:ProjectDIR/rt/dbT/mf4 =========================== timestampFn = {