Skip to content

Commit

Permalink
#667 terse_avail with extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcawood committed Jan 16, 2024
1 parent 076a329 commit 7bdd46c
Show file tree
Hide file tree
Showing 7 changed files with 68 additions and 0 deletions.
1 change: 1 addition & 0 deletions rt/terse_avail/mf/Compiler/gcc/9/python/3.7.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
extensions("a/1.1, b/2.1, CC/3.1")
1 change: 1 addition & 0 deletions rt/terse_avail/mf/Compiler/gcc/9/snake/3.9.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
extensions("d/1.1")
1 change: 1 addition & 0 deletions rt/terse_avail/mf/Compiler/intel/19/python/3.7.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
extensions("CC/3.1","DDD/4.1")
Empty file added rt/terse_avail/mf/Core/TACC.lua
Empty file.
3 changes: 3 additions & 0 deletions rt/terse_avail/mf/Core/gcc/9.4.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
local mroot = os.getenv("MODULEPATH_ROOT")
family("compiler")
prepend_path("MODULEPATH",pathJoin(mroot,"Compiler/gcc/9"))
3 changes: 3 additions & 0 deletions rt/terse_avail/mf/Core/intel/19.1.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
local mroot = os.getenv("MODULEPATH_ROOT")
family("compiler")
prepend_path("MODULEPATH",pathJoin(mroot,"Compiler/intel/19"))
59 changes: 59 additions & 0 deletions rt/terse_avail/terse_avail.tdesc
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
-- -*- lua -*-
testdescript = {
owner = "rtm",
product = "modules",
description = [[
Test initial module load
]],
keywords = {"avail" },

active = 1,
testName = "avail",
job_submit_method = "INTERACTIVE",

runScript = [[
. $(projectDir)/rt/common_funcs.sh
unsetMT
initStdEnvVars
export LMOD_TERM_WIDTH=3000
MODULEPATH_ROOT=$(testDir)/mf; export MODULEPATH_ROOT
MODULEPATH=$(testDir)/mf/Core//
export MODULEPATH
unset TERM
rm -fr _stderr.* _stdout.* out.* err.* .lmod.d .lmodrc.lua .cache .config
cp $(testDir)/.lmodrc.lua .lmodrc.lua
runLmod --version # 1
runLmod load intel # 2
runLmod avail # 3
runLmod --terse avail # 4
runLmod --terse_show_extensions avail #5
HOME=$ORIG_HOME
cat _stdout.[0-9][0-9][0-9] > _stdout.orig
joinBase64Results -bash _stdout.orig _stdout.new
cleanUp _stdout.new out.txt
cat _stderr.[0-9][0-9][0-9] > _stderr.orig
cleanUp _stderr.orig err.txt
rm -f results.csv
wrapperDiff --csv results.csv $(testDir)/out.txt out.txt
wrapperDiff --csv results.csv $(testDir)/err.txt err.txt
testFinish -r $(resultFn) -t $(runtimeFn) results.csv
]],


blessScript = [[
# perform what is needed
]],

tests = {
{ id='t1'},
},

}

0 comments on commit 7bdd46c

Please sign in to comment.