mirror of
https://github.com/envmodules/modules.git
synced 2026-06-14 00:42:43 +08:00
ts: test via output on whatis/search subcmds
Signed-off-by: Xavier Delaruelle <xavier.delaruelle@cea.fr>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#%Module
|
||||
if {[info exists env(TESTSUITE_SPIDER_MODPATH1)]} {
|
||||
module-whatis {module description}
|
||||
switch -- $env(TESTSUITE_SPIDER_MODPATH1) {
|
||||
use_modpath2 {
|
||||
module use $env(TESTSUITEDIR)/modulefiles.spider2
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#%Module
|
||||
if {[info exists env(TESTSUITE_SPIDER_MODPATH2)]} {
|
||||
module-whatis {module description}
|
||||
switch -- $env(TESTSUITE_SPIDER_MODPATH2) {
|
||||
use_modpath3 {
|
||||
module use ../../modulefiles.spider3
|
||||
|
||||
@@ -457,6 +457,24 @@ modb/1 modb/2
|
||||
$modlin $modpathre.spider1 $modlin
|
||||
moda/1 <L> moda/2 <L> "
|
||||
|
||||
# whatis/search report (no effect)
|
||||
testouterr_cmd_re sh {whatis modb} OK "$modlin $modpathre.spider2 $modlin
|
||||
\\s+modb/1: module description"
|
||||
testouterr_cmd_re sh {search description} OK "$modlin $modpathre.spider2 $modlin
|
||||
\\s+modb/1: module description
|
||||
|
||||
$modlin $modpathre.spider1 $modlin
|
||||
\\s+moda/1: module description"
|
||||
setenv_var TESTSUITE_VIA modulepath_label1
|
||||
testouterr_cmd_re sh {whatis modb} OK "$modlin My label spider2 $modlin
|
||||
\\s+modb/1: module description"
|
||||
testouterr_cmd_re sh {search description} OK "$modlin My label spider2 $modlin
|
||||
\\s+modb/1: module description
|
||||
|
||||
$modlin My label spider1 $modlin
|
||||
\\s+moda/1: module description"
|
||||
unsetenv_var TESTSUITE_VIA
|
||||
|
||||
# no modulepath reported but via set
|
||||
setenv_loaded_module [list moda/1] [list $modpath.spider1/moda/1]
|
||||
setenv_var __MODULES_LMUSE moda/1&$modpath.spider2
|
||||
|
||||
Reference in New Issue
Block a user