| 1 |
############################################################################## |
| 2 |
# Modules Revision 3.0 |
| 3 |
# Providing a flexible user environment |
| 4 |
# |
| 5 |
# File: modules.50-cmds/%M% |
| 6 |
# Revision: %I% |
| 7 |
# First Edition: 2020/12/20 |
| 8 |
# Last Mod.: %U%, %G% |
| 9 |
# |
| 10 |
# Authors: Xavier Delaruelle, [email protected] |
| 11 |
# |
| 12 |
# Description: Testuite testsequence |
| 13 |
# Command: load, unload |
| 14 |
# Modulefiles: |
| 15 |
# Sub-Command: |
| 16 |
# |
| 17 |
# Comment: %C{ |
| 18 |
# Check sticky/super-sticky modules that should not be unloaded |
| 19 |
# unless reloaded |
| 20 |
# }C% |
| 21 |
# |
| 22 |
############################################################################## |
| 23 |
|
| 24 |
skip_if_quick_mode |
| 25 |
|
| 26 |
set mp $modpath.3 |
| 27 |
set mpre $modpathre.3 |
| 28 |
setenv_path_var MODULEPATH $mp |
| 29 |
|
| 30 |
# disable advanced version specifiers not to get auto symbols in the way |
| 31 |
setenv_var MODULES_ADVANCED_VERSION_SPEC 0 |
| 32 |
|
| 33 |
# ensure avail tests have implicit default enabled |
| 34 |
setenv_var MODULES_IMPLICIT_DEFAULT 1 |
| 35 |
|
| 36 |
|
| 37 |
# test mod that is declared both sticky and super-sticky |
| 38 |
set anslo [list] |
| 39 |
lappend anslo [list set _LMFILES_ $mp/sticky/2.0] |
| 40 |
lappend anslo [list set LOADEDMODULES sticky/2.0] |
| 41 |
lappend anslo [list set __MODULES_LMTAG sticky/2.0&sticky&super-sticky] |
| 42 |
testouterr_cmd_re sh {load sticky/2.0} $anslo {} |
| 43 |
|
| 44 |
setenv_loaded_module [list sticky/2.0] [list $mp/sticky/2.0] |
| 45 |
setenv_var __MODULES_LMTAG sticky/2.0&sticky&super-sticky |
| 46 |
|
| 47 |
testouterr_cmd_re sh {unload sticky/2.0} ERR [msg_unload {sticky/2.0 <S:sS>} $err_superstickyunload] |
| 48 |
testouterr_cmd_re sh {unload -f sticky/2.0} ERR [msg_unload {sticky/2.0 <S:sS>} $err_superstickyunload] |
| 49 |
|
| 50 |
# test when persistent info is cleared |
| 51 |
unsetenv_var __MODULES_LMTAG |
| 52 |
set ans [list] |
| 53 |
lappend ans [list unset _LMFILES_] |
| 54 |
lappend ans [list unset LOADEDMODULES] |
| 55 |
testouterr_cmd_re sh {unload sticky/2.0} $ans {} |
| 56 |
|
| 57 |
setenv_loaded_module [list sticky/3.0] [list $mp/sticky/3.0] |
| 58 |
set ans [list] |
| 59 |
lappend ans [list unset _LMFILES_] |
| 60 |
lappend ans [list unset LOADEDMODULES] |
| 61 |
testouterr_cmd_re sh {unload sticky/3.0} $ans {} |
| 62 |
|
| 63 |
# persistent info cleared but break in modulefile |
| 64 |
setenv_var TESTSUITE_STICKY_BREAK 1 |
| 65 |
testouterr_cmd_re sh {unload sticky/3.0} ERR [msg_unload sticky/3.0 $err_evalabort] |
| 66 |
|
| 67 |
# test cumulative stickiness declarations |
| 68 |
setenv_var TESTSUITE_STICKY_GENERIC 2 |
| 69 |
unsetenv_loaded_module |
| 70 |
|
| 71 |
set anslo [list] |
| 72 |
lappend anslo [list set _LMFILES_ $mp/sticky/1.0] |
| 73 |
lappend anslo [list set LOADEDMODULES sticky/1.0] |
| 74 |
lappend anslo [list set __MODULES_LMTAG sticky/1.0&sticky] |
| 75 |
testouterr_cmd_re sh {load sticky/1.0} $anslo {} |
| 76 |
|
| 77 |
setenv_loaded_module [list sticky/1.0] [list $mp/sticky/1.0] |
| 78 |
setenv_var __MODULES_LMTAG sticky/1.0&sticky |
| 79 |
|
| 80 |
set tserr [msg_unload {sticky/1.0 <S>} $err_stickyunload]\n\n[msg_switch {sticky/1.0 <S>} sticky/2.0 [err_swoff sticky/1.0]] |
| 81 |
testouterr_cmd_re sh {switch sticky/2.0} ERR $tserr |
| 82 |
set tserr [msg_unload {sticky/1.0 <S>} $err_stickyunload]\n\n[msg_switch {sticky/1.0 <S>} sticky [err_swoff sticky/1.0]] |
| 83 |
testouterr_cmd_re sh {switch sticky} ERR $tserr |
| 84 |
set ans [list] |
| 85 |
lappend ans [list set __MODULES_LMSTICKYRULE sticky/2.0&sticky|sticky] |
| 86 |
lappend ans [list set _LMFILES_ $mp/sticky/2.0:$mp/foo/2.0] |
| 87 |
lappend ans [list set LOADEDMODULES sticky/2.0:foo/2.0] |
| 88 |
lappend ans [list set __MODULES_LMTAG sticky/2.0&sticky] |
| 89 |
set tserr [msg_unload {sticky/1.0 <S>}]\n[msg_load {sticky/2.0 <S>}]\n[msg_load foo/2.0] |
| 90 |
testouterr_cmd_re sh {restore testsuite/home/coll-sticky-4} $ans $tserr |
| 91 |
set ans [list] |
| 92 |
lappend ans [list set __MODULES_LMSTICKYRULE sticky/4.0&sticky|sticky] |
| 93 |
lappend ans [list set _LMFILES_ $mp/sticky/4.0:$mp/foo/2.0] |
| 94 |
lappend ans [list set LOADEDMODULES sticky/4.0:foo/2.0] |
| 95 |
lappend ans [list set __MODULES_LMTAG sticky/4.0&sticky] |
| 96 |
set tserr [msg_unload {sticky/1.0 <S>}]\n[msg_load {sticky/4.0 <S>}]\n[msg_load foo/2.0] |
| 97 |
testouterr_cmd_re sh {restore testsuite/home/coll-sticky-5} $ans $tserr |
| 98 |
|
| 99 |
setenv_var TESTSUITE_SUPER_STICKY 1 |
| 100 |
setenv_var __MODULES_LMTAG sticky/1.0&super-sticky |
| 101 |
set tserr [msg_unload {sticky/1.0 <sS>} $err_superstickyunload]\n\n[msg_switch {sticky/1.0 <sS>} sticky [err_swoff sticky/1.0]] |
| 102 |
testouterr_cmd_re sh {switch sticky} ERR $tserr |
| 103 |
set ans [list] |
| 104 |
lappend ans [list set __MODULES_LMSTICKYRULE sticky/2.0&super-sticky|sticky] |
| 105 |
lappend ans [list set _LMFILES_ $mp/sticky/1.0:$mp/sticky/2.0:$mp/foo/2.0] |
| 106 |
lappend ans [list set LOADEDMODULES sticky/1.0:sticky/2.0:foo/2.0] |
| 107 |
lappend ans [list set __MODULES_LMTAG sticky/1.0&super-sticky:sticky/2.0&super-sticky] |
| 108 |
lappend ans [list ERR] |
| 109 |
set tserr [msg_unload {sticky/1.0 <sS>} $err_superstickyunload]\n\n[msg_load {sticky/2.0 <sS>}]\n[msg_load foo/2.0] |
| 110 |
testouterr_cmd_re sh {restore testsuite/home/coll-sticky-4} $ans $tserr |
| 111 |
unsetenv_var TESTSUITE_SUPER_STICKY |
| 112 |
|
| 113 |
setenv_var TESTSUITE_STICKY_GENERIC 3 |
| 114 |
unsetenv_loaded_module |
| 115 |
unsetenv_var __MODULES_LMTAG |
| 116 |
|
| 117 |
set anslo [list] |
| 118 |
lappend anslo [list set __MODULES_LMSTICKYRULE sticky/1.0&super-sticky|sticky] |
| 119 |
lappend anslo [list set _LMFILES_ $mp/sticky/1.0] |
| 120 |
lappend anslo [list set LOADEDMODULES sticky/1.0] |
| 121 |
lappend anslo [list set __MODULES_LMTAG sticky/1.0&super-sticky&sticky] |
| 122 |
testouterr_cmd_re sh {load sticky/1.0} $anslo {} |
| 123 |
|
| 124 |
setenv_loaded_module [list sticky/1.0] [list $mp/sticky/1.0] |
| 125 |
setenv_var __MODULES_LMSTICKYRULE sticky/1.0&super-sticky|sticky |
| 126 |
setenv_var __MODULES_LMTAG sticky/1.0&sticky&super-sticky |
| 127 |
set tserr [msg_unload {sticky/1.0 <S:sS>} $err_stickyunload]\n\n[msg_switch {sticky/1.0 <S:sS>} sticky/2.0 [err_swoff sticky/1.0]] |
| 128 |
testouterr_cmd_re sh {switch sticky/2.0} ERR $tserr |
| 129 |
set ans [list] |
| 130 |
lappend ans [list set __MODULES_LMSTICKYRULE sticky/2.0&super-sticky|sticky] |
| 131 |
lappend ans [list set _LMFILES_ $mp/sticky/2.0:$mp/foo/2.0] |
| 132 |
lappend ans [list set LOADEDMODULES sticky/2.0:foo/2.0] |
| 133 |
lappend ans [list set __MODULES_LMTAG sticky/2.0&super-sticky] |
| 134 |
set tserr [msg_unload {sticky/1.0 <S:sS>}]\n[msg_load {sticky/2.0 <sS>}]\n[msg_load foo/2.0] |
| 135 |
testouterr_cmd_re sh {restore testsuite/home/coll-sticky-4} $ans $tserr |
| 136 |
|
| 137 |
setenv_var TESTSUITE_STICKY_GENERIC 4 |
| 138 |
unsetenv_loaded_module |
| 139 |
unsetenv_var __MODULES_LMTAG |
| 140 |
unsetenv_var __MODULES_LMSTICKYRULE |
| 141 |
|
| 142 |
set anslo [list] |
| 143 |
lappend anslo [list set __MODULES_LMSTICKYRULE sticky/1.0&sticky|sticky] |
| 144 |
lappend anslo [list set _LMFILES_ $mp/sticky/1.0] |
| 145 |
lappend anslo [list set LOADEDMODULES sticky/1.0] |
| 146 |
lappend anslo [list set __MODULES_LMTAG sticky/1.0&sticky&super-sticky] |
| 147 |
testouterr_cmd_re sh {load sticky/1.0} $anslo {} |
| 148 |
|
| 149 |
setenv_loaded_module [list sticky/1.0] [list $mp/sticky/1.0] |
| 150 |
setenv_var __MODULES_LMSTICKYRULE sticky/1.0&sticky|sticky |
| 151 |
setenv_var __MODULES_LMTAG sticky/1.0&sticky&super-sticky |
| 152 |
|
| 153 |
set tserr [msg_unload {sticky/1.0 <S:sS>} $err_superstickyunload]\n\n[msg_switch {sticky/1.0 <S:sS>} sticky [err_swoff sticky/1.0]] |
| 154 |
testouterr_cmd_re sh {switch sticky} ERR $tserr |
| 155 |
set ans [list] |
| 156 |
lappend ans [list set __MODULES_LMSTICKYRULE sticky/1.0&sticky|sticky:sticky/2.0&sticky|sticky] |
| 157 |
lappend ans [list set _LMFILES_ $mp/sticky/1.0:$mp/sticky/2.0:$mp/foo/2.0] |
| 158 |
lappend ans [list set LOADEDMODULES sticky/1.0:sticky/2.0:foo/2.0] |
| 159 |
lappend ans [list set __MODULES_LMTAG sticky/1.0&sticky&super-sticky:sticky/2.0&sticky] |
| 160 |
lappend ans [list ERR] |
| 161 |
set tserr [msg_unload {sticky/1.0 <S:sS>} $err_superstickyunload]\n\n[msg_load {sticky/2.0 <S>}]\n[msg_load foo/2.0] |
| 162 |
testouterr_cmd_re sh {restore testsuite/home/coll-sticky-4} $ans $tserr |
| 163 |
|
| 164 |
setenv_var TESTSUITE_STICKY_GENERIC 5 |
| 165 |
unsetenv_loaded_module |
| 166 |
unsetenv_var __MODULES_LMTAG |
| 167 |
unsetenv_var __MODULES_LMSTICKYRULE |
| 168 |
|
| 169 |
set anslo [list] |
| 170 |
lappend anslo [list set __MODULES_LMSTICKYRULE sticky/1.0&sticky|sticky&super-sticky|sticky] |
| 171 |
lappend anslo [list set _LMFILES_ $mp/sticky/1.0] |
| 172 |
lappend anslo [list set LOADEDMODULES sticky/1.0] |
| 173 |
lappend anslo [list set __MODULES_LMTAG sticky/1.0&sticky&super-sticky] |
| 174 |
testouterr_cmd_re sh {load sticky/1.0} $anslo {} |
| 175 |
|
| 176 |
setenv_loaded_module [list sticky/1.0] [list $mp/sticky/1.0] |
| 177 |
setenv_var __MODULES_LMSTICKYRULE sticky/1.0&sticky|sticky&super-sticky|sticky |
| 178 |
setenv_var __MODULES_LMTAG sticky/1.0&sticky&super-sticky |
| 179 |
|
| 180 |
set ans [list] |
| 181 |
lappend ans [list set __MODULES_LMSTICKYRULE sticky/2.0&sticky|sticky&super-sticky|sticky] |
| 182 |
lappend ans [list set _LMFILES_ $mp/sticky/2.0] |
| 183 |
lappend ans [list set LOADEDMODULES sticky/2.0] |
| 184 |
lappend ans [list set __MODULES_LMTAG sticky/2.0&sticky&super-sticky] |
| 185 |
testouterr_cmd_re sh {switch sticky/2.0} $ans {} |
| 186 |
set ans [list] |
| 187 |
lappend ans [list set __MODULES_LMSTICKYRULE sticky/4.0&sticky|sticky&super-sticky|sticky] |
| 188 |
lappend ans [list set _LMFILES_ $mp/sticky/4.0:$mp/foo/2.0] |
| 189 |
lappend ans [list set LOADEDMODULES sticky/4.0:foo/2.0] |
| 190 |
lappend ans [list set __MODULES_LMTAG sticky/4.0&sticky&super-sticky] |
| 191 |
set tserr [msg_unload {sticky/1.0 <S:sS>}]\n[msg_load {sticky/4.0 <S:sS>}]\n[msg_load foo/2.0] |
| 192 |
testouterr_cmd_re sh {restore testsuite/home/coll-sticky-5} $ans $tserr |
| 193 |
|
| 194 |
# test cumulative stickiness declarations on deep modules |
| 195 |
setenv_var TESTSUITE_STICKY_GENERIC 6 |
| 196 |
unsetenv_loaded_module |
| 197 |
unsetenv_var __MODULES_LMTAG |
| 198 |
unsetenv_var __MODULES_LMSTICKYRULE |
| 199 |
|
| 200 |
set anslo [list] |
| 201 |
lappend anslo [list set _LMFILES_ $mp/stickysub/dir1/1.0] |
| 202 |
lappend anslo [list set LOADEDMODULES stickysub/dir1/1.0] |
| 203 |
lappend anslo [list set __MODULES_LMTAG stickysub/dir1/1.0&sticky] |
| 204 |
testouterr_cmd_re sh {load stickysub/dir1/1.0} $anslo {} |
| 205 |
|
| 206 |
setenv_loaded_module [list stickysub/dir1/1.0] [list $mp/stickysub/dir1/1.0] |
| 207 |
setenv_var __MODULES_LMTAG stickysub/dir1/1.0&sticky |
| 208 |
|
| 209 |
set tserr [msg_unload {stickysub/dir1/1.0 <S>} $err_stickyunload]\n\n[msg_switch {stickysub/dir1/1.0 <S>} stickysub [err_swoff stickysub/dir1/1.0]] |
| 210 |
testouterr_cmd_re sh {switch stickysub} ERR $tserr |
| 211 |
set tserr [msg_unload {stickysub/dir1/1.0 <S>} $err_stickyunload]\n\n[msg_switch {stickysub/dir1/1.0 <S>} stickysub/dir1 [err_swoff stickysub/dir1/1.0]] |
| 212 |
testouterr_cmd_re sh {switch stickysub/dir1} ERR $tserr |
| 213 |
set ans [list] |
| 214 |
lappend ans [list set _LMFILES_ $mp/stickysub/dir1/1.0] |
| 215 |
lappend ans [list set LOADEDMODULES stickysub/dir1/1.0] |
| 216 |
lappend ans [list set __MODULES_LMTAG stickysub/dir1/1.0&sticky] |
| 217 |
testouterr_cmd_re sh {switch stickysub/dir1/1.0} $ans {} |
| 218 |
set tserr [msg_unload {stickysub/dir1/1.0 <S>} $err_stickyunload]\n\n[msg_switch {stickysub/dir1/1.0 <S>} stickysub/dir1/2.0 [err_swoff stickysub/dir1/1.0]] |
| 219 |
testouterr_cmd_re sh {switch stickysub/dir1/2.0} ERR $tserr |
| 220 |
set ans [list] |
| 221 |
lappend ans [list set _LMFILES_ $mp/stickysub/dir2/4.0:$mp/foo/2.0] |
| 222 |
lappend ans [list set LOADEDMODULES stickysub/dir2/4.0:foo/2.0] |
| 223 |
lappend ans [list unset __MODULES_LMTAG] |
| 224 |
set tserr [msg_unload {stickysub/dir1/1.0 <S>}]\n[msg_load stickysub/dir2/4.0]\n[msg_load foo/2.0] |
| 225 |
testouterr_cmd_re sh {restore testsuite/home/coll-sticky-6} $ans $tserr |
| 226 |
|
| 227 |
setenv_var TESTSUITE_SUPER_STICKY 1 |
| 228 |
setenv_var __MODULES_LMTAG stickysub/dir1/1.0&super-sticky |
| 229 |
set tserr [msg_unload {stickysub/dir1/1.0 <sS>} $err_superstickyunload]\n\n[msg_switch {stickysub/dir1/1.0 <sS>} stickysub [err_swoff stickysub/dir1/1.0]] |
| 230 |
testouterr_cmd_re sh {switch stickysub} ERR $tserr |
| 231 |
set tserr [msg_unload {stickysub/dir1/1.0 <sS>} $err_superstickyunload]\n\n[msg_switch {stickysub/dir1/1.0 <sS>} stickysub/dir1 [err_swoff stickysub/dir1/1.0]] |
| 232 |
testouterr_cmd_re sh {switch stickysub/dir1} ERR $tserr |
| 233 |
set ans [list] |
| 234 |
lappend ans [list set _LMFILES_ $mp/stickysub/dir1/1.0] |
| 235 |
lappend ans [list set LOADEDMODULES stickysub/dir1/1.0] |
| 236 |
lappend ans [list set __MODULES_LMTAG stickysub/dir1/1.0&super-sticky] |
| 237 |
testouterr_cmd_re sh {switch stickysub/dir1/1.0} $ans {} |
| 238 |
set tserr [msg_unload {stickysub/dir1/1.0 <sS>} $err_superstickyunload]\n\n[msg_switch {stickysub/dir1/1.0 <sS>} stickysub/dir1/2.0 [err_swoff stickysub/dir1/1.0]] |
| 239 |
testouterr_cmd_re sh {switch stickysub/dir1/2.0} ERR $tserr |
| 240 |
set ans [list] |
| 241 |
lappend ans [list set _LMFILES_ $mp/stickysub/dir1/1.0:$mp/stickysub/dir2/4.0:$mp/foo/2.0] |
| 242 |
lappend ans [list set LOADEDMODULES stickysub/dir1/1.0:stickysub/dir2/4.0:foo/2.0] |
| 243 |
lappend ans [list ERR] |
| 244 |
set tserr [msg_unload {stickysub/dir1/1.0 <sS>} $err_superstickyunload]\n\n[msg_load stickysub/dir2/4.0]\n[msg_load foo/2.0] |
| 245 |
testouterr_cmd_re sh {restore testsuite/home/coll-sticky-6} $ans $tserr |
| 246 |
unsetenv_var TESTSUITE_SUPER_STICKY |
| 247 |
|
| 248 |
setenv_var TESTSUITE_STICKY_GENERIC 7 |
| 249 |
unsetenv_loaded_module |
| 250 |
unsetenv_var __MODULES_LMTAG |
| 251 |
unsetenv_var __MODULES_LMSTICKYRULE |
| 252 |
|
| 253 |
set anslo [list] |
| 254 |
lappend anslo [list set __MODULES_LMSTICKYRULE stickysub/dir1/1.0&sticky|stickysub&super-sticky|stickysub/dir1] |
| 255 |
lappend anslo [list set _LMFILES_ $mp/stickysub/dir1/1.0] |
| 256 |
lappend anslo [list set LOADEDMODULES stickysub/dir1/1.0] |
| 257 |
lappend anslo [list set __MODULES_LMTAG stickysub/dir1/1.0&super-sticky&sticky] |
| 258 |
testouterr_cmd_re sh {load stickysub/dir1/1.0} $anslo {} |
| 259 |
|
| 260 |
setenv_loaded_module [list stickysub/dir1/1.0] [list $mp/stickysub/dir1/1.0] |
| 261 |
setenv_var __MODULES_LMTAG stickysub/dir1/1.0&super-sticky&sticky |
| 262 |
setenv_var __MODULES_LMSTICKYRULE stickysub/dir1/1.0&sticky|stickysub&super-sticky|stickysub/dir1 |
| 263 |
|
| 264 |
set tserr [msg_unload {stickysub/dir1/1.0 <S:sS>} $err_superstickyunload]\n\n[msg_switch {stickysub/dir1/1.0 <S:sS>} stickysub [err_swoff stickysub/dir1/1.0]] |
| 265 |
testouterr_cmd_re sh {switch stickysub} ERR $tserr |
| 266 |
set ans [list] |
| 267 |
lappend ans [list set __MODULES_LMSTICKYRULE stickysub/dir1/1.0&sticky|stickysub&super-sticky|stickysub/dir1] |
| 268 |
lappend ans [list set _LMFILES_ $mp/stickysub/dir1/1.0] |
| 269 |
lappend ans [list set LOADEDMODULES stickysub/dir1/1.0] |
| 270 |
lappend ans [list set __MODULES_LMTAG stickysub/dir1/1.0&sticky&super-sticky] |
| 271 |
testouterr_cmd_re sh {switch stickysub/dir1/1.0} $ans {} |
| 272 |
set ans [list] |
| 273 |
lappend ans [list set __MODULES_LMSTICKYRULE stickysub/dir1/2.0&sticky|stickysub&super-sticky|stickysub/dir1] |
| 274 |
lappend ans [list set _LMFILES_ $mp/stickysub/dir1/2.0] |
| 275 |
lappend ans [list set LOADEDMODULES stickysub/dir1/2.0] |
| 276 |
lappend ans [list set __MODULES_LMTAG stickysub/dir1/2.0&sticky&super-sticky] |
| 277 |
testouterr_cmd_re sh {switch stickysub/dir1/2.0} $ans {} |
| 278 |
set tserr [msg_unload {stickysub/dir1/1.0 <S:sS>} $err_superstickyunload]\n\n[msg_switch {stickysub/dir1/1.0 <S:sS>} stickysub/dir2 [err_swoff stickysub/dir1/1.0]] |
| 279 |
testouterr_cmd_re sh {switch stickysub/dir2} ERR $tserr |
| 280 |
set ans [list] |
| 281 |
lappend ans [list set __MODULES_LMSTICKYRULE stickysub/dir1/1.0&sticky|stickysub&super-sticky|stickysub/dir1:stickysub/dir2/4.0&sticky|stickysub] |
| 282 |
lappend ans [list set _LMFILES_ $mp/stickysub/dir1/1.0:$mp/stickysub/dir2/4.0:$mp/foo/2.0] |
| 283 |
lappend ans [list set LOADEDMODULES stickysub/dir1/1.0:stickysub/dir2/4.0:foo/2.0] |
| 284 |
lappend ans [list set __MODULES_LMTAG stickysub/dir1/1.0&super-sticky&sticky:stickysub/dir2/4.0&sticky] |
| 285 |
lappend ans [list ERR] |
| 286 |
set tserr [msg_unload {stickysub/dir1/1.0 <S:sS>} $err_superstickyunload]\n\n[msg_load {stickysub/dir2/4.0 <S>}]\n[msg_load foo/2.0] |
| 287 |
testouterr_cmd_re sh {restore testsuite/home/coll-sticky-6} $ans $tserr |
| 288 |
|
| 289 |
setenv_var TESTSUITE_STICKY_GENERIC 8 |
| 290 |
unsetenv_loaded_module |
| 291 |
unsetenv_var __MODULES_LMTAG |
| 292 |
unsetenv_var __MODULES_LMSTICKYRULE |
| 293 |
|
| 294 |
set anslo [list] |
| 295 |
lappend anslo [list set __MODULES_LMSTICKYRULE stickysub/dir1/1.0&super-sticky|stickysub] |
| 296 |
lappend anslo [list set _LMFILES_ $mp/stickysub/dir1/1.0] |
| 297 |
lappend anslo [list set LOADEDMODULES stickysub/dir1/1.0] |
| 298 |
lappend anslo [list set __MODULES_LMTAG stickysub/dir1/1.0&super-sticky&sticky] |
| 299 |
testouterr_cmd_re sh {load stickysub/dir1/1.0} $anslo {} |
| 300 |
|
| 301 |
setenv_loaded_module [list stickysub/dir1/1.0] [list $mp/stickysub/dir1/1.0] |
| 302 |
setenv_var __MODULES_LMTAG stickysub/dir1/1.0&super-sticky&sticky |
| 303 |
setenv_var __MODULES_LMSTICKYRULE stickysub/dir1/1.0&super-sticky|stickysub |
| 304 |
|
| 305 |
set tserr [msg_unload {stickysub/dir1/1.0 <S:sS>} $err_stickyunload]\n\n[msg_switch {stickysub/dir1/1.0 <S:sS>} stickysub [err_swoff stickysub/dir1/1.0]] |
| 306 |
testouterr_cmd_re sh {switch stickysub} ERR $tserr |
| 307 |
set tserr [msg_unload {stickysub/dir1/1.0 <S:sS>} $err_stickyunload]\n\n[msg_switch {stickysub/dir1/1.0 <S:sS>} stickysub/dir1/2.0 [err_swoff stickysub/dir1/1.0]] |
| 308 |
testouterr_cmd_re sh {switch stickysub/dir1/2.0} ERR $tserr |
| 309 |
set tserr [msg_unload {stickysub/dir1/1.0 <S:sS>} $err_stickyunload]\n\n[msg_switch {stickysub/dir1/1.0 <S:sS>} stickysub/dir2 [err_swoff stickysub/dir1/1.0]] |
| 310 |
testouterr_cmd_re sh {switch stickysub/dir2} ERR $tserr |
| 311 |
set ans [list] |
| 312 |
lappend ans [list set __MODULES_LMSTICKYRULE stickysub/dir2/4.0&super-sticky|stickysub] |
| 313 |
lappend ans [list set _LMFILES_ $mp/stickysub/dir2/4.0:$mp/foo/2.0] |
| 314 |
lappend ans [list set LOADEDMODULES stickysub/dir2/4.0:foo/2.0] |
| 315 |
lappend ans [list set __MODULES_LMTAG stickysub/dir2/4.0&super-sticky] |
| 316 |
set tserr [msg_unload {stickysub/dir1/1.0 <S:sS>}]\n[msg_load {stickysub/dir2/4.0 <sS>}]\n[msg_load foo/2.0] |
| 317 |
testouterr_cmd_re sh {restore testsuite/home/coll-sticky-6} $ans $tserr |
| 318 |
|
| 319 |
setenv_var TESTSUITE_STICKY_GENERIC 9 |
| 320 |
unsetenv_loaded_module |
| 321 |
unsetenv_var __MODULES_LMTAG |
| 322 |
unsetenv_var __MODULES_LMSTICKYRULE |
| 323 |
|
| 324 |
set anslo [list] |
| 325 |
lappend anslo [list set __MODULES_LMSTICKYRULE stickysub/dir1/1.0&sticky|stickysub] |
| 326 |
lappend anslo [list set _LMFILES_ $mp/stickysub/dir1/1.0] |
| 327 |
lappend anslo [list set LOADEDMODULES stickysub/dir1/1.0] |
| 328 |
lappend anslo [list set __MODULES_LMTAG stickysub/dir1/1.0&sticky&super-sticky] |
| 329 |
testouterr_cmd_re sh {load stickysub/dir1/1.0} $anslo {} |
| 330 |
|
| 331 |
setenv_loaded_module [list stickysub/dir1/1.0] [list $mp/stickysub/dir1/1.0] |
| 332 |
setenv_var __MODULES_LMTAG stickysub/dir1/1.0&sticky&super-sticky |
| 333 |
setenv_var __MODULES_LMSTICKYRULE stickysub/dir1/1.0&sticky|stickysub |
| 334 |
|
| 335 |
set tserr [msg_unload {stickysub/dir1/1.0 <S:sS>} $err_superstickyunload]\n\n[msg_switch {stickysub/dir1/1.0 <S:sS>} stickysub [err_swoff stickysub/dir1/1.0]] |
| 336 |
testouterr_cmd_re sh {switch stickysub} ERR $tserr |
| 337 |
set tserr [msg_unload {stickysub/dir1/1.0 <S:sS>} $err_superstickyunload]\n\n[msg_switch {stickysub/dir1/1.0 <S:sS>} stickysub/dir1 [err_swoff stickysub/dir1/1.0]] |
| 338 |
testouterr_cmd_re sh {switch stickysub/dir1} ERR $tserr |
| 339 |
set tserr [msg_unload {stickysub/dir1/1.0 <S:sS>} $err_superstickyunload]\n\n[msg_switch {stickysub/dir1/1.0 <S:sS>} stickysub/dir2/3.0 [err_swoff stickysub/dir1/1.0]] |
| 340 |
testouterr_cmd_re sh {switch stickysub/dir2/3.0} ERR $tserr |
| 341 |
set ans [list] |
| 342 |
lappend ans [list set __MODULES_LMSTICKYRULE stickysub/dir1/1.0&sticky|stickysub:stickysub/dir2/4.0&sticky|stickysub] |
| 343 |
lappend ans [list set _LMFILES_ $mp/stickysub/dir1/1.0:$mp/stickysub/dir2/4.0:$mp/foo/2.0] |
| 344 |
lappend ans [list set LOADEDMODULES stickysub/dir1/1.0:stickysub/dir2/4.0:foo/2.0] |
| 345 |
lappend ans [list set __MODULES_LMTAG stickysub/dir1/1.0&sticky&super-sticky:stickysub/dir2/4.0&sticky] |
| 346 |
lappend ans [list ERR] |
| 347 |
set tserr [msg_unload {stickysub/dir1/1.0 <S:sS>} $err_superstickyunload]\n\n[msg_load {stickysub/dir2/4.0 <S>}]\n[msg_load foo/2.0] |
| 348 |
testouterr_cmd_re sh {restore testsuite/home/coll-sticky-6} $ans $tserr |
| 349 |
|
| 350 |
setenv_var TESTSUITE_STICKY_GENERIC 10 |
| 351 |
unsetenv_loaded_module |
| 352 |
unsetenv_var __MODULES_LMTAG |
| 353 |
unsetenv_var __MODULES_LMSTICKYRULE |
| 354 |
|
| 355 |
set anslo [list] |
| 356 |
lappend anslo [list set __MODULES_LMALTNAME stickysub/dir1/1.0&stickysub/dir1/default&stickysub/dir1&stickysub/default&stickysub] |
| 357 |
lappend anslo [list set _LMFILES_ $mp/stickysub/dir1/1.0] |
| 358 |
lappend anslo [list set LOADEDMODULES stickysub/dir1/1.0] |
| 359 |
lappend anslo [list set __MODULES_LMTAG stickysub/dir1/1.0&sticky] |
| 360 |
testouterr_cmd_re sh {load stickysub/dir1/1.0} $anslo {} |
| 361 |
|
| 362 |
setenv_loaded_module [list stickysub/dir1/1.0] [list $mp/stickysub/dir1/1.0] |
| 363 |
setenv_var __MODULES_LMTAG stickysub/dir1/1.0&sticky |
| 364 |
setenv_var __MODULES_LMALTNAME stickysub/dir1/1.0&stickysub/dir1/default&stickysub/dir1&stickysub/default&stickysub |
| 365 |
|
| 366 |
# stickysub/dir1/1.0 is declared default, and switch sub-command now correctly handles that |
| 367 |
# as switched-on module is resolved prior testing stickiness reloading |
| 368 |
set ans [list] |
| 369 |
lappend ans [list set __MODULES_LMALTNAME stickysub/dir1/1.0&stickysub/dir1/default&stickysub/dir1&stickysub/default&stickysub] |
| 370 |
lappend ans [list set _LMFILES_ $mp/stickysub/dir1/1.0] |
| 371 |
lappend ans [list set LOADEDMODULES stickysub/dir1/1.0] |
| 372 |
lappend ans [list set __MODULES_LMTAG stickysub/dir1/1.0&sticky] |
| 373 |
testouterr_cmd_re sh {switch stickysub} $ans {} |
| 374 |
testouterr_cmd_re sh {switch stickysub/dir1} $ans {} |
| 375 |
testouterr_cmd_re sh {switch stickysub/dir1/1.0} $ans {} |
| 376 |
|
| 377 |
set tserr [msg_unload {stickysub/dir1/1.0 <S>} $err_stickyunload]\n\n[msg_switch {stickysub/dir1/1.0 <S>} stickysub/dir1/2.0 [err_swoff stickysub/dir1/1.0]] |
| 378 |
testouterr_cmd_re sh {switch stickysub/dir1/2.0} ERR $tserr |
| 379 |
|
| 380 |
set ans [list] |
| 381 |
lappend ans [list set _LMFILES_ $mp/stickysub/dir1/1.0:$mp/foo/2.0] |
| 382 |
lappend ans [list set LOADEDMODULES stickysub/dir1/1.0:foo/2.0] |
| 383 |
set tserr [msg_load foo/2.0] |
| 384 |
testouterr_cmd_re sh {restore testsuite/home/coll-sticky-6} $ans $tserr |
| 385 |
|
| 386 |
setenv_var TESTSUITE_STICKY_GENERIC 11 |
| 387 |
unsetenv_loaded_module |
| 388 |
unsetenv_var __MODULES_LMTAG |
| 389 |
unsetenv_var __MODULES_LMSTICKYRULE |
| 390 |
unsetenv_var __MODULES_LMALTNAME |
| 391 |
|
| 392 |
set anslo [list] |
| 393 |
lappend anslo [list set _LMFILES_ $mp/stickysub/dir2/4.0] |
| 394 |
lappend anslo [list set LOADEDMODULES stickysub/dir2/4.0] |
| 395 |
lappend anslo [list set __MODULES_LMTAG stickysub/dir2/4.0&sticky] |
| 396 |
testouterr_cmd_re sh {load stickysub/dir2/4.0} $anslo {} |
| 397 |
|
| 398 |
setenv_loaded_module [list stickysub/dir2/4.0] [list $mp/stickysub/dir2/4.0] |
| 399 |
setenv_var __MODULES_LMTAG stickysub/dir2/4.0&sticky |
| 400 |
|
| 401 |
# stickysub/dir2/4.0 is the implicit default, switch sub-command now correctly handles that |
| 402 |
# as switched-on module is resolved prior testing stickiness reloading |
| 403 |
set ans [list] |
| 404 |
lappend ans [list set _LMFILES_ $mp/stickysub/dir2/4.0] |
| 405 |
lappend ans [list set LOADEDMODULES stickysub/dir2/4.0] |
| 406 |
lappend ans [list set __MODULES_LMTAG stickysub/dir2/4.0&sticky] |
| 407 |
testouterr_cmd_re sh {switch stickysub} $ans {} |
| 408 |
testouterr_cmd_re sh {switch stickysub/dir2} $ans {} |
| 409 |
testouterr_cmd_re sh {switch stickysub/dir2/4.0} $ans {} |
| 410 |
|
| 411 |
set ans [list] |
| 412 |
lappend ans [list set _LMFILES_ $mp/stickysub/dir2/4.0:$mp/foo/2.0] |
| 413 |
lappend ans [list set LOADEDMODULES stickysub/dir2/4.0:foo/2.0] |
| 414 |
set tserr [msg_load foo/2.0] |
| 415 |
testouterr_cmd_re sh {restore testsuite/home/coll-sticky-6} $ans $tserr |
| 416 |
|
| 417 |
|
| 418 |
# |
| 419 |
# is sticky reloading tests over loading module |
| 420 |
# |
| 421 |
|
| 422 |
set mp $modpath.4 |
| 423 |
set mpre $modpathre.4 |
| 424 |
setenv_path_var MODULEPATH $mp |
| 425 |
|
| 426 |
setenv_var MODULES_ADVANCED_VERSION_SPEC 1 |
| 427 |
|
| 428 |
unsetenv_loaded_module |
| 429 |
unsetenv_var __MODULES_LMTAG |
| 430 |
|
| 431 |
setenv_var TESTSUITE_STICKY 1 |
| 432 |
set tserr [msg_unload {sticky1/1.0 <aL:S>} $err_stickyunload]\n\n[msg_load sticky3/1.0 [err_conun sticky1/1.0]] |
| 433 |
testouterr_cmd_re sh {load --auto sticky3/1.0} ERR $tserr |
| 434 |
|
| 435 |
setenv_var TESTSUITE_STICKY 2 |
| 436 |
testouterr_cmd_re sh {load --auto sticky3/1.0} ERR $tserr |
| 437 |
setenv_var TESTSUITE_STICKY 3 |
| 438 |
testouterr_cmd_re sh {load --auto sticky3/1.0} ERR $tserr |
| 439 |
setenv_var TESTSUITE_STICKY 4 |
| 440 |
testouterr_cmd_re sh {load --auto sticky3/1.0} ERR $tserr |
| 441 |
|
| 442 |
setenv_var TESTSUITE_STICKY 5 |
| 443 |
testouterr_cmd_re sh {load --auto sticky3/1.0} ERR $tserr |
| 444 |
setenv_var TESTSUITE_STICKY 6 |
| 445 |
testouterr_cmd_re sh {load --auto sticky3/1.0} ERR $tserr |
| 446 |
|
| 447 |
setenv_var TESTSUITE_STICKY 7 |
| 448 |
# switched-on module is now resolved prior testing stickiness is preserved |
| 449 |
set tserr [msg_unload {sticky2/1.0 <aL>} [err_deploi sticky3/1.0]]\n\n[msg_unload {sticky1/1.0 <aL:S>} [err_depun sticky2/1.0]]\n\n[msg_load sticky3/1.0 [err_conun sticky1/1.0]] |
| 450 |
testouterr_cmd_re sh {load --auto sticky3/1.0} ERR $tserr |
| 451 |
|
| 452 |
setenv_var TESTSUITE_STICKY 8 |
| 453 |
set ans [list] |
| 454 |
lappend ans [list set __MODULES_LMPREREQ sticky2/1.0&sticky0] |
| 455 |
lappend ans [list set _LMFILES_ $mp/sticky0:$mp/sticky2/1.0] |
| 456 |
lappend ans [list set LOADEDMODULES sticky0:sticky2/1.0] |
| 457 |
lappend ans [list set __MODULES_LMTAG sticky0&auto-loaded&sticky] |
| 458 |
set tserr [msg_top_load sticky2/1.0 {} {sticky0} {}] |
| 459 |
testouterr_cmd_re sh {load --auto sticky2/1.0} $ans $tserr |
| 460 |
set tserr [msg_unload {sticky0 <aL:S>} $err_stickyunload]\n\n[msg_load sticky3/1.0 [err_conun sticky0]] |
| 461 |
testouterr_cmd_re sh {load --auto sticky3/1.0} ERR $tserr |
| 462 |
|
| 463 |
setenv_var TESTSUITE_STICKY 9 |
| 464 |
set ans [list] |
| 465 |
lappend ans [list set __MODULES_LMPREREQ sticky2/1.0&sticky4/sub/1.0|sticky4/sub/2.0] |
| 466 |
lappend ans [list set _LMFILES_ $mp/sticky4/sub/1.0:$mp/sticky2/1.0] |
| 467 |
lappend ans [list set LOADEDMODULES sticky4/sub/1.0:sticky2/1.0] |
| 468 |
lappend ans [list set __MODULES_LMTAG sticky4/sub/1.0&auto-loaded&sticky] |
| 469 |
set tserr [msg_top_load sticky2/1.0 {} {sticky4/sub/1.0} {}] |
| 470 |
testouterr_cmd_re sh {load --auto sticky2/1.0} $ans $tserr |
| 471 |
|
| 472 |
set tserr [msg_unload {sticky4/sub/1.0 <aL:S>} $err_stickyunload]\n\n[msg_load sticky3/1.0 [err_conun sticky4/sub/1.0]] |
| 473 |
testouterr_cmd_re sh {load --auto sticky3/1.0} ERR $tserr |
| 474 |
|
| 475 |
setenv_var TESTSUITE_STICKY 10 |
| 476 |
set ans [list] |
| 477 |
lappend ans [list set __MODULES_LMPREREQ sticky2/1.0&sticky4/sub/1.0|sticky4/sub/2.0] |
| 478 |
lappend ans [list set __MODULES_LMSTICKYRULE sticky4/sub/1.0&sticky|sticky4/sub] |
| 479 |
lappend ans [list set _LMFILES_ $mp/sticky4/sub/1.0:$mp/sticky2/1.0] |
| 480 |
lappend ans [list set LOADEDMODULES sticky4/sub/1.0:sticky2/1.0] |
| 481 |
lappend ans [list set __MODULES_LMTAG sticky4/sub/1.0&auto-loaded&sticky] |
| 482 |
set tserr [msg_top_load sticky2/1.0 {} {sticky4/sub/1.0} {}] |
| 483 |
testouterr_cmd_re sh {load --auto sticky2/1.0} $ans $tserr |
| 484 |
|
| 485 |
set tserr [msg_unload {sticky2/1.0 <aL>} [err_deploi sticky3/1.0]]\n\n[msg_unload {sticky4/sub/1.0 <aL:S>} [err_depun sticky2/1.0]]\n\n[msg_load sticky3/1.0 [err_conun sticky4/sub/1.0]] |
| 486 |
testouterr_cmd_re sh {load --auto sticky3/1.0} ERR $tserr |
| 487 |
|
| 488 |
|
| 489 |
# |
| 490 |
# is sticky reloading tests over alias, symbols, variants |
| 491 |
# |
| 492 |
|
| 493 |
set mp $modpath.4 |
| 494 |
set mpre $modpathre.4 |
| 495 |
setenv_path_var MODULEPATH $mp |
| 496 |
|
| 497 |
setenv_var MODULES_ADVANCED_VERSION_SPEC 1 |
| 498 |
|
| 499 |
setenv_loaded_module [list sticky1/1.0] [list $mp/sticky1/1.0] |
| 500 |
setenv_var __MODULES_LMTAG sticky1/1.0&sticky |
| 501 |
setenv_var __MODULES_LMSTICKYRULE sticky1/1.0&sticky|sticky1 |
| 502 |
|
| 503 |
setenv_var TESTSUITE_STICKY 7 |
| 504 |
set ans [list] |
| 505 |
lappend ans [list set __MODULES_LMALTNAME sticky1/2.0&al|alsticky1] |
| 506 |
lappend ans [list set __MODULES_LMSTICKYRULE sticky1/2.0&sticky|sticky1] |
| 507 |
lappend ans [list set _LMFILES_ $mp/sticky1/2.0] |
| 508 |
lappend ans [list set LOADEDMODULES sticky1/2.0] |
| 509 |
lappend ans [list set __MODULES_LMTAG sticky1/2.0&sticky] |
| 510 |
testouterr_cmd_re sh {switch sticky1 alsticky1} $ans {} |
| 511 |
|
| 512 |
setenv_var TESTSUITE_STICKY sym1 |
| 513 |
set ans [list] |
| 514 |
lappend ans [list set __MODULES_LMALTNAME sticky1/2.0&sticky1/sym] |
| 515 |
lappend ans [list set __MODULES_LMSTICKYRULE sticky1/2.0&sticky|sticky1] |
| 516 |
lappend ans [list set _LMFILES_ $mp/sticky1/2.0] |
| 517 |
lappend ans [list set LOADEDMODULES sticky1/2.0] |
| 518 |
lappend ans [list set __MODULES_LMTAG sticky1/2.0&sticky] |
| 519 |
testouterr_cmd_re sh {switch sticky1 sticky1/sym} $ans {} |
| 520 |
|
| 521 |
|
| 522 |
# |
| 523 |
# inconsistent environment |
| 524 |
# |
| 525 |
|
| 526 |
setenv_var TESTSUITE_STICKY 10 |
| 527 |
|
| 528 |
# sticky rule set but not tag |
| 529 |
setenv_loaded_module [list sticky4/sub/1.0] [list $mp/sticky4/sub/1.0] |
| 530 |
setenv_var __MODULES_LMSTICKYRULE sticky4/sub/1.0&sticky|sticky4/sub |
| 531 |
unsetenv_var __MODULES_LMTAG |
| 532 |
set ans [list] |
| 533 |
lappend ans [list unset __MODULES_LMSTICKYRULE] |
| 534 |
lappend ans [list unset _LMFILES_] |
| 535 |
lappend ans [list unset LOADEDMODULES] |
| 536 |
testouterr_cmd_re sh {unload --auto sticky4} $ans {} |
| 537 |
|
| 538 |
# sticky rule inconsistent |
| 539 |
setenv_loaded_module [list sticky4/sub/1.0] [list $mp/sticky4/sub/1.0] |
| 540 |
setenv_var __MODULES_LMSTICKYRULE sticky4/sub/1.0&sticky |
| 541 |
setenv_var __MODULES_LMTAG sticky4/sub/1.0&sticky |
| 542 |
|
| 543 |
# rules found in modulerc file overtake here |
| 544 |
set ans [list] |
| 545 |
lappend ans [list set __MODULES_LMSTICKYRULE sticky4/sub/2.0&sticky|sticky4/sub] |
| 546 |
lappend ans [list set _LMFILES_ $mp/sticky4/sub/2.0] |
| 547 |
lappend ans [list set LOADEDMODULES sticky4/sub/2.0] |
| 548 |
lappend ans [list set __MODULES_LMTAG sticky4/sub/2.0&sticky] |
| 549 |
testouterr_cmd_re sh {switch sticky4/sub/2.0} $ans {} |
| 550 |
|
| 551 |
# inconsistent rules without modulerc rules that overtake |
| 552 |
unsetenv_var TESTSUITE_STICKY |
| 553 |
set tserr [msg_unload {sticky4/sub/1.0 <S>} $err_stickyunload]\n\n[msg_switch {sticky4/sub/1.0 <S>} sticky4/sub/2.0 [err_swoff sticky4/sub/1.0]] |
| 554 |
testouterr_cmd_re sh {switch sticky4/sub/2.0} ERR $tserr |
| 555 |
|
| 556 |
setenv_var __MODULES_LMSTICKYRULE sticky4/sub/1.0 |
| 557 |
testouterr_cmd_re sh {switch sticky4/sub/2.0} ERR $tserr |
| 558 |
|
| 559 |
setenv_var __MODULES_LMSTICKYRULE sticky4/sub/1.0&foo |
| 560 |
testouterr_cmd_re sh {switch sticky4/sub/2.0} ERR $tserr |
| 561 |
|
| 562 |
setenv_var __MODULES_LMSTICKYRULE sticky4/sub/1.0& |
| 563 |
testouterr_cmd_re sh {switch sticky4/sub/2.0} ERR $tserr |
| 564 |
|
| 565 |
setenv_var __MODULES_LMSTICKYRULE sticky4/sub/1.0&foo|sticky4/sub |
| 566 |
testouterr_cmd_re sh {switch sticky4/sub/2.0} ERR $tserr |
| 567 |
|
| 568 |
setenv_var __MODULES_LMSTICKYRULE sticky4/sub/1.0&sticky| |
| 569 |
testouterr_cmd_re sh {switch sticky4/sub/2.0} ERR $tserr |
| 570 |
|
| 571 |
unsetenv_loaded_module |
| 572 |
unsetenv_var __MODULES_LMSTICKYRULE |
| 573 |
unsetenv_var __MODULES_LMTAG |
| 574 |
|
| 575 |
|
| 576 |
# |
| 577 |
# several generic definition |
| 578 |
# |
| 579 |
|
| 580 |
setenv_var TESTSUITE_STICKY 11 |
| 581 |
|
| 582 |
set ans [list] |
| 583 |
lappend ans [list set __MODULES_LMPREREQ sticky2/1.0&sticky4/sub/1.0|sticky4/sub/2.0] |
| 584 |
lappend ans [list set __MODULES_LMSTICKYRULE sticky4/sub/1.0&sticky|sticky4/sub|sticky4] |
| 585 |
lappend ans [list set _LMFILES_ $mp/sticky4/sub/1.0:$mp/sticky2/1.0] |
| 586 |
lappend ans [list set LOADEDMODULES sticky4/sub/1.0:sticky2/1.0] |
| 587 |
lappend ans [list set __MODULES_LMTAG sticky4/sub/1.0&auto-loaded&sticky] |
| 588 |
set tserr [msg_top_load sticky2/1.0 {} {sticky4/sub/1.0} {}] |
| 589 |
testouterr_cmd_re sh {load --auto sticky2/1.0} $ans $tserr |
| 590 |
|
| 591 |
setenv_loaded_module [list sticky4/sub/1.0] [list $mp/sticky4/sub/1.0] |
| 592 |
setenv_var __MODULES_LMSTICKYRULE sticky4/sub/1.0&sticky|sticky4/sub|sticky4 |
| 593 |
setenv_var __MODULES_LMTAG sticky4/sub/1.0&sticky |
| 594 |
|
| 595 |
set tserr [msg_unload {sticky4/sub/1.0 <S>} $err_stickyunload]\n\n[msg_switch {sticky4/sub/1.0 <S>} sticky4/sub2/1.0 [err_swoff sticky4/sub/1.0]] |
| 596 |
testouterr_cmd_re sh {switch sticky4/sub2/1.0} ERR $tserr |
| 597 |
|
| 598 |
set ans [list] |
| 599 |
lappend ans [list set __MODULES_LMSTICKYRULE sticky4/sub/2.0&sticky|sticky4/sub|sticky4] |
| 600 |
lappend ans [list set _LMFILES_ $mp/sticky4/sub/2.0] |
| 601 |
lappend ans [list set LOADEDMODULES sticky4/sub/2.0] |
| 602 |
lappend ans [list set __MODULES_LMTAG sticky4/sub/2.0&sticky] |
| 603 |
testouterr_cmd_re sh {switch sticky4/sub/2.0} $ans {} |
| 604 |
|
| 605 |
unsetenv_loaded_module |
| 606 |
unsetenv_var __MODULES_LMSTICKYRULE |
| 607 |
unsetenv_var __MODULES_LMTAG |
| 608 |
|
| 609 |
|
| 610 |
# |
| 611 |
# Cleanup |
| 612 |
# |
| 613 |
|
| 614 |
reset_test_env |