| 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: 2019/02/01 |
| 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: prereq, conflict |
| 16 |
# |
| 17 |
# Comment: %C{ |
| 18 |
# Test automatic resolution of modulefile dependencies when |
| 19 |
# some constraints have been forced previously |
| 20 |
# }C% |
| 21 |
# |
| 22 |
############################################################################## |
| 23 |
|
| 24 |
# enable auto_handling with environment variable |
| 25 |
setenv_var MODULES_AUTO_HANDLING 1 |
| 26 |
|
| 27 |
# ensure auto symbolic versions are not set for these tests |
| 28 |
setenv_var MODULES_ADVANCED_VERSION_SPEC 0 |
| 29 |
|
| 30 |
set mp $modpath.deps |
| 31 |
|
| 32 |
# setup specific environment |
| 33 |
setenv_path_var MODULEPATH $mp |
| 34 |
|
| 35 |
|
| 36 |
# requirement is found after its dependent |
| 37 |
# 1. load --force --no-auto ib |
| 38 |
# 2. load --no-auto ia |
| 39 |
setenv_loaded_module [list ib ia] [list $mp/ib $mp/ia] |
| 40 |
setenv_var __MODULES_LMPREREQ ib&ia |
| 41 |
|
| 42 |
# ib should not be impacted |
| 43 |
set ans [list] |
| 44 |
lappend ans [list set _LMFILES_ $mp/ib] |
| 45 |
lappend ans [list set LOADEDMODULES ib] |
| 46 |
set tserr [list {unload ia}] |
| 47 |
testouterr_cmd_re sh {unload --no-auto ia} $ans [join $tserr \n] |
| 48 |
testouterr_cmd_re sh {unload --auto ia} $ans [join $tserr \n] |
| 49 |
|
| 50 |
# ia should not be impacted |
| 51 |
set ans [list] |
| 52 |
lappend ans [list unset __MODULES_LMPREREQ] |
| 53 |
lappend ans [list set _LMFILES_ $mp/ia] |
| 54 |
lappend ans [list set LOADEDMODULES ia] |
| 55 |
set tserr [list {unload ib}] |
| 56 |
testouterr_cmd_re sh {unload --no-auto ib} $ans [join $tserr \n] |
| 57 |
testouterr_cmd_re sh {unload --auto ib} $ans [join $tserr \n] |
| 58 |
|
| 59 |
skip_if_quick_mode |
| 60 |
|
| 61 |
|
| 62 |
# requirement is found after its dependent |
| 63 |
# requirement expressed with 'module load' rather 'prereq' |
| 64 |
# 1. load --force --no-auto ibm |
| 65 |
# 2. load --no-auto ia |
| 66 |
setenv_loaded_module [list ibm ia] [list $mp/ibm $mp/ia] |
| 67 |
setenv_var __MODULES_LMPREREQ ibm&ia |
| 68 |
|
| 69 |
# ibm should not be impacted |
| 70 |
set ans [list] |
| 71 |
lappend ans [list set _LMFILES_ $mp/ibm] |
| 72 |
lappend ans [list set LOADEDMODULES ibm] |
| 73 |
set tserr [list {unload ia}] |
| 74 |
testouterr_cmd_re sh {unload --no-auto ia} $ans [join $tserr \n] |
| 75 |
testouterr_cmd_re sh {unload --auto ia} $ans [join $tserr \n] |
| 76 |
|
| 77 |
# ia should not be impacted |
| 78 |
set ans [list] |
| 79 |
lappend ans [list unset __MODULES_LMPREREQ] |
| 80 |
lappend ans [list set _LMFILES_ $mp/ia] |
| 81 |
lappend ans [list set LOADEDMODULES ia] |
| 82 |
set tserr [list {unload ibm}] |
| 83 |
testouterr_cmd_re sh {unload --no-auto ibm} $ans [join $tserr \n] |
| 84 |
testouterr_cmd_re sh {unload --auto ibm} $ans [join $tserr \n] |
| 85 |
|
| 86 |
|
| 87 |
# requirement is found after its dependent, one dummy module loaded before |
| 88 |
# requirement expressed with 'module load' rather 'prereq' |
| 89 |
# 1. load ih/2 |
| 90 |
# 1. load --force --no-auto ibm |
| 91 |
# 2. load --no-auto ia |
| 92 |
setenv_loaded_module [list aa ibm ia] [list $mp/aa $mp/ibm $mp/ia] |
| 93 |
setenv_var __MODULES_LMPREREQ ibm&ia |
| 94 |
|
| 95 |
# ia should not be impacted |
| 96 |
set ans [list] |
| 97 |
lappend ans [list unset __MODULES_LMPREREQ] |
| 98 |
lappend ans [list set _LMFILES_ $mp/aa:$mp/ia] |
| 99 |
lappend ans [list set LOADEDMODULES aa:ia] |
| 100 |
set tserr [list {unload ibm}] |
| 101 |
testouterr_cmd_re sh {unload --no-auto ibm} $ans [join $tserr \n] |
| 102 |
testouterr_cmd_re sh {unload --auto ibm} $ans [join $tserr \n] |
| 103 |
|
| 104 |
|
| 105 |
# requirement is found after its dependent and in autoloaded state |
| 106 |
# 1. load --force --no-auto ib |
| 107 |
# 2. load --force ie |
| 108 |
# 3. load --auto ic |
| 109 |
# 4. unload --no-auto ie |
| 110 |
# 5. unload --no-auto ic |
| 111 |
setenv_loaded_module [list ib ia] [list $mp/ib $mp/ia] [list ia] |
| 112 |
setenv_var __MODULES_LMPREREQ ib&ia |
| 113 |
|
| 114 |
# ib should not be impacted |
| 115 |
set ans [list] |
| 116 |
lappend ans [list set _LMFILES_ $mp/ib] |
| 117 |
lappend ans [list set LOADEDMODULES ib] |
| 118 |
lappend ans [list unset __MODULES_LMTAG] |
| 119 |
set tserr [list {unload ia}] |
| 120 |
testouterr_cmd_re sh {unload --no-auto ia} $ans [join $tserr \n] |
| 121 |
testouterr_cmd_re sh {unload --auto ia} $ans [join $tserr \n] |
| 122 |
|
| 123 |
# ia should not be impacted |
| 124 |
set ans [list] |
| 125 |
lappend ans [list unset __MODULES_LMPREREQ] |
| 126 |
lappend ans [list set _LMFILES_ $mp/ia] |
| 127 |
lappend ans [list set LOADEDMODULES ia] |
| 128 |
set tserr [list {unload ib}] |
| 129 |
testouterr_cmd_re sh {unload --no-auto ib} $ans [join $tserr \n] |
| 130 |
testouterr_cmd_re sh {unload --auto ib} $ans [join $tserr \n] |
| 131 |
|
| 132 |
|
| 133 |
# requirement is found after its dependent and in autoloaded state |
| 134 |
# 1. load --force --no-auto ib |
| 135 |
# 2. load --force ie |
| 136 |
# 3. load --auto ic |
| 137 |
# 4. unload --no-auto ie |
| 138 |
setenv_loaded_module [list ib ia ic] [list $mp/ib $mp/ia $mp/ic] [list ia] |
| 139 |
setenv_var __MODULES_LMPREREQ ib&ia:ic&ia |
| 140 |
|
| 141 |
# ia should go UReqUn |
| 142 |
set ans [list] |
| 143 |
lappend ans [list set __MODULES_LMPREREQ ib&ia] |
| 144 |
lappend ans [list set _LMFILES_ $mp/ib] |
| 145 |
lappend ans [list set LOADEDMODULES ib] |
| 146 |
lappend ans [list unset __MODULES_LMTAG] |
| 147 |
set tserr [list {unload ic} {unload ia} \n[msg_top_unload ic {} ia {}]] |
| 148 |
testouterr_cmd_re sh {unload --auto ic} $ans [join $tserr \n] |
| 149 |
|
| 150 |
# ic should go DepUn (not ib) |
| 151 |
set ans [list] |
| 152 |
lappend ans [list set __MODULES_LMPREREQ ib&ia] |
| 153 |
lappend ans [list set _LMFILES_ $mp/ib] |
| 154 |
lappend ans [list set LOADEDMODULES ib] |
| 155 |
lappend ans [list unset __MODULES_LMTAG] |
| 156 |
set tserr [list [msg_unload {ia <aL>} [err_prerequn ic]]] |
| 157 |
testouterr_cmd_re sh {unload --no-auto ia} ERR [join $tserr \n] |
| 158 |
set tserr [list {unload ic} {unload ia} \n[msg_top_unload {ia <aL>} ic {} {}]] |
| 159 |
testouterr_cmd_re sh {unload --auto ia} $ans [join $tserr \n] |
| 160 |
|
| 161 |
|
| 162 |
# requirement is found after its dependent and in autoloaded state |
| 163 |
# 1. load --force --auto ij |
| 164 |
# 2. unload --force --no-auto ia |
| 165 |
# 3. unload --no-auto ij |
| 166 |
# 4. load --force ie |
| 167 |
# 5. load --force ia |
| 168 |
# 6. load --auto ij |
| 169 |
setenv_loaded_module [list ib ia ij] [list $mp/ib $mp/ia $mp/ij] [list ib] |
| 170 |
setenv_var __MODULES_LMPREREQ ib&ia:ij&ib |
| 171 |
|
| 172 |
# ib should go UReqUn, not ia |
| 173 |
set ans [list] |
| 174 |
lappend ans [list unset __MODULES_LMPREREQ] |
| 175 |
lappend ans [list set _LMFILES_ $mp/ia] |
| 176 |
lappend ans [list set LOADEDMODULES ia] |
| 177 |
lappend ans [list unset __MODULES_LMTAG] |
| 178 |
set tserr [list {unload ij} {unload ib} \n[msg_top_unload ij {} ib {}]] |
| 179 |
testouterr_cmd_re sh {unload --auto ij} $ans [join $tserr \n] |
| 180 |
|
| 181 |
# ib should not be impacted |
| 182 |
set ans [list] |
| 183 |
lappend ans [list set _LMFILES_ $mp/ib:$mp/ij] |
| 184 |
lappend ans [list set LOADEDMODULES ib:ij] |
| 185 |
set tserr [list {unload ia}] |
| 186 |
testouterr_cmd_re sh {unload --no-auto ia} $ans [join $tserr \n] |
| 187 |
testouterr_cmd_re sh {unload --auto ia} $ans [join $tserr \n] |
| 188 |
|
| 189 |
|
| 190 |
# requirement is found after its dependent and in autoloaded state |
| 191 |
# 1. load --force --auto ij |
| 192 |
# 2. unload --force --no-auto ia |
| 193 |
# 3. unload --no-auto ij |
| 194 |
# 4. load --force ie |
| 195 |
# 5. load --force --auto ic |
| 196 |
# 6. unload --no-auto ic |
| 197 |
# 7. load --auto ij |
| 198 |
setenv_loaded_module [list ib ia ij] [list $mp/ib $mp/ia $mp/ij] [list ib ia] |
| 199 |
setenv_var __MODULES_LMPREREQ ib&ia:ij&ib |
| 200 |
|
| 201 |
# ib should go UReqUn, not ia |
| 202 |
set ans [list] |
| 203 |
lappend ans [list unset __MODULES_LMPREREQ] |
| 204 |
lappend ans [list set _LMFILES_ $mp/ia] |
| 205 |
lappend ans [list set LOADEDMODULES ia] |
| 206 |
lappend ans [list set __MODULES_LMTAG ia&auto-loaded] |
| 207 |
set tserr [list {unload ij} {unload ib} \n[msg_top_unload ij {} ib {}]] |
| 208 |
testouterr_cmd_re sh {unload --auto ij} $ans [join $tserr \n] |
| 209 |
|
| 210 |
# ib should not be impacted |
| 211 |
set ans [list] |
| 212 |
lappend ans [list set _LMFILES_ $mp/ib:$mp/ij] |
| 213 |
lappend ans [list set LOADEDMODULES ib:ij] |
| 214 |
lappend ans [list set __MODULES_LMTAG ib&auto-loaded] |
| 215 |
set tserr [list {unload ia}] |
| 216 |
testouterr_cmd_re sh {unload --no-auto ia} $ans [join $tserr \n] |
| 217 |
testouterr_cmd_re sh {unload --auto ia} $ans [join $tserr \n] |
| 218 |
|
| 219 |
|
| 220 |
# one requirement found before and the other found after its dependent in autoloaded state |
| 221 |
# 1. load --force --auto if |
| 222 |
# 2. unload --force --no-auto ia |
| 223 |
# 2. load --force ie |
| 224 |
# 3. load --auto ic |
| 225 |
# 4. unload --no-auto ie |
| 226 |
# 5. unload --no-auto ic |
| 227 |
setenv_loaded_module [list ib if ia] [list $mp/ib $mp/if $mp/ia] [list ib ia] |
| 228 |
setenv_var __MODULES_LMPREREQ ib&ia:if&ib&ia |
| 229 |
|
| 230 |
# ib and if should not be impacted |
| 231 |
set ans [list] |
| 232 |
lappend ans [list set _LMFILES_ $mp/ib:$mp/if] |
| 233 |
lappend ans [list set LOADEDMODULES ib:if] |
| 234 |
lappend ans [list set __MODULES_LMTAG ib&auto-loaded] |
| 235 |
set tserr [list {unload ia}] |
| 236 |
testouterr_cmd_re sh {unload --no-auto ia} $ans [join $tserr \n] |
| 237 |
testouterr_cmd_re sh {unload --auto ia} $ans [join $tserr \n] |
| 238 |
|
| 239 |
# ia should not be impacted |
| 240 |
set ans [list] |
| 241 |
lappend ans [list unset __MODULES_LMPREREQ] |
| 242 |
lappend ans [list set _LMFILES_ $mp/ia] |
| 243 |
lappend ans [list set LOADEDMODULES ia] |
| 244 |
lappend ans [list set __MODULES_LMTAG ia&auto-loaded] |
| 245 |
set tserr [list {unload if} {unload ib} \n[msg_top_unload if {} ib {}]] |
| 246 |
testouterr_cmd_re sh {unload --auto if} $ans [join $tserr \n] |
| 247 |
|
| 248 |
|
| 249 |
# one reflexive conflict loaded after sane situation |
| 250 |
# 1. load --auto ii |
| 251 |
# 2. load --force ih/1 |
| 252 |
setenv_loaded_module [list ih/2 ii ih/1] [list $mp/ih/2 $mp/ii $mp/ih/1] [list ih/2] |
| 253 |
setenv_var __MODULES_LMPREREQ ii&ih |
| 254 |
setenv_var __MODULES_LMCONFLICT ih/2&ih:ih/1&ih |
| 255 |
|
| 256 |
# ih/2 and ii should go DepRe due to conflict solve (auto mode) |
| 257 |
set ans [list] |
| 258 |
lappend ans [list set __MODULES_LMCONFLICT ih/2&ih] |
| 259 |
lappend ans [list set _LMFILES_ $mp/ih/2:$mp/ii] |
| 260 |
lappend ans [list set LOADEDMODULES ih/2:ii] |
| 261 |
set tserr [list {unload ih/1}] |
| 262 |
testouterr_cmd_re sh {unload --no-auto ih/1} $ans [join $tserr \n] |
| 263 |
set ans [list] |
| 264 |
lappend ans [list set __MODULES_LMCONFLICT ih/2&ih] |
| 265 |
lappend ans [list set __MODULES_LMPREREQ ii&ih] |
| 266 |
lappend ans [list set _LMFILES_ $mp/ih/2:$mp/ii] |
| 267 |
lappend ans [list set LOADEDMODULES ih/2:ii] |
| 268 |
lappend ans [list set __MODULES_LMTAG ih/2&auto-loaded] |
| 269 |
set tserr [list {unload ii} {unload ih/2} {unload ih/1} {load ih/2} {load ii} \n[msg_top_unload ih/1 {} {} [list ih/2 ii]]] |
| 270 |
testouterr_cmd_re sh {unload --auto ih/1} $ans [join $tserr \n] |
| 271 |
|
| 272 |
# ih/1 and ii should go DepRe |
| 273 |
set tserr [list [msg_unload {ih/2 <aL>} [err_prerequn ii]]] |
| 274 |
testouterr_cmd_re sh {unload --no-auto ih/2} ERR [join $tserr \n] |
| 275 |
set ans [list] |
| 276 |
lappend ans [list set __MODULES_LMCONFLICT ih/1&ih] |
| 277 |
lappend ans [list set __MODULES_LMPREREQ ii&ih] |
| 278 |
lappend ans [list set _LMFILES_ $mp/ih/1:$mp/ii] |
| 279 |
lappend ans [list set LOADEDMODULES ih/1:ii] |
| 280 |
lappend ans [list unset __MODULES_LMTAG] |
| 281 |
set tserr [list {unload ih/1} {unload ii} {unload ih/2} {load ih/1} {load ii} \n[msg_top_unload {ih/2 <aL>} {ih/1 ii} {} {{} {ih/1 ii}}]] |
| 282 |
testouterr_cmd_re sh {unload --auto ih/2} $ans [join $tserr \n] |
| 283 |
|
| 284 |
# ih/2 should go UReqUn and ih/1 DepRe (auto mode) |
| 285 |
set ans [list] |
| 286 |
lappend ans [list unset __MODULES_LMPREREQ] |
| 287 |
lappend ans [list set _LMFILES_ $mp/ih/2:$mp/ih/1] |
| 288 |
lappend ans [list set LOADEDMODULES ih/2:ih/1] |
| 289 |
set tserr [list {unload ii}] |
| 290 |
testouterr_cmd_re sh {unload --no-auto ii} $ans [join $tserr \n] |
| 291 |
set ans [list] |
| 292 |
lappend ans [list set __MODULES_LMCONFLICT ih/1&ih] |
| 293 |
lappend ans [list unset __MODULES_LMPREREQ] |
| 294 |
lappend ans [list set _LMFILES_ $mp/ih/1] |
| 295 |
lappend ans [list set LOADEDMODULES ih/1] |
| 296 |
lappend ans [list unset __MODULES_LMTAG] |
| 297 |
set tserr [list {unload ii} {unload ih/1} {unload ih/2} {load ih/1} \n[msg_top_unload ii {} ih/2 ih/1]] |
| 298 |
testouterr_cmd_re sh {unload --auto ii} $ans [join $tserr \n] |
| 299 |
|
| 300 |
|
| 301 |
# one reflexive conflict loaded after sane situation |
| 302 |
# requirement expressed with 'module load' rather 'prereq' |
| 303 |
# 1. load --auto iim |
| 304 |
# 2. load --force ih/1 |
| 305 |
setenv_loaded_module [list ih/2 iim ih/1] [list $mp/ih/2 $mp/iim $mp/ih/1] [list ih/2] |
| 306 |
setenv_var __MODULES_LMPREREQ iim&ih |
| 307 |
setenv_var __MODULES_LMCONFLICT ih/2&ih:ih/1&ih |
| 308 |
|
| 309 |
# ih/2 should go UReqUn (no-auto mode) |
| 310 |
set ans [list] |
| 311 |
lappend ans [list set __MODULES_LMCONFLICT ih/1&ih] |
| 312 |
lappend ans [list unset __MODULES_LMPREREQ] |
| 313 |
lappend ans [list set _LMFILES_ $mp/ih/1] |
| 314 |
lappend ans [list set LOADEDMODULES ih/1] |
| 315 |
lappend ans [list unset __MODULES_LMTAG] |
| 316 |
set tserr [list {unload iim} {unload ih/2} \n[msg_top_unload iim {} ih/2 {}]] |
| 317 |
testouterr_cmd_re sh {unload --no-auto iim} $ans [join $tserr \n] |
| 318 |
# ih/2 should go UReqUn and ih/1 DepRe (auto mode) |
| 319 |
set ans [list] |
| 320 |
lappend ans [list set __MODULES_LMCONFLICT ih/1&ih] |
| 321 |
lappend ans [list unset __MODULES_LMPREREQ] |
| 322 |
lappend ans [list set _LMFILES_ $mp/ih/1] |
| 323 |
lappend ans [list set LOADEDMODULES ih/1] |
| 324 |
lappend ans [list unset __MODULES_LMTAG] |
| 325 |
set tserr [list {unload iim} {unload ih/1} {unload ih/2} {load ih/1} \n[msg_top_unload iim {} ih/2 ih/1]] |
| 326 |
testouterr_cmd_re sh {unload --auto iim} $ans [join $tserr \n] |
| 327 |
|
| 328 |
|
| 329 |
# one reflexive conflict loaded after sane situation, one reflexive conflict load not uasked in first position |
| 330 |
# requirement expressed with 'module load' rather 'prereq' |
| 331 |
setenv_loaded_module [list ih/0 ih/2 iim ih/1] [list $mp/ih/0 $mp/ih/2 $mp/iim $mp/ih/1] [list ih/0 ih/2] |
| 332 |
setenv_var __MODULES_LMPREREQ iim&ih |
| 333 |
setenv_var __MODULES_LMCONFLICT ih/0&ih:ih/2&ih:ih/1&ih |
| 334 |
|
| 335 |
# ih/2 should go UReqUn (closest requirement to unloading module) |
| 336 |
if {$install_unloadmatchorder eq {returnlast}} { |
| 337 |
set ans [list] |
| 338 |
lappend ans [list set __MODULES_LMCONFLICT ih/0&ih:ih/1&ih] |
| 339 |
lappend ans [list unset __MODULES_LMPREREQ] |
| 340 |
lappend ans [list set _LMFILES_ $mp/ih/0:$mp/ih/1] |
| 341 |
lappend ans [list set LOADEDMODULES ih/0:ih/1] |
| 342 |
lappend ans [list set __MODULES_LMTAG ih/0&auto-loaded] |
| 343 |
set tserr [list {unload iim} {unload ih/2} \n[msg_top_unload iim {} ih/2 {}]] |
| 344 |
} else { |
| 345 |
set ans [list] |
| 346 |
lappend ans [list set __MODULES_LMCONFLICT ih/2&ih:ih/1&ih] |
| 347 |
lappend ans [list unset __MODULES_LMPREREQ] |
| 348 |
lappend ans [list set _LMFILES_ $mp/ih/2:$mp/ih/1] |
| 349 |
lappend ans [list set LOADEDMODULES ih/2:ih/1] |
| 350 |
lappend ans [list set __MODULES_LMTAG ih/2&auto-loaded] |
| 351 |
set tserr [list {unload iim} {unload ih/0} \n[msg_top_unload iim {} ih/0 {}]] |
| 352 |
} |
| 353 |
testouterr_cmd_re sh {unload --no-auto iim} $ans [join $tserr \n] |
| 354 |
testouterr_cmd_re sh {unload --auto iim} $ans [join $tserr \n] |
| 355 |
|
| 356 |
|
| 357 |
# one conflict prior and one reflexive conflict after |
| 358 |
# 1. load ig |
| 359 |
# 2. load --auto --force ii |
| 360 |
# 3. load --force ih/1 |
| 361 |
setenv_loaded_module [list ig ih/2 ii ih/1] [list $mp/ig $mp/ih/2 $mp/ii $mp/ih/1] [list ih/2] |
| 362 |
setenv_var __MODULES_LMPREREQ ii&ih |
| 363 |
setenv_var __MODULES_LMCONFLICT ig&ih/2:ih/2&ih:ih/1&ih |
| 364 |
|
| 365 |
# cannot reload ih/2 after ig conflict solved since a conflict with ih/1 is still there |
| 366 |
set ans [list] |
| 367 |
lappend ans [list set __MODULES_LMCONFLICT ih/2&ih:ih/1&ih] |
| 368 |
lappend ans [list set _LMFILES_ $mp/ih/2:$mp/ii:$mp/ih/1] |
| 369 |
lappend ans [list set LOADEDMODULES ih/2:ii:ih/1] |
| 370 |
set tserr [list {unload ig}] |
| 371 |
testouterr_cmd_re sh {unload --auto ig} $ans [join $tserr \n] |
| 372 |
|
| 373 |
# ig, ii and ih/1 should go DepRe (auto mode) |
| 374 |
set tserr [list [msg_unload {ih/2 <aL>} [err_prerequn ii]]] |
| 375 |
testouterr_cmd_re sh {unload --no-auto ih/2} ERR [join $tserr \n] |
| 376 |
set ans [list] |
| 377 |
lappend ans [list set __MODULES_LMCONFLICT ig&ih/2:ih/1&ih] |
| 378 |
lappend ans [list set __MODULES_LMPREREQ ii&ih] |
| 379 |
lappend ans [list set _LMFILES_ $mp/ig:$mp/ih/1:$mp/ii] |
| 380 |
lappend ans [list set LOADEDMODULES ig:ih/1:ii] |
| 381 |
lappend ans [list unset __MODULES_LMTAG] |
| 382 |
set tserr [list {unload ih/1} {unload ii} {unload ig} {unload ih/2} {load ig} {load ih/1} {load ii} \n[msg_top_unload {ih/2 <aL>} {ih/1 ii ig} {} {{} {ig ih/1 ii}}]] |
| 383 |
testouterr_cmd_re sh {unload --auto ih/2} $ans [join $tserr \n] |
| 384 |
|
| 385 |
# ih/2 and ii should go DepRe as conflict with ih/1 is solved |
| 386 |
# cannot reload ih/2 after ih/1 conflict solved since a conflict with ig is still there |
| 387 |
set ans [list] |
| 388 |
lappend ans [list set __MODULES_LMCONFLICT ig&ih/2:ih/2&ih] |
| 389 |
lappend ans [list set _LMFILES_ $mp/ig:$mp/ih/2:$mp/ii] |
| 390 |
lappend ans [list set LOADEDMODULES ig:ih/2:ii] |
| 391 |
set tserr [list {unload ih/1}] |
| 392 |
testouterr_cmd_re sh {unload --no-auto ih/1} $ans [join $tserr \n] |
| 393 |
testouterr_cmd_re sh {unload --auto ih/1} $ans [join $tserr \n] |
| 394 |
|
| 395 |
|
| 396 |
# |
| 397 |
# Cleanup |
| 398 |
# |
| 399 |
|
| 400 |
reset_test_env |