Skip to content

Commit

Permalink
reverted unload tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcawood committed Jan 13, 2025
1 parent d2ee850 commit 7bda4ef
Show file tree
Hide file tree
Showing 10 changed files with 37 additions and 43 deletions.
1 change: 0 additions & 1 deletion rt/unload/mf/Compiler/gcc/4.7/mpich2/1.5.2.lua

This file was deleted.

17 changes: 17 additions & 0 deletions rt/unload/mf/Compiler/gcc/4.7/mpich2/1.5.2.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
-- -*- lua -*-
local pkgName = "mpich2"
local fn = myFileName():gsub("%.lua$","")
local fullVersion = barefilename(fn)
local pkgVersion = fullVersion:match("([0-9]+%.[0-9]+)%.?")
local pkgNameFullV = pathJoin(pkgName,fullVersion)
local pkgNameVer = pathJoin(pkgName,pkgVersion)
local hierA = hierarchyA(pkgNameFullV,1)
local compiler_dir = hierA[1]
local pkgRoot = "/unknown/apps"
local mdir = pathJoin(os.getenv('MODULEPATH_ROOT'), "MPI",compiler_dir,pkgNameVer)
compiler_dir = compiler_dir:gsub("/","-"):gsub("%.","_")
local mpihome = pathJoin(pkgRoot, compiler_dir, pkgNameFullV)

family("MPI")
prepend_path('MODULEPATH', mdir)

1 change: 0 additions & 1 deletion rt/unload/mf/Compiler/intel/13.0/mpich2/1.5.2.lua

This file was deleted.

17 changes: 17 additions & 0 deletions rt/unload/mf/Compiler/intel/13.0/mpich2/1.5.2.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
-- -*- lua -*-
local pkgName = "mpich2"
local fn = myFileName():gsub("%.lua$","")
local fullVersion = barefilename(fn)
local pkgVersion = fullVersion:match("([0-9]+%.[0-9]+)%.?")
local pkgNameFullV = pathJoin(pkgName,fullVersion)
local pkgNameVer = pathJoin(pkgName,pkgVersion)
local hierA = hierarchyA(pkgNameFullV,1)
local compiler_dir = hierA[1]
local pkgRoot = "/unknown/apps"
local mdir = pathJoin(os.getenv('MODULEPATH_ROOT'), "MPI",compiler_dir,pkgNameVer)
compiler_dir = compiler_dir:gsub("/","-"):gsub("%.","_")
local mpihome = pathJoin(pkgRoot, compiler_dir, pkgNameFullV)

family("MPI")
prepend_path('MODULEPATH', mdir)

2 changes: 1 addition & 1 deletion rt/unload/mf/Core/B/2.0.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
setenv("TOTO","set_in_B/2.0")
if (mode() == "unload") then
LmodError("Sucessfully raised mode error in unload of B/2.0")
LmodError("Error in unload of B/2.0")
end

21 changes: 0 additions & 21 deletions rt/unload/mf/Core/C/1.0.lua

This file was deleted.

4 changes: 0 additions & 4 deletions rt/unload/mf/Core/D/1.0.lua

This file was deleted.

2 changes: 0 additions & 2 deletions rt/unload/mf/Core/E/1.0.lua

This file was deleted.

2 changes: 0 additions & 2 deletions rt/unload/mf/Core/F/1.0.lua

This file was deleted.

1 change: 0 additions & 1 deletion rt/unload/mf/MPI/gcc/4.7/mpich2/1.5/petsc/3.2.lua

This file was deleted.

1 change: 1 addition & 0 deletions rt/unload/mf/MPI/gcc/4.7/mpich2/1.5/petsc/3.2.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
setenv("PETSC_VERSION","3.2")
1 change: 0 additions & 1 deletion rt/unload/mf/MPI/intel/13.0/mpich2/1.5/petsc/3.2.lua

This file was deleted.

1 change: 1 addition & 0 deletions rt/unload/mf/MPI/intel/13.0/mpich2/1.5/petsc/3.2.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
setenv("PETSC_VERSION","3.2")
9 changes: 0 additions & 9 deletions rt/unload/unload.tdesc
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,6 @@ testdescript = {
runLmod unload intel # 7
runLmod load B # 8
runLmod unload B # 9
runLmod load C # 10
runLmod unload C # 11
# Test mode-specific load functionality
runLmod load F # 12 (Load F first for unload test)
runLmod load D # 13 (Should load E, not affect F)
runLmod list # 14 (Should show D, E, and F loaded)
runLmod unload D # 15 (Should unload F, keep E)
runLmod list # 16 (Should show only E loaded)
HOME=$ORIG_HOME
Expand Down

0 comments on commit 7bda4ef

Please sign in to comment.