| 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: 2023/10/18 |
| 8 |
# Last Mod.: %U%, %G% |
| 9 |
# |
| 10 |
# Authors: Xavier Delaruelle, [email protected] |
| 11 |
# |
| 12 |
# Description: Testuite testsequence |
| 13 |
# Command: unload |
| 14 |
# Modulefiles: err, foo, all, setenv |
| 15 |
# Sub-Command: |
| 16 |
# |
| 17 |
# Comment: %C{ |
| 18 |
# Test error when several modulefiles are evaluated with |
| 19 |
# unload sub-command |
| 20 |
# }C% |
| 21 |
# |
| 22 |
############################################################################## |
| 23 |
|
| 24 |
skip_if_quick_mode |
| 25 |
|
| 26 |
set mp $modpath.4 |
| 27 |
set mpre $modpathre.4 |
| 28 |
setenv_path_var MODULEPATH $mp |
| 29 |
|
| 30 |
setenv_var MODULES_AUTO_HANDLING 1 |
| 31 |
|
| 32 |
set ans_continue [list] |
| 33 |
lappend ans_continue [list out all-pre-out] |
| 34 |
lappend ans_continue [list unset TSPATH] |
| 35 |
lappend ans_continue [list set LOADEDMODULES err/1.0] |
| 36 |
lappend ans_continue [list set _LMFILES_ $mp/err/1.0] |
| 37 |
lappend ans_continue [list unset TS] |
| 38 |
lappend ans_continue [list unalias alall] |
| 39 |
lappend ans_continue [list out {unset -f funcall 2>/dev/null || true;}] |
| 40 |
lappend ans_continue [list out {complete -r compall;}] |
| 41 |
lappend ans_continue [list out all-out] |
| 42 |
lappend ans_continue [list ERR] |
| 43 |
|
| 44 |
set ans_forced [list] |
| 45 |
lappend ans_forced [list out all-pre-out] |
| 46 |
lappend ans_forced [list unset TSPATH] |
| 47 |
lappend ans_forced [list unset _LMFILES_] |
| 48 |
lappend ans_forced [list unset LOADEDMODULES] |
| 49 |
lappend ans_forced [list unset TS] |
| 50 |
lappend ans_forced [list unalias alall] |
| 51 |
lappend ans_forced [list out {unset -f funcall 2>/dev/null || true;}] |
| 52 |
lappend ans_forced [list out {complete -r compall;}] |
| 53 |
lappend ans_forced [list out all-out] |
| 54 |
|
| 55 |
set ans_forced_tag [list] |
| 56 |
lappend ans_forced_tag [list out all-pre-out] |
| 57 |
lappend ans_forced_tag [list unset TSPATH] |
| 58 |
lappend ans_forced_tag [list unset _LMFILES_] |
| 59 |
lappend ans_forced_tag [list unset LOADEDMODULES] |
| 60 |
lappend ans_forced_tag [list unset __MODULES_LMTAG] |
| 61 |
lappend ans_forced_tag [list unset TS] |
| 62 |
lappend ans_forced_tag [list unalias alall] |
| 63 |
lappend ans_forced_tag [list out {unset -f funcall 2>/dev/null || true;}] |
| 64 |
lappend ans_forced_tag [list out {complete -r compall;}] |
| 65 |
lappend ans_forced_tag [list out all-out] |
| 66 |
|
| 67 |
set ans_depre_error [list] |
| 68 |
lappend ans_depre_error [list out all-pre-out] |
| 69 |
lappend ans_depre_error [list unset TS1] |
| 70 |
lappend ans_depre_error [list unset TSPATH] |
| 71 |
lappend ans_depre_error [list unset TS2] |
| 72 |
lappend ans_depre_error [list set LOADEDMODULES foo/1.0:err/1.0] |
| 73 |
lappend ans_depre_error [list set _LMFILES_ $mp/foo/1.0:$mp/err/1.0] |
| 74 |
lappend ans_depre_error [list unset TS] |
| 75 |
lappend ans_depre_error [list unalias alall] |
| 76 |
lappend ans_depre_error [list out {unset -f funcall 2>/dev/null || true;}] |
| 77 |
lappend ans_depre_error [list out {complete -r compall;}] |
| 78 |
lappend ans_depre_error [list out all-out] |
| 79 |
lappend ans_depre_error [list ERR] |
| 80 |
|
| 81 |
set ans_depre_error_force [list] |
| 82 |
lappend ans_depre_error_force [list out all-pre-out] |
| 83 |
lappend ans_depre_error_force [list unset TS1] |
| 84 |
lappend ans_depre_error_force [list unset TSPATH] |
| 85 |
lappend ans_depre_error_force [list unset TS2] |
| 86 |
lappend ans_depre_error_force [list unset LOADEDMODULES] |
| 87 |
lappend ans_depre_error_force [list unset _LMFILES_] |
| 88 |
lappend ans_depre_error_force [list unset __MODULES_LMPREREQ] |
| 89 |
lappend ans_depre_error_force [list unset TS] |
| 90 |
lappend ans_depre_error_force [list unalias alall] |
| 91 |
lappend ans_depre_error_force [list out {unset -f funcall 2>/dev/null || true;}] |
| 92 |
lappend ans_depre_error_force [list out {complete -r compall;}] |
| 93 |
lappend ans_depre_error_force [list out all-out] |
| 94 |
lappend ans_depre_error_force [list ERR] |
| 95 |
|
| 96 |
set ans_depre_exit [list] |
| 97 |
lappend ans_depre_exit [list out all-pre-out] |
| 98 |
lappend ans_depre_exit [list unset TSPATH] |
| 99 |
lappend ans_depre_exit [list set _LMFILES_ $mp/setenv/1.0:$mp/foo/1.0:$mp/err/1.0] |
| 100 |
lappend ans_depre_exit [list set LOADEDMODULES setenv/1.0:foo/1.0:err/1.0] |
| 101 |
lappend ans_depre_exit [list unset TS] |
| 102 |
lappend ans_depre_exit [list unalias alall] |
| 103 |
lappend ans_depre_exit [list out {unset -f funcall 2>/dev/null || true;}] |
| 104 |
lappend ans_depre_exit [list out {complete -r compall;}] |
| 105 |
lappend ans_depre_exit [list out all-out] |
| 106 |
lappend ans_depre_exit [list ERR] |
| 107 |
|
| 108 |
set ans_depre_exit_force [list] |
| 109 |
lappend ans_depre_exit_force [list out all-pre-out] |
| 110 |
lappend ans_depre_exit_force [list unset TSPATH] |
| 111 |
lappend ans_depre_exit_force [list unset __MODULES_LMPREREQ] |
| 112 |
lappend ans_depre_exit_force [list set _LMFILES_ $mp/setenv/1.0] |
| 113 |
lappend ans_depre_exit_force [list set LOADEDMODULES setenv/1.0] |
| 114 |
lappend ans_depre_exit_force [list unset TS] |
| 115 |
lappend ans_depre_exit_force [list unalias alall] |
| 116 |
lappend ans_depre_exit_force [list out {unset -f funcall 2>/dev/null || true;}] |
| 117 |
lappend ans_depre_exit_force [list out {complete -r compall;}] |
| 118 |
lappend ans_depre_exit_force [list out all-out] |
| 119 |
lappend ans_depre_exit_force [list ERR] |
| 120 |
|
| 121 |
set ans_depre_unload_error_force [list] |
| 122 |
lappend ans_depre_unload_error_force [list out all-pre-out] |
| 123 |
lappend ans_depre_unload_error_force [list unset TS1] |
| 124 |
lappend ans_depre_unload_error_force [list unset TSPATH] |
| 125 |
lappend ans_depre_unload_error_force [list unset TS2] |
| 126 |
lappend ans_depre_unload_error_force [list set __MODULES_LMPREREQ err/1.0&err/1.0|foo] |
| 127 |
lappend ans_depre_unload_error_force [list set _LMFILES_ $mp/err/1.0] |
| 128 |
lappend ans_depre_unload_error_force [list set LOADEDMODULES err/1.0] |
| 129 |
lappend ans_depre_unload_error_force [list unset TS] |
| 130 |
lappend ans_depre_unload_error_force [list unalias alall] |
| 131 |
lappend ans_depre_unload_error_force [list out {unset -f funcall 2>/dev/null || true;}] |
| 132 |
lappend ans_depre_unload_error_force [list out {complete -r compall;}] |
| 133 |
lappend ans_depre_unload_error_force [list out all-out] |
| 134 |
|
| 135 |
set ans_depun_error $ans_depre_error |
| 136 |
|
| 137 |
set ans_depun_error_force [list] |
| 138 |
lappend ans_depun_error_force [list out all-pre-out] |
| 139 |
lappend ans_depun_error_force [list unset TS1] |
| 140 |
lappend ans_depun_error_force [list unset TSPATH] |
| 141 |
lappend ans_depun_error_force [list unset TS2] |
| 142 |
lappend ans_depun_error_force [list unset __MODULES_LMPREREQ] |
| 143 |
lappend ans_depun_error_force [list unset _LMFILES_] |
| 144 |
lappend ans_depun_error_force [list unset LOADEDMODULES] |
| 145 |
lappend ans_depun_error_force [list unset TS] |
| 146 |
lappend ans_depun_error_force [list unalias alall] |
| 147 |
lappend ans_depun_error_force [list out {unset -f funcall 2>/dev/null || true;}] |
| 148 |
lappend ans_depun_error_force [list out {complete -r compall;}] |
| 149 |
lappend ans_depun_error_force [list out all-out] |
| 150 |
|
| 151 |
set ans_not_loaded [list] |
| 152 |
lappend ans_not_loaded [list out all-pre-out] |
| 153 |
lappend ans_not_loaded [list unset TSPATH] |
| 154 |
lappend ans_not_loaded [list set _LMFILES_ $mp/err/1.0] |
| 155 |
lappend ans_not_loaded [list set LOADEDMODULES err/1.0] |
| 156 |
lappend ans_not_loaded [list unset TS] |
| 157 |
lappend ans_not_loaded [list unalias alall] |
| 158 |
lappend ans_not_loaded [list out {unset -f funcall 2>/dev/null || true;}] |
| 159 |
lappend ans_not_loaded [list out {complete -r compall;}] |
| 160 |
lappend ans_not_loaded [list out all-out] |
| 161 |
|
| 162 |
set ans_single_force [list] |
| 163 |
lappend ans_single_force [list unset _LMFILES_] |
| 164 |
lappend ans_single_force [list unset LOADEDMODULES] |
| 165 |
|
| 166 |
set ans_modfile_force [list] |
| 167 |
lappend ans_modfile_force [list set __MODULES_LMCONFLICT lerr/1.0&err/1.0&foo/1.0] |
| 168 |
lappend ans_modfile_force [list set _LMFILES_ $mp/lerr/1.0] |
| 169 |
lappend ans_modfile_force [list set LOADEDMODULES lerr/1.0] |
| 170 |
|
| 171 |
set ans_modfile_last_force [list] |
| 172 |
lappend ans_modfile_last_force [list set __MODULES_LMCONFLICT lerr/1.0&foo/1.0&err/1.0] |
| 173 |
lappend ans_modfile_last_force [list set _LMFILES_ $mp/lerr/1.0] |
| 174 |
lappend ans_modfile_last_force [list set LOADEDMODULES lerr/1.0] |
| 175 |
|
| 176 |
set ans_modfile_opt_depre_break [list] |
| 177 |
lappend ans_modfile_opt_depre_break [list set __MODULES_LMCONFLICT lerr/1.0&foo/1.0] |
| 178 |
lappend ans_modfile_opt_depre_break [list set _LMFILES_ $mp/err/1.0:$mp/lerr/1.0] |
| 179 |
lappend ans_modfile_opt_depre_break [list set LOADEDMODULES err/1.0:lerr/1.0] |
| 180 |
|
| 181 |
set ans_modfile_opt_depre_break_force_conun [list] |
| 182 |
lappend ans_modfile_opt_depre_break_force_conun [list set __MODULES_LMCONFLICT lerr/1.0&foo/1.0] |
| 183 |
lappend ans_modfile_opt_depre_break_force_conun [list set LOADEDMODULES lerr/1.0] |
| 184 |
lappend ans_modfile_opt_depre_break_force_conun [list set _LMFILES_ $mp/lerr/1.0] |
| 185 |
lappend ans_modfile_opt_depre_break_force_conun [list unset __MODULES_LMPREREQ] |
| 186 |
lappend ans_modfile_opt_depre_break_force_conun [list ERR] |
| 187 |
|
| 188 |
set ans_sub_modfile_opt_depre_break [list] |
| 189 |
lappend ans_sub_modfile_opt_depre_break [list set __MODULES_LMCONFLICT lerr/1.0&foo/1.0] |
| 190 |
lappend ans_sub_modfile_opt_depre_break [list set __MODULES_LMPREREQ err/1.0&err/1.0|foo:llerr/1.0&lerr/1.0] |
| 191 |
lappend ans_sub_modfile_opt_depre_break [list set _LMFILES_ $mp/err/1.0:$mp/lerr/1.0:$mp/llerr/1.0] |
| 192 |
lappend ans_sub_modfile_opt_depre_break [list set LOADEDMODULES err/1.0:lerr/1.0:llerr/1.0] |
| 193 |
lappend ans_sub_modfile_opt_depre_break [list set __MODULES_LMTAG lerr/1.0&auto-loaded] |
| 194 |
|
| 195 |
set ans_sub_modfile_opt_depre_break_force_conun [list] |
| 196 |
lappend ans_sub_modfile_opt_depre_break_force_conun [list set __MODULES_LMCONFLICT lerr/1.0&foo/1.0] |
| 197 |
lappend ans_sub_modfile_opt_depre_break_force_conun [list set LOADEDMODULES lerr/1.0:llerr/1.0] |
| 198 |
lappend ans_sub_modfile_opt_depre_break_force_conun [list set _LMFILES_ $mp/lerr/1.0:$mp/llerr/1.0] |
| 199 |
lappend ans_sub_modfile_opt_depre_break_force_conun [list set __MODULES_LMPREREQ llerr/1.0&lerr/1.0] |
| 200 |
lappend ans_sub_modfile_opt_depre_break_force_conun [list set __MODULES_LMTAG lerr/1.0&auto-loaded] |
| 201 |
lappend ans_sub_modfile_opt_depre_break_force_conun [list ERR] |
| 202 |
|
| 203 |
set ans_modfile_conflict_depre_break [list] |
| 204 |
lappend ans_modfile_conflict_depre_break [list set __MODULES_LMCONFLICT err/1.0&foo:lerr/1.0&foo/1.0] |
| 205 |
lappend ans_modfile_conflict_depre_break [list set _LMFILES_ $mp/err/1.0:$mp/lerr/1.0] |
| 206 |
lappend ans_modfile_conflict_depre_break [list set LOADEDMODULES err/1.0:lerr/1.0] |
| 207 |
|
| 208 |
set ans_modfile_conflict_depre_break_force_conun [list] |
| 209 |
lappend ans_modfile_conflict_depre_break_force_conun [list set __MODULES_LMCONFLICT lerr/1.0&foo/1.0] |
| 210 |
lappend ans_modfile_conflict_depre_break_force_conun [list set LOADEDMODULES lerr/1.0] |
| 211 |
lappend ans_modfile_conflict_depre_break_force_conun [list set _LMFILES_ $mp/lerr/1.0] |
| 212 |
lappend ans_modfile_conflict_depre_break_force_conun [list ERR] |
| 213 |
|
| 214 |
set ans_sub_modfile_conflict_depre_break [list] |
| 215 |
lappend ans_sub_modfile_conflict_depre_break [list set __MODULES_LMCONFLICT err/1.0&foo:lerr/1.0&foo/1.0] |
| 216 |
lappend ans_sub_modfile_conflict_depre_break [list set __MODULES_LMPREREQ llerr/1.0&lerr/1.0] |
| 217 |
lappend ans_sub_modfile_conflict_depre_break [list set _LMFILES_ $mp/err/1.0:$mp/lerr/1.0:$mp/llerr/1.0] |
| 218 |
lappend ans_sub_modfile_conflict_depre_break [list set LOADEDMODULES err/1.0:lerr/1.0:llerr/1.0] |
| 219 |
lappend ans_sub_modfile_conflict_depre_break [list set __MODULES_LMTAG lerr/1.0&auto-loaded] |
| 220 |
|
| 221 |
set ans_sub_modfile_conflict_depre_break_force_conun [list] |
| 222 |
lappend ans_sub_modfile_conflict_depre_break_force_conun [list set __MODULES_LMCONFLICT lerr/1.0&foo/1.0] |
| 223 |
lappend ans_sub_modfile_conflict_depre_break_force_conun [list set LOADEDMODULES lerr/1.0:llerr/1.0] |
| 224 |
lappend ans_sub_modfile_conflict_depre_break_force_conun [list set _LMFILES_ $mp/lerr/1.0:$mp/llerr/1.0] |
| 225 |
lappend ans_sub_modfile_conflict_depre_break_force_conun [list set __MODULES_LMPREREQ llerr/1.0&lerr/1.0] |
| 226 |
lappend ans_sub_modfile_conflict_depre_break_force_conun [list set __MODULES_LMTAG lerr/1.0&auto-loaded] |
| 227 |
lappend ans_sub_modfile_conflict_depre_break_force_conun [list ERR] |
| 228 |
|
| 229 |
set ans_modfile_unload_conflict_depre_break_force [list] |
| 230 |
lappend ans_modfile_unload_conflict_depre_break_force [list unset __MODULES_LMCONFLICT] |
| 231 |
lappend ans_modfile_unload_conflict_depre_break_force [list unset LOADEDMODULES] |
| 232 |
lappend ans_modfile_unload_conflict_depre_break_force [list unset _LMFILES_] |
| 233 |
lappend ans_modfile_unload_conflict_depre_break_force [list unset __MODULES_LMPREREQ] |
| 234 |
lappend ans_modfile_unload_conflict_depre_break_force [list unset __MODULES_LMTAG] |
| 235 |
lappend ans_modfile_unload_conflict_depre_break_force [list ERR] |
| 236 |
|
| 237 |
set ans_modfile_depun_sticky_force [list] |
| 238 |
lappend ans_modfile_depun_sticky_force [list unset __MODULES_LMPREREQ] |
| 239 |
lappend ans_modfile_depun_sticky_force [list unset _LMFILES_] |
| 240 |
lappend ans_modfile_depun_sticky_force [list unset LOADEDMODULES] |
| 241 |
lappend ans_modfile_depun_sticky_force [list unset __MODULES_LMTAG] |
| 242 |
|
| 243 |
set ans_modfile_depun_super_sticky_force [list] |
| 244 |
lappend ans_modfile_depun_super_sticky_force [list set _LMFILES_ $mp/err/1.0] |
| 245 |
lappend ans_modfile_depun_super_sticky_force [list set LOADEDMODULES err/1.0] |
| 246 |
lappend ans_modfile_depun_super_sticky_force [list set __MODULES_LMTAG err/1.0&super-sticky] |
| 247 |
lappend ans_modfile_depun_super_sticky_force [list ERR] |
| 248 |
|
| 249 |
set ans_sub_modfile_depun_super_sticky_force [list] |
| 250 |
lappend ans_sub_modfile_depun_super_sticky_force [list set __MODULES_LMPREREQ err/1.0&foo/1.0] |
| 251 |
lappend ans_sub_modfile_depun_super_sticky_force [list set _LMFILES_ $mp/err/1.0] |
| 252 |
lappend ans_sub_modfile_depun_super_sticky_force [list set LOADEDMODULES err/1.0] |
| 253 |
lappend ans_sub_modfile_depun_super_sticky_force [list set __MODULES_LMTAG err/1.0&super-sticky] |
| 254 |
lappend ans_sub_modfile_depun_super_sticky_force [list ERR] |
| 255 |
|
| 256 |
set ans_modfile_depun_sticky_noauto_force [list] |
| 257 |
lappend ans_modfile_depun_sticky_noauto_force [list set _LMFILES_ $mp/err/1.0] |
| 258 |
lappend ans_modfile_depun_sticky_noauto_force [list set LOADEDMODULES err/1.0] |
| 259 |
lappend ans_modfile_depun_sticky_noauto_force [list set __MODULES_LMTAG err/1.0&sticky] |
| 260 |
|
| 261 |
set ans_sub_modfile_depun_sticky_noauto_force [list] |
| 262 |
lappend ans_sub_modfile_depun_sticky_noauto_force [list set _LMFILES_ $mp/foo/1.0:$mp/err/1.0] |
| 263 |
lappend ans_sub_modfile_depun_sticky_noauto_force [list set LOADEDMODULES foo/1.0:err/1.0] |
| 264 |
lappend ans_sub_modfile_depun_sticky_noauto_force [list set __MODULES_LMTAG foo/1.0&auto-loaded:err/1.0&sticky] |
| 265 |
|
| 266 |
set ans_modfile_depun_super_sticky_noauto_force [list] |
| 267 |
lappend ans_modfile_depun_super_sticky_noauto_force [list set _LMFILES_ $mp/err/1.0] |
| 268 |
lappend ans_modfile_depun_super_sticky_noauto_force [list set LOADEDMODULES err/1.0] |
| 269 |
lappend ans_modfile_depun_super_sticky_noauto_force [list set __MODULES_LMTAG err/1.0&super-sticky] |
| 270 |
|
| 271 |
set ans_sub_modfile_depun_super_sticky_noauto_force [list] |
| 272 |
lappend ans_sub_modfile_depun_super_sticky_noauto_force [list set _LMFILES_ $mp/foo/1.0:$mp/err/1.0] |
| 273 |
lappend ans_sub_modfile_depun_super_sticky_noauto_force [list set LOADEDMODULES foo/1.0:err/1.0] |
| 274 |
lappend ans_sub_modfile_depun_super_sticky_noauto_force [list set __MODULES_LMTAG foo/1.0&auto-loaded:err/1.0&super-sticky] |
| 275 |
|
| 276 |
set ans_modfile_urequn_sticky [list] |
| 277 |
lappend ans_modfile_urequn_sticky [list unset __MODULES_LMPREREQ] |
| 278 |
lappend ans_modfile_urequn_sticky [list set _LMFILES_ $mp/err/1.0] |
| 279 |
lappend ans_modfile_urequn_sticky [list set LOADEDMODULES err/1.0] |
| 280 |
|
| 281 |
set ans_sub_modfile_urequn_sticky [list] |
| 282 |
lappend ans_sub_modfile_urequn_sticky [list unset __MODULES_LMPREREQ] |
| 283 |
lappend ans_sub_modfile_urequn_sticky [list set _LMFILES_ $mp/err/1.0] |
| 284 |
lappend ans_sub_modfile_urequn_sticky [list set LOADEDMODULES err/1.0] |
| 285 |
lappend ans_sub_modfile_urequn_sticky [list set __MODULES_LMTAG err/1.0&auto-loaded&sticky] |
| 286 |
|
| 287 |
set ans_modfile_urequn_sticky_noauto $ans_modfile_urequn_sticky |
| 288 |
|
| 289 |
set ans_sub_modfile_urequn_sticky_noauto $ans_sub_modfile_urequn_sticky |
| 290 |
|
| 291 |
set ans_modfile_urequn_sticky_force $ans_modfile_depun_sticky_force |
| 292 |
|
| 293 |
set ans_sub_modfile_urequn_sticky_force $ans_modfile_depun_sticky_force |
| 294 |
|
| 295 |
set ans_modfile_urequn_super_sticky_force $ans_modfile_urequn_sticky |
| 296 |
|
| 297 |
set ans_sub_modfile_urequn_super_sticky_force [list] |
| 298 |
lappend ans_sub_modfile_urequn_super_sticky_force [list unset __MODULES_LMPREREQ] |
| 299 |
lappend ans_sub_modfile_urequn_super_sticky_force [list set _LMFILES_ $mp/err/1.0] |
| 300 |
lappend ans_sub_modfile_urequn_super_sticky_force [list set LOADEDMODULES err/1.0] |
| 301 |
lappend ans_sub_modfile_urequn_super_sticky_force [list set __MODULES_LMTAG err/1.0&auto-loaded&super-sticky] |
| 302 |
|
| 303 |
set ans_modfile_urequn_super_sticky_noauto_force $ans_modfile_urequn_sticky_noauto |
| 304 |
|
| 305 |
set ans_sub_modfile_urequn_super_sticky_noauto_force $ans_sub_modfile_urequn_super_sticky_force |
| 306 |
|
| 307 |
|
| 308 |
set custom_error_trace " invoked from within |
| 309 |
\"if \{\[info exists env(TESTSUITE_ABORT_ON_ERROR)\]\} \{ |
| 310 |
switch -- \$env(TESTSUITE_ABORT_ON_ERROR) \{ |
| 311 |
bad - load_last_bad - load_first_bad - load-...\"" |
| 312 |
|
| 313 |
|
| 314 |
# |
| 315 |
# multiple module to unload (continue behavior) |
| 316 |
# |
| 317 |
|
| 318 |
setenv_loaded_module [list foo/1.0 err/1.0 all/1.0] [list $mp/foo/1.0 $mp/err/1.0 $mp/all/1.0] |
| 319 |
|
| 320 |
setenv_var TESTSUITE_ABORT_ON_ERROR bad |
| 321 |
|
| 322 |
set ts_bad [msg_unload err/1.0 [msg_moderr {invalid command name "bad"} bad $mp/err/1.0 2 {} {} {} $custom_error_trace]] |
| 323 |
testouterr_cmd bash {unload all/1.0 err/1.0 foo/1.0} $ans_continue $ts_bad |
| 324 |
|
| 325 |
set ts_bad_warn [msg_unload err/1.0 [msg_modwarn {invalid command name "bad"} bad $mp/err/1.0 2 {} {} {} $custom_error_trace]] |
| 326 |
testouterr_cmd bash {unload --force all/1.0 err/1.0 foo/1.0} $ans_forced $ts_bad_warn |
| 327 |
|
| 328 |
|
| 329 |
setenv_var TESTSUITE_ABORT_ON_ERROR break |
| 330 |
|
| 331 |
set ts_break [msg_unload err/1.0 $err_evalabort] |
| 332 |
testouterr_cmd bash {unload all/1.0 err/1.0 foo/1.0} $ans_continue $ts_break |
| 333 |
|
| 334 |
set ts_break_warn [msg_unload err/1.0 $warn_evalabort] |
| 335 |
testouterr_cmd bash {unload --force all/1.0 err/1.0 foo/1.0} $ans_forced $ts_break_warn |
| 336 |
|
| 337 |
|
| 338 |
setenv_var TESTSUITE_ABORT_ON_ERROR exit |
| 339 |
|
| 340 |
set ts_exit [msg_unload err/1.0 $err_evalabort] |
| 341 |
testouterr_cmd bash {unload all/1.0 err/1.0 foo/1.0} $ans_continue $ts_exit |
| 342 |
|
| 343 |
set ts_exit_warn [msg_unload err/1.0 $warn_evalabort] |
| 344 |
testouterr_cmd bash {unload --force all/1.0 err/1.0 foo/1.0} $ans_forced $ts_exit_warn |
| 345 |
|
| 346 |
|
| 347 |
setenv_var TESTSUITE_ABORT_ON_ERROR continue |
| 348 |
|
| 349 |
testouterr_cmd bash {unload all/1.0 err/1.0 foo/1.0} $ans_forced {} |
| 350 |
|
| 351 |
testouterr_cmd bash {unload --force all/1.0 err/1.0 foo/1.0} $ans_forced {} |
| 352 |
|
| 353 |
|
| 354 |
setenv_var TESTSUITE_ABORT_ON_ERROR error |
| 355 |
|
| 356 |
set ts_error_verbose [msg_unload all/1.0]\n\n |
| 357 |
append ts_error_verbose [msg_unload err/1.0 [msg_moderr msg {error msg} $mp/err/1.0 2 {} {} {} $custom_error_trace]]\n\n |
| 358 |
append ts_error_verbose [msg_unload foo/1.0] |
| 359 |
testouterr_cmd bash {unload -v all/1.0 err/1.0 foo/1.0} $ans_continue $ts_error_verbose |
| 360 |
|
| 361 |
set ts_error_verbose_warn [msg_unload all/1.0]\n\n |
| 362 |
append ts_error_verbose_warn [msg_unload err/1.0 [msg_modwarn msg {error msg} $mp/err/1.0 2 {} {} {} $custom_error_trace]]\n\n |
| 363 |
append ts_error_verbose_warn [msg_unload foo/1.0] |
| 364 |
testouterr_cmd bash {unload --force -v all/1.0 err/1.0 foo/1.0} $ans_forced $ts_error_verbose_warn |
| 365 |
|
| 366 |
|
| 367 |
setenv_var TESTSUITE_ABORT_ON_ERROR depre_load_error |
| 368 |
|
| 369 |
setenv_loaded_module [list setenv/1.0 foo/1.0 err/1.0 all/1.0] [list $mp/setenv/1.0 $mp/foo/1.0 $mp/err/1.0 $mp/all/1.0] |
| 370 |
setenv_var __MODULES_LMPREREQ err/1.0&err/1.0|foo |
| 371 |
set ts_depre_load_error [msg_load err/1.0 [msg_moderr msg {error msg} $mp/err/1.0 2 {} {} {} $custom_error_trace]]\n\n |
| 372 |
append ts_depre_load_error [msg_unload foo/1.0 [err_depre err/1.0]] |
| 373 |
testouterr_cmd bash {unload all/1.0 foo/1.0 setenv/1.0} $ans_depre_error $ts_depre_load_error |
| 374 |
|
| 375 |
set ts_depre_load_error_force [msg_load err/1.0 [msg_moderr msg {error msg} $mp/err/1.0 2 {} {} {} $custom_error_trace]]\n\n |
| 376 |
append ts_depre_load_error_force [msg_unload foo/1.0 [err_depref err/1.0] {Unloading dependent: err/1.0}] |
| 377 |
testouterr_cmd bash {unload --force all/1.0 foo/1.0 setenv/1.0} $ans_depre_error_force $ts_depre_load_error_force |
| 378 |
|
| 379 |
|
| 380 |
setenv_var TESTSUITE_ABORT_ON_ERROR depre_unload_error |
| 381 |
|
| 382 |
set ts_depre_unload_error [msg_unload err/1.0 [msg_moderr msg {error msg} $mp/err/1.0 2 {} {} {} $custom_error_trace]]\n\n |
| 383 |
append ts_depre_unload_error [msg_unload foo/1.0 [err_depun err/1.0]] |
| 384 |
testouterr_cmd bash {unload all/1.0 foo/1.0 setenv/1.0} $ans_depre_error $ts_depre_unload_error |
| 385 |
|
| 386 |
set ts_depre_unload_error_force [msg_unload err/1.0 [msg_modwarn msg {error msg} $mp/err/1.0 2 {} {} {} $custom_error_trace]]\n\n |
| 387 |
append ts_depre_unload_error_force [msg_top_unload foo/1.0 {} {} err/1.0] |
| 388 |
testouterr_cmd bash {unload --force all/1.0 foo/1.0 setenv/1.0} $ans_depre_unload_error_force $ts_depre_unload_error_force |
| 389 |
|
| 390 |
|
| 391 |
setenv_var TESTSUITE_ABORT_ON_ERROR depre_load_bad |
| 392 |
|
| 393 |
setenv_loaded_module [list setenv/1.0 foo/1.0 err/1.0 all/1.0] [list $mp/setenv/1.0 $mp/foo/1.0 $mp/err/1.0 $mp/all/1.0] |
| 394 |
setenv_var __MODULES_LMPREREQ err/1.0&err/1.0|foo |
| 395 |
set ts_depre_load_bad [msg_load err/1.0 [msg_moderr {invalid command name "bad"} bad $mp/err/1.0 2 {} {} {} $custom_error_trace]]\n\n |
| 396 |
append ts_depre_load_bad [msg_unload foo/1.0 [err_depre err/1.0]] |
| 397 |
testouterr_cmd bash {unload all/1.0 foo/1.0 setenv/1.0} $ans_depre_error $ts_depre_load_bad |
| 398 |
|
| 399 |
set ts_depre_load_bad_force [msg_load err/1.0 [msg_moderr {invalid command name "bad"} bad $mp/err/1.0 2 {} {} {} $custom_error_trace]]\n\n |
| 400 |
append ts_depre_load_bad_force [msg_unload foo/1.0 [err_depref err/1.0] {Unloading dependent: err/1.0}] |
| 401 |
testouterr_cmd bash {unload --force all/1.0 foo/1.0 setenv/1.0} $ans_depre_error_force $ts_depre_load_bad_force |
| 402 |
|
| 403 |
|
| 404 |
setenv_var TESTSUITE_ABORT_ON_ERROR depre_unload_bad |
| 405 |
|
| 406 |
set ts_depre_unload_bad [msg_unload err/1.0 [msg_moderr {invalid command name "bad"} bad $mp/err/1.0 2 {} {} {} $custom_error_trace]]\n\n |
| 407 |
append ts_depre_unload_bad [msg_unload foo/1.0 [err_depun err/1.0]] |
| 408 |
testouterr_cmd bash {unload all/1.0 foo/1.0 setenv/1.0} $ans_depre_error $ts_depre_unload_bad |
| 409 |
|
| 410 |
set ts_depre_unload_bad_force [msg_unload err/1.0 [msg_modwarn {invalid command name "bad"} bad $mp/err/1.0 2 {} {} {} $custom_error_trace]]\n\n |
| 411 |
append ts_depre_unload_bad_force [msg_top_unload foo/1.0 {} {} err/1.0] |
| 412 |
testouterr_cmd bash {unload --force all/1.0 foo/1.0 setenv/1.0} $ans_depre_unload_error_force $ts_depre_unload_bad_force |
| 413 |
|
| 414 |
|
| 415 |
setenv_var TESTSUITE_ABORT_ON_ERROR depre_load_break |
| 416 |
|
| 417 |
setenv_loaded_module [list setenv/1.0 foo/1.0 err/1.0 all/1.0] [list $mp/setenv/1.0 $mp/foo/1.0 $mp/err/1.0 $mp/all/1.0] |
| 418 |
setenv_var __MODULES_LMPREREQ err/1.0&err/1.0|foo |
| 419 |
set ts_depre_load_break [msg_load err/1.0 $err_evalabort]\n\n |
| 420 |
append ts_depre_load_break [msg_unload foo/1.0 [err_depre err/1.0]] |
| 421 |
testouterr_cmd bash {unload all/1.0 foo/1.0 setenv/1.0} $ans_depre_error $ts_depre_load_break |
| 422 |
|
| 423 |
set ts_depre_load_break_force [msg_load err/1.0 $err_evalabort]\n\n |
| 424 |
append ts_depre_load_break_force [msg_unload foo/1.0 [err_depref err/1.0] {Unloading dependent: err/1.0}] |
| 425 |
testouterr_cmd bash {unload --force all/1.0 foo/1.0 setenv/1.0} $ans_depre_error_force $ts_depre_load_break_force |
| 426 |
|
| 427 |
|
| 428 |
setenv_var TESTSUITE_ABORT_ON_ERROR depre_unload_break |
| 429 |
|
| 430 |
set ts_depre_unload_break [msg_unload err/1.0 $err_evalabort]\n\n |
| 431 |
append ts_depre_unload_break [msg_unload foo/1.0 [err_depun err/1.0]] |
| 432 |
testouterr_cmd bash {unload all/1.0 foo/1.0 setenv/1.0} $ans_depre_error $ts_depre_unload_break |
| 433 |
|
| 434 |
set ts_depre_unload_break_force [msg_unload err/1.0 $warn_evalabort]\n\n |
| 435 |
append ts_depre_unload_break_force [msg_top_unload foo/1.0 {} {} err/1.0] |
| 436 |
testouterr_cmd bash {unload --force all/1.0 foo/1.0 setenv/1.0} $ans_depre_unload_error_force $ts_depre_unload_break_force |
| 437 |
|
| 438 |
|
| 439 |
setenv_var TESTSUITE_ABORT_ON_ERROR depre_load_exit |
| 440 |
|
| 441 |
setenv_loaded_module [list setenv/1.0 foo/1.0 err/1.0 all/1.0] [list $mp/setenv/1.0 $mp/foo/1.0 $mp/err/1.0 $mp/all/1.0] |
| 442 |
setenv_var __MODULES_LMPREREQ err/1.0&err/1.0|foo |
| 443 |
set ts_depre_load_exit [msg_load err/1.0 $err_evalabort]\n\n |
| 444 |
append ts_depre_load_exit [msg_unload foo/1.0 [err_depre err/1.0]] |
| 445 |
testouterr_cmd bash {unload all/1.0 foo/1.0 setenv/1.0} $ans_depre_exit $ts_depre_load_exit |
| 446 |
|
| 447 |
set ts_depre_load_exit_force [msg_load err/1.0 $err_evalabort]\n\n |
| 448 |
append ts_depre_load_exit_force [msg_unload foo/1.0 [err_depref err/1.0] {Unloading dependent: err/1.0}] |
| 449 |
testouterr_cmd bash {unload --force all/1.0 foo/1.0 setenv/1.0} $ans_depre_exit_force $ts_depre_load_exit_force |
| 450 |
|
| 451 |
|
| 452 |
setenv_var TESTSUITE_ABORT_ON_ERROR depre_unload_exit |
| 453 |
|
| 454 |
set ts_depre_unload_exit [msg_unload err/1.0 $err_evalabort]\n\n |
| 455 |
append ts_depre_unload_exit [msg_unload foo/1.0 [err_depun err/1.0]] |
| 456 |
testouterr_cmd bash {unload all/1.0 foo/1.0 setenv/1.0} $ans_depre_error $ts_depre_unload_exit |
| 457 |
|
| 458 |
set ts_depre_unload_exit_force [msg_unload err/1.0 $warn_evalabort]\n\n |
| 459 |
append ts_depre_unload_exit_force [msg_top_unload foo/1.0 {} {} err/1.0] |
| 460 |
testouterr_cmd bash {unload --force all/1.0 foo/1.0 setenv/1.0} $ans_depre_unload_error_force $ts_depre_unload_exit_force |
| 461 |
|
| 462 |
|
| 463 |
setenv_var TESTSUITE_ABORT_ON_ERROR depun_error |
| 464 |
|
| 465 |
setenv_loaded_module [list setenv/1.0 foo/1.0 err/1.0 all/1.0] [list $mp/setenv/1.0 $mp/foo/1.0 $mp/err/1.0 $mp/all/1.0] |
| 466 |
setenv_var __MODULES_LMPREREQ err/1.0&foo |
| 467 |
|
| 468 |
set ts_depun_error [msg_unload err/1.0 [msg_moderr msg {error msg} $mp/err/1.0 2 {} {} {} $custom_error_trace]]\n\n |
| 469 |
append ts_depun_error [msg_unload foo/1.0 [err_depun err/1.0]] |
| 470 |
testouterr_cmd bash {unload all/1.0 foo/1.0 setenv/1.0} $ans_depun_error $ts_depun_error |
| 471 |
|
| 472 |
set ts_depun_error_force [msg_unload err/1.0 [msg_modwarn msg {error msg} $mp/err/1.0 2 {} {} {} $custom_error_trace]]\n\n |
| 473 |
append ts_depun_error_force [msg_top_unload foo/1.0 {err/1.0} {} {}] |
| 474 |
testouterr_cmd bash {unload --force all/1.0 foo/1.0 setenv/1.0} $ans_depun_error_force $ts_depun_error_force |
| 475 |
|
| 476 |
|
| 477 |
setenv_var TESTSUITE_ABORT_ON_ERROR depun_bad |
| 478 |
|
| 479 |
set ts_depun_bad [msg_unload err/1.0 [msg_moderr {invalid command name "bad"} bad $mp/err/1.0 2 {} {} {} $custom_error_trace]]\n\n |
| 480 |
append ts_depun_bad [msg_unload foo/1.0 [err_depun err/1.0]] |
| 481 |
testouterr_cmd bash {unload all/1.0 foo/1.0 setenv/1.0} $ans_depun_error $ts_depun_bad |
| 482 |
|
| 483 |
set ts_depun_bad_force [msg_unload err/1.0 [msg_modwarn {invalid command name "bad"} bad $mp/err/1.0 2 {} {} {} $custom_error_trace]]\n\n |
| 484 |
append ts_depun_bad_force [msg_top_unload foo/1.0 {err/1.0} {} {}] |
| 485 |
testouterr_cmd bash {unload --force all/1.0 foo/1.0 setenv/1.0} $ans_depun_error_force $ts_depun_bad_force |
| 486 |
|
| 487 |
|
| 488 |
setenv_var TESTSUITE_ABORT_ON_ERROR depun_break |
| 489 |
|
| 490 |
set ts_depun_break [msg_unload err/1.0 $err_evalabort]\n\n |
| 491 |
append ts_depun_break [msg_unload foo/1.0 [err_depun err/1.0]] |
| 492 |
testouterr_cmd bash {unload all/1.0 foo/1.0 setenv/1.0} $ans_depun_error $ts_depun_break |
| 493 |
|
| 494 |
set ts_depun_break_force [msg_unload err/1.0 $warn_evalabort]\n\n |
| 495 |
append ts_depun_break_force [msg_top_unload foo/1.0 {err/1.0} {} {}] |
| 496 |
testouterr_cmd bash {unload --force all/1.0 foo/1.0 setenv/1.0} $ans_depun_error_force $ts_depun_break_force |
| 497 |
|
| 498 |
|
| 499 |
setenv_var TESTSUITE_ABORT_ON_ERROR depun_exit |
| 500 |
|
| 501 |
set ts_depun_exit [msg_unload err/1.0 $err_evalabort]\n\n |
| 502 |
append ts_depun_exit [msg_unload foo/1.0 [err_depun err/1.0]] |
| 503 |
testouterr_cmd bash {unload all/1.0 foo/1.0 setenv/1.0} $ans_depun_error $ts_depun_exit |
| 504 |
|
| 505 |
set ts_depun_exit_force [msg_unload err/1.0 $warn_evalabort]\n\n |
| 506 |
append ts_depun_exit_force [msg_top_unload foo/1.0 {err/1.0} {} {}] |
| 507 |
testouterr_cmd bash {unload --force all/1.0 foo/1.0 setenv/1.0} $ans_depun_error_force $ts_depun_exit_force |
| 508 |
|
| 509 |
unsetenv_loaded_module |
| 510 |
unsetenv_var __MODULES_LMPREREQ |
| 511 |
|
| 512 |
|
| 513 |
setenv_loaded_module [list foo/1.0 err/1.0 all/1.0] [list $mp/foo/1.0 $mp/err/1.0 $mp/all/1.0] |
| 514 |
setenv_var __MODULES_LMTAG err/1.0&sticky |
| 515 |
setenv_var TESTSUITE_ABORT_ON_ERROR sticky |
| 516 |
|
| 517 |
set ts_sticky [msg_unload {err/1.0 <S>} $err_stickyunload] |
| 518 |
testouterr_cmd bash {unload all/1.0 err/1.0 foo/1.0} $ans_continue $ts_sticky |
| 519 |
|
| 520 |
set ts_sticky_warn [msg_unload {err/1.0 <S>} $err_stickyunloadf] |
| 521 |
testouterr_cmd bash {unload --force all/1.0 err/1.0 foo/1.0} $ans_forced_tag $ts_sticky_warn |
| 522 |
|
| 523 |
|
| 524 |
setenv_var __MODULES_LMTAG err/1.0&super-sticky |
| 525 |
setenv_var TESTSUITE_ABORT_ON_ERROR super-sticky |
| 526 |
|
| 527 |
set ts_supersticky [msg_unload {err/1.0 <sS>} $err_superstickyunload] |
| 528 |
testouterr_cmd bash {unload all/1.0 err/1.0 foo/1.0} $ans_continue $ts_supersticky |
| 529 |
|
| 530 |
testouterr_cmd bash {unload --force all/1.0 err/1.0 foo/1.0} $ans_continue $ts_supersticky |
| 531 |
|
| 532 |
|
| 533 |
setenv_var TESTSUITE_ABORT_ON_ERROR not_loaded |
| 534 |
|
| 535 |
testouterr_cmd bash {unload all/1.0 unk/1.0 foo/1.0} $ans_not_loaded {} |
| 536 |
|
| 537 |
testouterr_cmd bash {unload --force all/1.0 unk/1.0 foo/1.0} $ans_not_loaded {} |
| 538 |
|
| 539 |
|
| 540 |
# |
| 541 |
# single module to unload (continue behavior) |
| 542 |
# |
| 543 |
|
| 544 |
setenv_loaded_module [list err/1.0] [list $mp/err/1.0] |
| 545 |
|
| 546 |
setenv_var TESTSUITE_ABORT_ON_ERROR bad |
| 547 |
|
| 548 |
testouterr_cmd bash {unload err/1.0} ERR $ts_bad |
| 549 |
testouterr_cmd bash {unload --force err/1.0} $ans_single_force $ts_bad_warn |
| 550 |
|
| 551 |
setenv_var TESTSUITE_ABORT_ON_ERROR error |
| 552 |
|
| 553 |
set ts_error_single [msg_unload err/1.0 [msg_moderr msg {error msg} $mp/err/1.0 2 {} {} {} $custom_error_trace]] |
| 554 |
testouterr_cmd bash {unload err/1.0} ERR $ts_error_single |
| 555 |
set ts_error_single_warn [msg_unload err/1.0 [msg_modwarn msg {error msg} $mp/err/1.0 2 {} {} {} $custom_error_trace]] |
| 556 |
testouterr_cmd bash {unload --force err/1.0} $ans_single_force $ts_error_single_warn |
| 557 |
|
| 558 |
setenv_var TESTSUITE_ABORT_ON_ERROR break |
| 559 |
|
| 560 |
testouterr_cmd bash {unload err/1.0} ERR $ts_break |
| 561 |
testouterr_cmd bash {unload --force err/1.0} $ans_single_force $ts_break_warn |
| 562 |
|
| 563 |
setenv_var TESTSUITE_ABORT_ON_ERROR exit |
| 564 |
|
| 565 |
testouterr_cmd bash {unload err/1.0} ERR $ts_exit |
| 566 |
testouterr_cmd bash {unload --force err/1.0} $ans_single_force $ts_exit_warn |
| 567 |
|
| 568 |
|
| 569 |
# |
| 570 |
# "module unload" command in modulefile (continue behavior) |
| 571 |
# |
| 572 |
|
| 573 |
setenv_loaded_module [list foo/1.0 err/1.0] [list $mp/foo/1.0 $mp/err/1.0] |
| 574 |
|
| 575 |
setenv_var TESTSUITE_ABORT_ON_ERROR unload_last_bad |
| 576 |
|
| 577 |
set ts_unload_bad $ts_bad |
| 578 |
append ts_unload_bad \n\n[msg_load lerr/1.0 [err_conun err/1.0]] |
| 579 |
testouterr_cmd bash {load lerr/1.0} ERR $ts_unload_bad |
| 580 |
|
| 581 |
set ts_unload_bad_warn $ts_bad_warn\n\n |
| 582 |
append ts_unload_bad_warn [msg_top_load lerr/1.0 {foo/1.0 err/1.0} {} {}] |
| 583 |
testouterr_cmd bash {load --force lerr/1.0} $ans_modfile_last_force $ts_unload_bad_warn |
| 584 |
|
| 585 |
|
| 586 |
setenv_var TESTSUITE_ABORT_ON_ERROR unload_first_bad |
| 587 |
|
| 588 |
testouterr_cmd bash {load lerr/1.0} ERR $ts_unload_bad |
| 589 |
|
| 590 |
set ts_unload_bad_first_warn $ts_bad_warn\n\n |
| 591 |
append ts_unload_bad_first_warn [msg_top_load lerr/1.0 {err/1.0 foo/1.0} {} {}] |
| 592 |
testouterr_cmd bash {load --force lerr/1.0} $ans_modfile_force $ts_unload_bad_first_warn |
| 593 |
|
| 594 |
|
| 595 |
setenv_var TESTSUITE_ABORT_ON_ERROR unload_first_break |
| 596 |
|
| 597 |
set ts_unload_break $ts_break |
| 598 |
append ts_unload_break \n\n[msg_load lerr/1.0 [err_conun err/1.0]] |
| 599 |
testouterr_cmd bash {load lerr/1.0} ERR $ts_unload_break |
| 600 |
|
| 601 |
set ts_unload_break_warn $ts_break_warn\n\n |
| 602 |
append ts_unload_break_warn [msg_top_load lerr/1.0 {err/1.0 foo/1.0} {} {}] |
| 603 |
testouterr_cmd bash {load --force lerr/1.0} $ans_modfile_force $ts_unload_break_warn |
| 604 |
|
| 605 |
|
| 606 |
setenv_var TESTSUITE_ABORT_ON_ERROR unload_first_exit |
| 607 |
|
| 608 |
set ts_unload_exit $ts_exit |
| 609 |
append ts_unload_exit \n\n[msg_load lerr/1.0 [err_conun err/1.0]] |
| 610 |
testouterr_cmd bash {load lerr/1.0} ERR $ts_unload_exit |
| 611 |
|
| 612 |
set ts_unload_exit_warn $ts_exit_warn\n\n |
| 613 |
append ts_unload_exit_warn [msg_top_load lerr/1.0 {err/1.0 foo/1.0} {} {}] |
| 614 |
testouterr_cmd bash {load --force lerr/1.0} $ans_modfile_force $ts_unload_exit_warn |
| 615 |
|
| 616 |
|
| 617 |
# |
| 618 |
# multiple module to unload (abort behavior) |
| 619 |
# |
| 620 |
|
| 621 |
setenv_var MODULES_ABORT_ON_ERROR ml:reload:switch_unload:unload |
| 622 |
setenv_loaded_module [list foo/1.0 err/1.0 all/1.0] [list $mp/foo/1.0 $mp/err/1.0 $mp/all/1.0] |
| 623 |
|
| 624 |
setenv_var TESTSUITE_ABORT_ON_ERROR bad |
| 625 |
|
| 626 |
set ts_bad [msg_unload err/1.0 [msg_moderr {invalid command name "bad"} bad $mp/err/1.0 2 {} {} {} $custom_error_trace]] |
| 627 |
testouterr_cmd bash {unload all/1.0 err/1.0 foo/1.0} ERR $ts_bad |
| 628 |
|
| 629 |
set ts_bad_warn [msg_unload err/1.0 [msg_modwarn {invalid command name "bad"} bad $mp/err/1.0 2 {} {} {} $custom_error_trace]] |
| 630 |
testouterr_cmd bash {unload --force all/1.0 err/1.0 foo/1.0} $ans_forced $ts_bad_warn |
| 631 |
|
| 632 |
|
| 633 |
setenv_var TESTSUITE_ABORT_ON_ERROR break |
| 634 |
|
| 635 |
set ts_break [msg_unload err/1.0 $err_evalabort] |
| 636 |
testouterr_cmd bash {unload all/1.0 err/1.0 foo/1.0} ERR $ts_break |
| 637 |
|
| 638 |
set ts_break_warn [msg_unload err/1.0 $warn_evalabort] |
| 639 |
testouterr_cmd bash {unload --force all/1.0 err/1.0 foo/1.0} $ans_forced $ts_break_warn |
| 640 |
|
| 641 |
|
| 642 |
setenv_var TESTSUITE_ABORT_ON_ERROR exit |
| 643 |
|
| 644 |
set ts_exit [msg_unload err/1.0 $err_evalabort] |
| 645 |
testouterr_cmd bash {unload all/1.0 err/1.0 foo/1.0} ERR $ts_exit |
| 646 |
|
| 647 |
set ts_exit_warn [msg_unload err/1.0 $warn_evalabort] |
| 648 |
testouterr_cmd bash {unload --force all/1.0 err/1.0 foo/1.0} $ans_forced $ts_exit_warn |
| 649 |
|
| 650 |
|
| 651 |
setenv_var TESTSUITE_ABORT_ON_ERROR continue |
| 652 |
|
| 653 |
testouterr_cmd bash {unload all/1.0 err/1.0 foo/1.0} $ans_forced {} |
| 654 |
|
| 655 |
testouterr_cmd bash {unload --force all/1.0 err/1.0 foo/1.0} $ans_forced {} |
| 656 |
|
| 657 |
|
| 658 |
setenv_var TESTSUITE_ABORT_ON_ERROR error |
| 659 |
|
| 660 |
set ts_error_verbose [msg_unload all/1.0]\n\n |
| 661 |
append ts_error_verbose [msg_unload err/1.0 [msg_moderr msg {error msg} $mp/err/1.0 2 {} {} {} $custom_error_trace]] |
| 662 |
testouterr_cmd bash {unload -v all/1.0 err/1.0 foo/1.0} ERR $ts_error_verbose |
| 663 |
|
| 664 |
set ts_error_verbose_warn [msg_unload all/1.0]\n\n |
| 665 |
append ts_error_verbose_warn [msg_unload err/1.0 [msg_modwarn msg {error msg} $mp/err/1.0 2 {} {} {} $custom_error_trace]]\n\n |
| 666 |
append ts_error_verbose_warn [msg_unload foo/1.0] |
| 667 |
testouterr_cmd bash {unload --force -v all/1.0 err/1.0 foo/1.0} $ans_forced $ts_error_verbose_warn |
| 668 |
|
| 669 |
|
| 670 |
setenv_var TESTSUITE_ABORT_ON_ERROR depre_load_error |
| 671 |
|
| 672 |
setenv_loaded_module [list setenv/1.0 foo/1.0 err/1.0 all/1.0] [list $mp/setenv/1.0 $mp/foo/1.0 $mp/err/1.0 $mp/all/1.0] |
| 673 |
setenv_var __MODULES_LMPREREQ err/1.0&err/1.0|foo |
| 674 |
set ts_depre_load_error [msg_load err/1.0 [msg_moderr msg {error msg} $mp/err/1.0 2 {} {} {} $custom_error_trace]]\n\n |
| 675 |
append ts_depre_load_error [msg_unload foo/1.0 [err_depre err/1.0]] |
| 676 |
testouterr_cmd bash {unload all/1.0 foo/1.0 setenv/1.0} ERR $ts_depre_load_error |
| 677 |
|
| 678 |
set ts_depre_load_error_force [msg_load err/1.0 [msg_moderr msg {error msg} $mp/err/1.0 2 {} {} {} $custom_error_trace]]\n\n |
| 679 |
append ts_depre_load_error_force [msg_unload foo/1.0 [err_depref err/1.0] {Unloading dependent: err/1.0}] |
| 680 |
testouterr_cmd bash {unload --force all/1.0 foo/1.0 setenv/1.0} $ans_depre_error_force $ts_depre_load_error_force |
| 681 |
|
| 682 |
|
| 683 |
setenv_var TESTSUITE_ABORT_ON_ERROR depre_unload_error |
| 684 |
|
| 685 |
set ts_depre_unload_error [msg_unload err/1.0 [msg_moderr msg {error msg} $mp/err/1.0 2 {} {} {} $custom_error_trace]]\n\n |
| 686 |
append ts_depre_unload_error [msg_unload foo/1.0 [err_depun err/1.0]] |
| 687 |
testouterr_cmd bash {unload all/1.0 foo/1.0 setenv/1.0} ERR $ts_depre_unload_error |
| 688 |
|
| 689 |
set ts_depre_unload_error_force [msg_unload err/1.0 [msg_modwarn msg {error msg} $mp/err/1.0 2 {} {} {} $custom_error_trace]]\n\n |
| 690 |
append ts_depre_unload_error_force [msg_top_unload foo/1.0 {} {} err/1.0] |
| 691 |
testouterr_cmd bash {unload --force all/1.0 foo/1.0 setenv/1.0} $ans_depre_unload_error_force $ts_depre_unload_error_force |
| 692 |
|
| 693 |
|
| 694 |
setenv_var TESTSUITE_ABORT_ON_ERROR depre_load_bad |
| 695 |
|
| 696 |
setenv_loaded_module [list setenv/1.0 foo/1.0 err/1.0 all/1.0] [list $mp/setenv/1.0 $mp/foo/1.0 $mp/err/1.0 $mp/all/1.0] |
| 697 |
setenv_var __MODULES_LMPREREQ err/1.0&err/1.0|foo |
| 698 |
set ts_depre_load_bad [msg_load err/1.0 [msg_moderr {invalid command name "bad"} bad $mp/err/1.0 2 {} {} {} $custom_error_trace]]\n\n |
| 699 |
append ts_depre_load_bad [msg_unload foo/1.0 [err_depre err/1.0]] |
| 700 |
testouterr_cmd bash {unload all/1.0 foo/1.0 setenv/1.0} ERR $ts_depre_load_bad |
| 701 |
|
| 702 |
set ts_depre_load_bad_force [msg_load err/1.0 [msg_moderr {invalid command name "bad"} bad $mp/err/1.0 2 {} {} {} $custom_error_trace]]\n\n |
| 703 |
append ts_depre_load_bad_force [msg_unload foo/1.0 [err_depref err/1.0] {Unloading dependent: err/1.0}] |
| 704 |
testouterr_cmd bash {unload --force all/1.0 foo/1.0 setenv/1.0} $ans_depre_error_force $ts_depre_load_bad_force |
| 705 |
|
| 706 |
|
| 707 |
setenv_var TESTSUITE_ABORT_ON_ERROR depre_unload_bad |
| 708 |
|
| 709 |
set ts_depre_unload_bad [msg_unload err/1.0 [msg_moderr {invalid command name "bad"} bad $mp/err/1.0 2 {} {} {} $custom_error_trace]]\n\n |
| 710 |
append ts_depre_unload_bad [msg_unload foo/1.0 [err_depun err/1.0]] |
| 711 |
testouterr_cmd bash {unload all/1.0 foo/1.0 setenv/1.0} ERR $ts_depre_unload_bad |
| 712 |
|
| 713 |
set ts_depre_unload_bad_force [msg_unload err/1.0 [msg_modwarn {invalid command name "bad"} bad $mp/err/1.0 2 {} {} {} $custom_error_trace]]\n\n |
| 714 |
append ts_depre_unload_bad_force [msg_top_unload foo/1.0 {} {} err/1.0] |
| 715 |
testouterr_cmd bash {unload --force all/1.0 foo/1.0 setenv/1.0} $ans_depre_unload_error_force $ts_depre_unload_bad_force |
| 716 |
|
| 717 |
|
| 718 |
setenv_var TESTSUITE_ABORT_ON_ERROR depre_load_break |
| 719 |
|
| 720 |
setenv_loaded_module [list setenv/1.0 foo/1.0 err/1.0 all/1.0] [list $mp/setenv/1.0 $mp/foo/1.0 $mp/err/1.0 $mp/all/1.0] |
| 721 |
setenv_var __MODULES_LMPREREQ err/1.0&err/1.0|foo |
| 722 |
set ts_depre_load_break [msg_load err/1.0 $err_evalabort]\n\n |
| 723 |
append ts_depre_load_break [msg_unload foo/1.0 [err_depre err/1.0]] |
| 724 |
testouterr_cmd bash {unload all/1.0 foo/1.0 setenv/1.0} ERR $ts_depre_load_break |
| 725 |
|
| 726 |
set ts_depre_load_break_force [msg_load err/1.0 $err_evalabort]\n\n |
| 727 |
append ts_depre_load_break_force [msg_unload foo/1.0 [err_depref err/1.0] {Unloading dependent: err/1.0}] |
| 728 |
testouterr_cmd bash {unload --force all/1.0 foo/1.0 setenv/1.0} $ans_depre_error_force $ts_depre_load_break_force |
| 729 |
|
| 730 |
|
| 731 |
setenv_var TESTSUITE_ABORT_ON_ERROR depre_unload_break |
| 732 |
|
| 733 |
set ts_depre_unload_break [msg_unload err/1.0 $err_evalabort]\n\n |
| 734 |
append ts_depre_unload_break [msg_unload foo/1.0 [err_depun err/1.0]] |
| 735 |
testouterr_cmd bash {unload all/1.0 foo/1.0 setenv/1.0} ERR $ts_depre_unload_break |
| 736 |
|
| 737 |
set ts_depre_unload_break_force [msg_unload err/1.0 $warn_evalabort]\n\n |
| 738 |
append ts_depre_unload_break_force [msg_top_unload foo/1.0 {} {} err/1.0] |
| 739 |
testouterr_cmd bash {unload --force all/1.0 foo/1.0 setenv/1.0} $ans_depre_unload_error_force $ts_depre_unload_break_force |
| 740 |
|
| 741 |
|
| 742 |
setenv_var TESTSUITE_ABORT_ON_ERROR depre_load_exit |
| 743 |
|
| 744 |
setenv_loaded_module [list setenv/1.0 foo/1.0 err/1.0 all/1.0] [list $mp/setenv/1.0 $mp/foo/1.0 $mp/err/1.0 $mp/all/1.0] |
| 745 |
setenv_var __MODULES_LMPREREQ err/1.0&err/1.0|foo |
| 746 |
set ts_depre_load_exit [msg_load err/1.0 $err_evalabort]\n\n |
| 747 |
append ts_depre_load_exit [msg_unload foo/1.0 [err_depre err/1.0]] |
| 748 |
testouterr_cmd bash {unload all/1.0 foo/1.0 setenv/1.0} ERR $ts_depre_load_exit |
| 749 |
|
| 750 |
set ts_depre_load_exit_force [msg_load err/1.0 $err_evalabort]\n\n |
| 751 |
append ts_depre_load_exit_force [msg_unload foo/1.0 [err_depref err/1.0] {Unloading dependent: err/1.0}] |
| 752 |
testouterr_cmd bash {unload --force all/1.0 foo/1.0 setenv/1.0} $ans_depre_exit_force $ts_depre_load_exit_force |
| 753 |
|
| 754 |
|
| 755 |
setenv_var TESTSUITE_ABORT_ON_ERROR depre_unload_exit |
| 756 |
|
| 757 |
set ts_depre_unload_exit [msg_unload err/1.0 $err_evalabort]\n\n |
| 758 |
append ts_depre_unload_exit [msg_unload foo/1.0 [err_depun err/1.0]] |
| 759 |
testouterr_cmd bash {unload all/1.0 foo/1.0 setenv/1.0} ERR $ts_depre_unload_exit |
| 760 |
|
| 761 |
set ts_depre_unload_exit_force [msg_unload err/1.0 $warn_evalabort]\n\n |
| 762 |
append ts_depre_unload_exit_force [msg_top_unload foo/1.0 {} {} err/1.0] |
| 763 |
testouterr_cmd bash {unload --force all/1.0 foo/1.0 setenv/1.0} $ans_depre_unload_error_force $ts_depre_unload_exit_force |
| 764 |
|
| 765 |
|
| 766 |
setenv_var TESTSUITE_ABORT_ON_ERROR depun_error |
| 767 |
|
| 768 |
setenv_loaded_module [list setenv/1.0 foo/1.0 err/1.0 all/1.0] [list $mp/setenv/1.0 $mp/foo/1.0 $mp/err/1.0 $mp/all/1.0] |
| 769 |
setenv_var __MODULES_LMPREREQ err/1.0&foo |
| 770 |
|
| 771 |
set ts_depun_error [msg_unload err/1.0 [msg_moderr msg {error msg} $mp/err/1.0 2 {} {} {} $custom_error_trace]]\n\n |
| 772 |
append ts_depun_error [msg_unload foo/1.0 [err_depun err/1.0]] |
| 773 |
testouterr_cmd bash {unload all/1.0 foo/1.0 setenv/1.0} ERR $ts_depun_error |
| 774 |
|
| 775 |
set ts_depun_error_force [msg_unload err/1.0 [msg_modwarn msg {error msg} $mp/err/1.0 2 {} {} {} $custom_error_trace]]\n\n |
| 776 |
append ts_depun_error_force [msg_top_unload foo/1.0 {err/1.0} {} {}] |
| 777 |
testouterr_cmd bash {unload --force all/1.0 foo/1.0 setenv/1.0} $ans_depun_error_force $ts_depun_error_force |
| 778 |
|
| 779 |
|
| 780 |
setenv_var TESTSUITE_ABORT_ON_ERROR depun_bad |
| 781 |
|
| 782 |
set ts_depun_bad [msg_unload err/1.0 [msg_moderr {invalid command name "bad"} bad $mp/err/1.0 2 {} {} {} $custom_error_trace]]\n\n |
| 783 |
append ts_depun_bad [msg_unload foo/1.0 [err_depun err/1.0]] |
| 784 |
testouterr_cmd bash {unload all/1.0 foo/1.0 setenv/1.0} ERR $ts_depun_bad |
| 785 |
|
| 786 |
set ts_depun_bad_force [msg_unload err/1.0 [msg_modwarn {invalid command name "bad"} bad $mp/err/1.0 2 {} {} {} $custom_error_trace]]\n\n |
| 787 |
append ts_depun_bad_force [msg_top_unload foo/1.0 {err/1.0} {} {}] |
| 788 |
testouterr_cmd bash {unload --force all/1.0 foo/1.0 setenv/1.0} $ans_depun_error_force $ts_depun_bad_force |
| 789 |
|
| 790 |
|
| 791 |
setenv_var TESTSUITE_ABORT_ON_ERROR depun_break |
| 792 |
|
| 793 |
set ts_depun_break [msg_unload err/1.0 $err_evalabort]\n\n |
| 794 |
append ts_depun_break [msg_unload foo/1.0 [err_depun err/1.0]] |
| 795 |
testouterr_cmd bash {unload all/1.0 foo/1.0 setenv/1.0} ERR $ts_depun_break |
| 796 |
|
| 797 |
set ts_depun_break_force [msg_unload err/1.0 $warn_evalabort]\n\n |
| 798 |
append ts_depun_break_force [msg_top_unload foo/1.0 {err/1.0} {} {}] |
| 799 |
testouterr_cmd bash {unload --force all/1.0 foo/1.0 setenv/1.0} $ans_depun_error_force $ts_depun_break_force |
| 800 |
|
| 801 |
|
| 802 |
setenv_var TESTSUITE_ABORT_ON_ERROR depun_exit |
| 803 |
|
| 804 |
set ts_depun_exit [msg_unload err/1.0 $err_evalabort]\n\n |
| 805 |
append ts_depun_exit [msg_unload foo/1.0 [err_depun err/1.0]] |
| 806 |
testouterr_cmd bash {unload all/1.0 foo/1.0 setenv/1.0} ERR $ts_depun_exit |
| 807 |
|
| 808 |
set ts_depun_exit_force [msg_unload err/1.0 $warn_evalabort]\n\n |
| 809 |
append ts_depun_exit_force [msg_top_unload foo/1.0 {err/1.0} {} {}] |
| 810 |
testouterr_cmd bash {unload --force all/1.0 foo/1.0 setenv/1.0} $ans_depun_error_force $ts_depun_exit_force |
| 811 |
|
| 812 |
unsetenv_loaded_module |
| 813 |
unsetenv_var __MODULES_LMPREREQ |
| 814 |
|
| 815 |
|
| 816 |
setenv_loaded_module [list foo/1.0 err/1.0 all/1.0] [list $mp/foo/1.0 $mp/err/1.0 $mp/all/1.0] |
| 817 |
setenv_var __MODULES_LMTAG err/1.0&sticky |
| 818 |
setenv_var TESTSUITE_ABORT_ON_ERROR sticky |
| 819 |
|
| 820 |
set ts_sticky [msg_unload {err/1.0 <S>} $err_stickyunload] |
| 821 |
testouterr_cmd bash {unload all/1.0 err/1.0 foo/1.0} ERR $ts_sticky |
| 822 |
|
| 823 |
set ts_sticky_warn [msg_unload {err/1.0 <S>} $err_stickyunloadf] |
| 824 |
testouterr_cmd bash {unload --force all/1.0 err/1.0 foo/1.0} $ans_forced_tag $ts_sticky_warn |
| 825 |
|
| 826 |
|
| 827 |
setenv_var __MODULES_LMTAG err/1.0&super-sticky |
| 828 |
setenv_var TESTSUITE_ABORT_ON_ERROR super-sticky |
| 829 |
|
| 830 |
set ts_supersticky [msg_unload {err/1.0 <sS>} $err_superstickyunload] |
| 831 |
testouterr_cmd bash {unload all/1.0 err/1.0 foo/1.0} ERR $ts_supersticky |
| 832 |
|
| 833 |
testouterr_cmd bash {unload --force all/1.0 err/1.0 foo/1.0} $ans_continue $ts_supersticky |
| 834 |
|
| 835 |
|
| 836 |
setenv_var TESTSUITE_ABORT_ON_ERROR not_loaded |
| 837 |
|
| 838 |
testouterr_cmd bash {unload all/1.0 unk/1.0 foo/1.0} $ans_not_loaded {} |
| 839 |
|
| 840 |
testouterr_cmd bash {unload --force all/1.0 unk/1.0 foo/1.0} $ans_not_loaded {} |
| 841 |
|
| 842 |
|
| 843 |
# |
| 844 |
# single module to unload (abort behavior, no effect) |
| 845 |
# |
| 846 |
|
| 847 |
setenv_loaded_module [list err/1.0] [list $mp/err/1.0] |
| 848 |
|
| 849 |
setenv_var TESTSUITE_ABORT_ON_ERROR bad |
| 850 |
|
| 851 |
testouterr_cmd bash {unload err/1.0} ERR $ts_bad |
| 852 |
testouterr_cmd bash {unload --force err/1.0} $ans_single_force $ts_bad_warn |
| 853 |
|
| 854 |
setenv_var TESTSUITE_ABORT_ON_ERROR error |
| 855 |
|
| 856 |
set ts_error_single [msg_unload err/1.0 [msg_moderr msg {error msg} $mp/err/1.0 2 {} {} {} $custom_error_trace]] |
| 857 |
testouterr_cmd bash {unload err/1.0} ERR $ts_error_single |
| 858 |
set ts_error_single_warn [msg_unload err/1.0 [msg_modwarn msg {error msg} $mp/err/1.0 2 {} {} {} $custom_error_trace]] |
| 859 |
testouterr_cmd bash {unload --force err/1.0} $ans_single_force $ts_error_single_warn |
| 860 |
|
| 861 |
setenv_var TESTSUITE_ABORT_ON_ERROR break |
| 862 |
|
| 863 |
testouterr_cmd bash {unload err/1.0} ERR $ts_break |
| 864 |
testouterr_cmd bash {unload --force err/1.0} $ans_single_force $ts_break_warn |
| 865 |
|
| 866 |
setenv_var TESTSUITE_ABORT_ON_ERROR exit |
| 867 |
|
| 868 |
testouterr_cmd bash {unload err/1.0} ERR $ts_exit |
| 869 |
testouterr_cmd bash {unload --force err/1.0} $ans_single_force $ts_exit_warn |
| 870 |
|
| 871 |
|
| 872 |
# |
| 873 |
# "module unload" command in modulefile (abort behavior, no effect) |
| 874 |
# |
| 875 |
|
| 876 |
setenv_loaded_module [list foo/1.0 err/1.0] [list $mp/foo/1.0 $mp/err/1.0] |
| 877 |
|
| 878 |
setenv_var TESTSUITE_ABORT_ON_ERROR unload_last_bad |
| 879 |
|
| 880 |
set ts_unload_bad $ts_bad |
| 881 |
append ts_unload_bad \n\n[msg_load lerr/1.0 [err_conun err/1.0]] |
| 882 |
testouterr_cmd bash {load lerr/1.0} ERR $ts_unload_bad |
| 883 |
|
| 884 |
set ts_unload_bad_warn $ts_bad_warn\n\n |
| 885 |
append ts_unload_bad_warn [msg_top_load lerr/1.0 {foo/1.0 err/1.0} {} {}] |
| 886 |
testouterr_cmd bash {load --force lerr/1.0} $ans_modfile_last_force $ts_unload_bad_warn |
| 887 |
|
| 888 |
|
| 889 |
setenv_var TESTSUITE_ABORT_ON_ERROR unload_first_bad |
| 890 |
|
| 891 |
testouterr_cmd bash {load lerr/1.0} ERR $ts_unload_bad |
| 892 |
|
| 893 |
set ts_unload_bad_first_warn $ts_bad_warn\n\n |
| 894 |
append ts_unload_bad_first_warn [msg_top_load lerr/1.0 {err/1.0 foo/1.0} {} {}] |
| 895 |
testouterr_cmd bash {load --force lerr/1.0} $ans_modfile_force $ts_unload_bad_first_warn |
| 896 |
|
| 897 |
|
| 898 |
setenv_var TESTSUITE_ABORT_ON_ERROR unload_first_break |
| 899 |
|
| 900 |
set ts_unload_break $ts_break |
| 901 |
append ts_unload_break \n\n[msg_load lerr/1.0 [err_conun err/1.0]] |
| 902 |
testouterr_cmd bash {load lerr/1.0} ERR $ts_unload_break |
| 903 |
|
| 904 |
set ts_unload_break_warn $ts_break_warn\n\n |
| 905 |
append ts_unload_break_warn [msg_top_load lerr/1.0 {err/1.0 foo/1.0} {} {}] |
| 906 |
testouterr_cmd bash {load --force lerr/1.0} $ans_modfile_force $ts_unload_break_warn |
| 907 |
|
| 908 |
|
| 909 |
setenv_var TESTSUITE_ABORT_ON_ERROR unload_first_exit |
| 910 |
|
| 911 |
set ts_unload_exit $ts_exit |
| 912 |
append ts_unload_exit \n\n[msg_load lerr/1.0 [err_conun err/1.0]] |
| 913 |
testouterr_cmd bash {load lerr/1.0} ERR $ts_unload_exit |
| 914 |
|
| 915 |
set ts_unload_exit_warn $ts_exit_warn\n\n |
| 916 |
append ts_unload_exit_warn [msg_top_load lerr/1.0 {err/1.0 foo/1.0} {} {}] |
| 917 |
testouterr_cmd bash {load --force lerr/1.0} $ans_modfile_force $ts_unload_exit_warn |
| 918 |
|
| 919 |
|
| 920 |
# |
| 921 |
# dependent reload mechanism |
| 922 |
# |
| 923 |
|
| 924 |
# dependent reload module breaks on unload and load (optional requirement) |
| 925 |
setenv_var TESTSUITE_ABORT_ON_ERROR unload_opt_depre_break |
| 926 |
|
| 927 |
setenv_loaded_module [list foo/1.0 err/1.0] [list $mp/foo/1.0 $mp/err/1.0] |
| 928 |
setenv_var __MODULES_LMPREREQ err/1.0&err/1.0|foo |
| 929 |
|
| 930 |
if {[is_conf_enabled conflictunload]} { |
| 931 |
set ts_load_opt_depre_break [msg_unload err/1.0 $err_evalabort] |
| 932 |
append ts_load_opt_depre_break \n\n[msg_unload foo/1.0 [err_depun err/1.0]] |
| 933 |
append ts_load_opt_depre_break \n\n[msg_load lerr/1.0 [err_conun foo/1.0]] |
| 934 |
testouterr_cmd bash {load lerr/1.0} ERR $ts_load_opt_depre_break |
| 935 |
set ts_load_opt_depre_break_force [msg_unload err/1.0 $warn_evalabort] |
| 936 |
append ts_load_opt_depre_break_force \n\n[msg_load err/1.0 $err_evalabort] |
| 937 |
append ts_load_opt_depre_break_force \n\n[msg_top_load lerr/1.0 foo/1.0 {} {err/1.0 {}} [err_depref err/1.0]] |
| 938 |
testouterr_cmd bash {load --force lerr/1.0} $ans_modfile_opt_depre_break_force_conun $ts_load_opt_depre_break_force |
| 939 |
} else { |
| 940 |
#FIXME: optional dependency err/1.0 should be reloaded when foo/1.0 is unloaded |
| 941 |
set ts_load_opt_depre_break [msg_top_load lerr/1.0 {foo/1.0} {} {}] |
| 942 |
testouterr_cmd bash {load lerr/1.0} $ans_modfile_opt_depre_break $ts_load_opt_depre_break |
| 943 |
testouterr_cmd bash {load --force lerr/1.0} $ans_modfile_opt_depre_break $ts_load_opt_depre_break |
| 944 |
} |
| 945 |
|
| 946 |
|
| 947 |
# dependent reload module breaks on unload and load (conflict) |
| 948 |
setenv_var TESTSUITE_ABORT_ON_ERROR unload_conflict_depre_break |
| 949 |
unsetenv_var __MODULES_LMPREREQ |
| 950 |
setenv_var __MODULES_LMCONFLICT err/1.0&foo |
| 951 |
|
| 952 |
if {[is_conf_enabled conflictunload]} { |
| 953 |
set ts_load_conflict_depre_break $ts_load_opt_depre_break |
| 954 |
testouterr_cmd bash {load lerr/1.0} ERR $ts_load_conflict_depre_break |
| 955 |
set ts_load_conflict_depre_break_force $ts_load_opt_depre_break_force |
| 956 |
testouterr_cmd bash {load --force lerr/1.0} $ans_modfile_conflict_depre_break_force_conun $ts_load_conflict_depre_break_force |
| 957 |
} else { |
| 958 |
#FIXME: freshly non-conflicting err/1.0 should be reloaded when conflicting foo/1.0 is unloaded |
| 959 |
set ts_load_conflict_depre_break [msg_top_load lerr/1.0 {foo/1.0} {} {}] |
| 960 |
testouterr_cmd bash {load lerr/1.0} $ans_modfile_conflict_depre_break $ts_load_conflict_depre_break |
| 961 |
testouterr_cmd bash {load --force lerr/1.0} $ans_modfile_conflict_depre_break $ts_load_conflict_depre_break |
| 962 |
} |
| 963 |
|
| 964 |
|
| 965 |
# dependent reload module breaks on load (conflict) |
| 966 |
setenv_var TESTSUITE_ABORT_ON_ERROR unload_conflict_depre_load_break |
| 967 |
|
| 968 |
if {[is_conf_enabled conflictunload]} { |
| 969 |
set ts_load_conflict_depre_break [msg_load err/1.0 $err_evalabort] |
| 970 |
append ts_load_conflict_depre_break \n\n[msg_load lerr/1.0 [err_depre err/1.0]] |
| 971 |
testouterr_cmd bash {load lerr/1.0} ERR $ts_load_conflict_depre_break |
| 972 |
set ts_load_conflict_depre_break_force [msg_load err/1.0 $err_evalabort] |
| 973 |
append ts_load_conflict_depre_break_force \n\n[msg_top_load lerr/1.0 foo/1.0 {} {err/1.0 {}} [err_depref err/1.0]] |
| 974 |
testouterr_cmd bash {load --force lerr/1.0} $ans_modfile_conflict_depre_break_force_conun $ts_load_conflict_depre_break_force |
| 975 |
} else { |
| 976 |
testouterr_cmd bash {load lerr/1.0} $ans_modfile_conflict_depre_break $ts_load_conflict_depre_break |
| 977 |
testouterr_cmd bash {load --force lerr/1.0} $ans_modfile_conflict_depre_break $ts_load_conflict_depre_break |
| 978 |
} |
| 979 |
|
| 980 |
|
| 981 |
# dependent reload module breaks on unload and load (conflict, unload of module that "module load") |
| 982 |
setenv_var TESTSUITE_ABORT_ON_ERROR unload_load_conflict_depre_break |
| 983 |
setenv_loaded_module [list foo/1.0 err/1.0 lerr/1.0] [list $mp/foo/1.0 $mp/err/1.0 $mp/lerr/1.0] [list foo/1.0] |
| 984 |
setenv_var __MODULES_LMPREREQ lerr/1.0&foo/1.0 |
| 985 |
setenv_var __MODULES_LMCONFLICT err/1.0&foo |
| 986 |
|
| 987 |
set ts_unload_load_conflict_depre_break [msg_unload err/1.0 $err_evalabort] |
| 988 |
append ts_unload_load_conflict_depre_break \n\n[msg_unload lerr/1.0 [err_depun err/1.0]] |
| 989 |
testouterr_cmd bash {unload lerr/1.0} ERR $ts_unload_load_conflict_depre_break |
| 990 |
|
| 991 |
set ts_load_unload_conflict_depre_break_force [msg_unload err/1.0 $warn_evalabort] |
| 992 |
append ts_load_unload_conflict_depre_break_force \n\n[msg_load err/1.0 $err_evalabort] |
| 993 |
append ts_load_unload_conflict_depre_break_force \n\n[msg_top_unload lerr/1.0 {} {foo/1.0} {{err/1.0} {}} [err_depref err/1.0]] |
| 994 |
testouterr_cmd bash {unload --force lerr/1.0} $ans_modfile_unload_conflict_depre_break_force $ts_load_unload_conflict_depre_break_force |
| 995 |
|
| 996 |
|
| 997 |
# dependent reload module breaks on load (unload of module that "module load") |
| 998 |
setenv_var TESTSUITE_ABORT_ON_ERROR unload_load_conflict_depre_load_break |
| 999 |
|
| 1000 |
set ts_unload_load_conflict_depre_load_break [msg_load err/1.0 $err_evalabort] |
| 1001 |
append ts_unload_load_conflict_depre_load_break \n\n[msg_unload lerr/1.0 [err_depre err/1.0]] |
| 1002 |
testouterr_cmd bash {unload lerr/1.0} ERR $ts_unload_load_conflict_depre_load_break |
| 1003 |
|
| 1004 |
set ts_load_unload_conflict_depre_load_break_force [msg_load err/1.0 $err_evalabort] |
| 1005 |
append ts_load_unload_conflict_depre_load_break_force \n\n[msg_top_unload lerr/1.0 {} {foo/1.0} {{err/1.0} {}} [err_depref err/1.0]] |
| 1006 |
testouterr_cmd bash {unload --force lerr/1.0} $ans_modfile_unload_conflict_depre_break_force $ts_load_unload_conflict_depre_load_break_force |
| 1007 |
|
| 1008 |
unsetenv_loaded_module |
| 1009 |
unsetenv_var __MODULES_LMPREREQ |
| 1010 |
unsetenv_var __MODULES_LMCONFLICT |
| 1011 |
|
| 1012 |
|
| 1013 |
# |
| 1014 |
# dependent unload mechanism with sticky modules |
| 1015 |
# |
| 1016 |
|
| 1017 |
setenv_loaded_module [list foo/1.0 err/1.0] [list $mp/foo/1.0 $mp/err/1.0] |
| 1018 |
setenv_var __MODULES_LMPREREQ err/1.0&foo/1.0 |
| 1019 |
setenv_var __MODULES_LMTAG foo/1.0&auto-loaded:err/1.0&sticky |
| 1020 |
|
| 1021 |
# dependent module to unload is sticky, dependency declared with prereq |
| 1022 |
setenv_var TESTSUITE_ABORT_ON_ERROR depun_sticky |
| 1023 |
|
| 1024 |
set ts_unload_depun_sticky [msg_unload {err/1.0 <S>} $err_stickyunload] |
| 1025 |
append ts_unload_depun_sticky \n\n[msg_unload {foo/1.0 <aL>} [err_depun err/1.0]] |
| 1026 |
testouterr_cmd bash {unload foo/1.0} ERR $ts_unload_depun_sticky |
| 1027 |
|
| 1028 |
set ts_unload_depun_sticky_force [msg_unload {err/1.0 <S>} $err_stickyunloadf] |
| 1029 |
append ts_unload_depun_sticky_force \n\n[msg_top_unload {foo/1.0 <aL>} {err/1.0} {} {}] |
| 1030 |
testouterr_cmd bash {unload --force foo/1.0} $ans_modfile_depun_sticky_force $ts_unload_depun_sticky_force |
| 1031 |
|
| 1032 |
# dependent module to unload is super-sticky, dependency declared with prereq |
| 1033 |
setenv_var TESTSUITE_ABORT_ON_ERROR depun_super-sticky |
| 1034 |
setenv_var __MODULES_LMTAG foo/1.0&auto-loaded:err/1.0&super-sticky |
| 1035 |
|
| 1036 |
set ts_unload_depun_super_sticky [msg_unload {err/1.0 <sS>} $err_superstickyunload] |
| 1037 |
append ts_unload_depun_super_sticky \n\n[msg_unload {foo/1.0 <aL>} [err_depunf err/1.0]] |
| 1038 |
testouterr_cmd bash {unload --force foo/1.0} $ans_modfile_depun_super_sticky_force $ts_unload_depun_super_sticky |
| 1039 |
|
| 1040 |
|
| 1041 |
# dependent module to unload is sticky, dependency declared with module load |
| 1042 |
setenv_var TESTSUITE_ABORT_ON_ERROR load_depun_sticky |
| 1043 |
setenv_var __MODULES_LMTAG foo/1.0&auto-loaded:err/1.0&sticky |
| 1044 |
|
| 1045 |
testouterr_cmd bash {unload foo/1.0} ERR $ts_unload_depun_sticky |
| 1046 |
|
| 1047 |
set ts_unload_depun_sticky_noauto [msg_unload {foo/1.0 <aL>} [err_prerequn err/1.0]] |
| 1048 |
testouterr_cmd bash {unload --no-auto foo/1.0} ERR $ts_unload_depun_sticky_noauto |
| 1049 |
|
| 1050 |
testouterr_cmd bash {unload --force foo/1.0} $ans_modfile_depun_sticky_force $ts_unload_depun_sticky_force |
| 1051 |
|
| 1052 |
set ts_unload_depun_sticky_noauto_force [msg_unload {foo/1.0 <aL>} [err_deplof err/1.0]] |
| 1053 |
testouterr_cmd bash {unload --no-auto --force foo/1.0} $ans_modfile_depun_sticky_noauto_force $ts_unload_depun_sticky_noauto_force |
| 1054 |
|
| 1055 |
# dependent module to unload is super-sticky, dependency declared with module load |
| 1056 |
setenv_var TESTSUITE_ABORT_ON_ERROR load_depun_super-sticky |
| 1057 |
setenv_var __MODULES_LMTAG foo/1.0&auto-loaded:err/1.0&super-sticky |
| 1058 |
|
| 1059 |
testouterr_cmd bash {unload --force foo/1.0} $ans_modfile_depun_super_sticky_force $ts_unload_depun_super_sticky |
| 1060 |
|
| 1061 |
testouterr_cmd bash {unload --no-auto --force foo/1.0} $ans_modfile_depun_super_sticky_noauto_force $ts_unload_depun_sticky_noauto_force |
| 1062 |
|
| 1063 |
unsetenv_loaded_module |
| 1064 |
unsetenv_var __MODULES_LMPREREQ |
| 1065 |
unsetenv_var __MODULES_LMTAG |
| 1066 |
|
| 1067 |
|
| 1068 |
# |
| 1069 |
# useless requirement unload mechanism with sticky modules |
| 1070 |
# |
| 1071 |
|
| 1072 |
setenv_loaded_module [list err/1.0 lerr/1.0] [list $mp/err/1.0 $mp/lerr/1.0] |
| 1073 |
setenv_var __MODULES_LMPREREQ lerr/1.0&err/1.0 |
| 1074 |
setenv_var __MODULES_LMTAG err/1.0&auto-loaded&sticky |
| 1075 |
|
| 1076 |
# useless requirement module to unload is sticky, dependency declared with prereq |
| 1077 |
setenv_var TESTSUITE_ABORT_ON_ERROR urequn_sticky |
| 1078 |
|
| 1079 |
set ts_unload_urequn_sticky {} |
| 1080 |
testouterr_cmd bash {unload lerr/1.0} $ans_modfile_urequn_sticky $ts_unload_urequn_sticky |
| 1081 |
|
| 1082 |
set ts_unload_urequn_sticky_force [msg_unload {err/1.0 <aL:S>} $err_stickyunloadf] |
| 1083 |
append ts_unload_urequn_sticky_force \n\n[msg_top_unload {lerr/1.0} {} {err/1.0} {}] |
| 1084 |
testouterr_cmd bash {unload --force lerr/1.0} $ans_modfile_urequn_sticky_force $ts_unload_urequn_sticky_force |
| 1085 |
|
| 1086 |
# useless requirement module to unload is super-sticky, dependency declared with prereq |
| 1087 |
setenv_var TESTSUITE_ABORT_ON_ERROR urequn_super-sticky |
| 1088 |
setenv_var __MODULES_LMTAG err/1.0&auto-loaded&super-sticky |
| 1089 |
|
| 1090 |
set ts_unload_urequn_super_sticky {} |
| 1091 |
testouterr_cmd bash {unload --force lerr/1.0} $ans_modfile_urequn_super_sticky_force $ts_unload_urequn_super_sticky |
| 1092 |
|
| 1093 |
|
| 1094 |
# useless requirement module to unload is sticky, dependency declared with module load |
| 1095 |
setenv_var TESTSUITE_ABORT_ON_ERROR load_urequn_sticky |
| 1096 |
setenv_var __MODULES_LMTAG err/1.0&auto-loaded&sticky |
| 1097 |
|
| 1098 |
testouterr_cmd bash {unload lerr/1.0} $ans_modfile_urequn_sticky $ts_unload_urequn_sticky |
| 1099 |
|
| 1100 |
testouterr_cmd bash {unload --no-auto lerr/1.0} $ans_modfile_urequn_sticky_noauto $ts_unload_urequn_sticky |
| 1101 |
|
| 1102 |
testouterr_cmd bash {unload --force lerr/1.0} $ans_modfile_urequn_sticky_force $ts_unload_urequn_sticky_force |
| 1103 |
|
| 1104 |
testouterr_cmd bash {unload --no-auto --force lerr/1.0} $ans_modfile_urequn_sticky_force $ts_unload_urequn_sticky_force |
| 1105 |
|
| 1106 |
# useless requirement module to unload is super-sticky, dependency declared with module load |
| 1107 |
setenv_var TESTSUITE_ABORT_ON_ERROR load_urequn_super-sticky |
| 1108 |
setenv_var __MODULES_LMTAG err/1.0&auto-loaded&super-sticky |
| 1109 |
|
| 1110 |
testouterr_cmd bash {unload --force lerr/1.0} $ans_modfile_urequn_super_sticky_force $ts_unload_urequn_super_sticky |
| 1111 |
|
| 1112 |
testouterr_cmd bash {unload --no-auto --force lerr/1.0} $ans_modfile_urequn_super_sticky_noauto_force $ts_unload_urequn_super_sticky |
| 1113 |
|
| 1114 |
unsetenv_loaded_module |
| 1115 |
unsetenv_var __MODULES_LMPREREQ |
| 1116 |
unsetenv_var __MODULES_LMTAG |
| 1117 |
|
| 1118 |
|
| 1119 |
# |
| 1120 |
# dependent reload mechanism (not top modulefile) |
| 1121 |
# |
| 1122 |
|
| 1123 |
# dependent reload module breaks on unload and load (optional requirement) |
| 1124 |
setenv_var TESTSUITE_ABORT_ON_ERROR unload_opt_depre_break |
| 1125 |
|
| 1126 |
setenv_loaded_module [list foo/1.0 err/1.0] [list $mp/foo/1.0 $mp/err/1.0] |
| 1127 |
setenv_var __MODULES_LMPREREQ err/1.0&err/1.0|foo |
| 1128 |
|
| 1129 |
if {[is_conf_enabled conflictunload]} { |
| 1130 |
set ts_load_opt_depre_break [msg_unload err/1.0 $err_evalabort] |
| 1131 |
append ts_load_opt_depre_break \n\n[msg_unload foo/1.0 [err_depun err/1.0]] |
| 1132 |
append ts_load_opt_depre_break \n\n[msg_load lerr/1.0 [err_conun foo/1.0]] |
| 1133 |
append ts_load_opt_depre_break \n\n[msg_load llerr/1.0 [err_reqlo lerr/1.0]] |
| 1134 |
testouterr_cmd bash {load llerr/1.0} ERR $ts_load_opt_depre_break |
| 1135 |
set ts_load_opt_depre_break_force [msg_unload err/1.0 $warn_evalabort] |
| 1136 |
append ts_load_opt_depre_break_force \n\n[msg_load err/1.0 $err_evalabort] |
| 1137 |
append ts_load_opt_depre_break_force \n\n[msg_top_load llerr/1.0 foo/1.0 lerr/1.0 {err/1.0 {}} [err_depref err/1.0]] |
| 1138 |
testouterr_cmd bash {load --force llerr/1.0} $ans_sub_modfile_opt_depre_break_force_conun $ts_load_opt_depre_break_force |
| 1139 |
} else { |
| 1140 |
#FIXME: optional dependency err/1.0 should be reloaded when foo/1.0 is unloaded |
| 1141 |
set ts_load_opt_depre_break [msg_top_load llerr/1.0 {foo/1.0} {lerr/1.0} {}] |
| 1142 |
testouterr_cmd bash {load llerr/1.0} $ans_sub_modfile_opt_depre_break $ts_load_opt_depre_break |
| 1143 |
testouterr_cmd bash {load --force llerr/1.0} $ans_sub_modfile_opt_depre_break $ts_load_opt_depre_break |
| 1144 |
} |
| 1145 |
|
| 1146 |
|
| 1147 |
# dependent reload module breaks on unload and load (conflict) |
| 1148 |
setenv_var TESTSUITE_ABORT_ON_ERROR unload_conflict_depre_break |
| 1149 |
unsetenv_var __MODULES_LMPREREQ |
| 1150 |
setenv_var __MODULES_LMCONFLICT err/1.0&foo |
| 1151 |
|
| 1152 |
if {[is_conf_enabled conflictunload]} { |
| 1153 |
set ts_load_conflict_depre_break $ts_load_opt_depre_break |
| 1154 |
testouterr_cmd bash {load llerr/1.0} ERR $ts_load_conflict_depre_break |
| 1155 |
set ts_load_conflict_depre_break_force_conun $ts_load_opt_depre_break_force |
| 1156 |
testouterr_cmd bash {load --force llerr/1.0} $ans_sub_modfile_conflict_depre_break_force_conun $ts_load_conflict_depre_break_force_conun |
| 1157 |
} else { |
| 1158 |
#FIXME: freshly non-conflicting err/1.0 should be reloaded when conflicting foo/1.0 is unloaded |
| 1159 |
set ts_load_conflict_depre_break [msg_top_load llerr/1.0 {foo/1.0} {lerr/1.0} {}] |
| 1160 |
testouterr_cmd bash {load llerr/1.0} $ans_sub_modfile_conflict_depre_break $ts_load_conflict_depre_break |
| 1161 |
testouterr_cmd bash {load --force llerr/1.0} $ans_sub_modfile_conflict_depre_break $ts_load_conflict_depre_break |
| 1162 |
} |
| 1163 |
|
| 1164 |
|
| 1165 |
# dependent reload module breaks on load (conflict) |
| 1166 |
setenv_var TESTSUITE_ABORT_ON_ERROR unload_conflict_depre_load_break |
| 1167 |
|
| 1168 |
if {[is_conf_enabled conflictunload]} { |
| 1169 |
set ts_load_conflict_depre_break [msg_load err/1.0 $err_evalabort] |
| 1170 |
append ts_load_conflict_depre_break \n\n[msg_load llerr/1.0 [err_depre err/1.0]] |
| 1171 |
testouterr_cmd bash {load llerr/1.0} ERR $ts_load_conflict_depre_break |
| 1172 |
set ts_load_conflict_depre_break_force_conun [msg_load err/1.0 $err_evalabort] |
| 1173 |
append ts_load_conflict_depre_break_force_conun \n\n[msg_top_load llerr/1.0 foo/1.0 lerr/1.0 {err/1.0 {}} [err_depref err/1.0]] |
| 1174 |
testouterr_cmd bash {load --force llerr/1.0} $ans_sub_modfile_conflict_depre_break_force_conun $ts_load_conflict_depre_break_force_conun |
| 1175 |
} else { |
| 1176 |
testouterr_cmd bash {load llerr/1.0} $ans_sub_modfile_conflict_depre_break $ts_load_conflict_depre_break |
| 1177 |
testouterr_cmd bash {load --force llerr/1.0} $ans_sub_modfile_conflict_depre_break $ts_load_conflict_depre_break |
| 1178 |
} |
| 1179 |
|
| 1180 |
|
| 1181 |
# dependent reload module breaks on unload and load (conflict, unload of module that "module load") |
| 1182 |
setenv_var TESTSUITE_ABORT_ON_ERROR unload_load_conflict_depre_break |
| 1183 |
setenv_loaded_module [list foo/1.0 err/1.0 lerr/1.0 llerr/1.0] [list $mp/foo/1.0 $mp/err/1.0 $mp/lerr/1.0 $mp/llerr/1.0] [list foo/1.0 lerr/1.0] |
| 1184 |
setenv_var __MODULES_LMPREREQ lerr/1.0&foo/1.0:llerr/1.0&lerr/1.0 |
| 1185 |
setenv_var __MODULES_LMCONFLICT err/1.0&foo |
| 1186 |
|
| 1187 |
set ts_unload_load_conflict_depre_break [msg_unload err/1.0 $err_evalabort] |
| 1188 |
append ts_unload_load_conflict_depre_break \n\n[msg_unload llerr/1.0 [err_depun err/1.0]] |
| 1189 |
testouterr_cmd bash {unload llerr/1.0} ERR $ts_unload_load_conflict_depre_break |
| 1190 |
|
| 1191 |
set ts_load_unload_conflict_depre_break_force [msg_unload err/1.0 $warn_evalabort] |
| 1192 |
append ts_load_unload_conflict_depre_break_force \n\n[msg_load err/1.0 $err_evalabort] |
| 1193 |
append ts_load_unload_conflict_depre_break_force \n\n[msg_top_unload llerr/1.0 {} {lerr/1.0 foo/1.0} {{err/1.0} {}} [err_depref err/1.0]] |
| 1194 |
testouterr_cmd bash {unload --force llerr/1.0} $ans_modfile_unload_conflict_depre_break_force $ts_load_unload_conflict_depre_break_force |
| 1195 |
|
| 1196 |
|
| 1197 |
# dependent reload module breaks on load (unload of module that "module load") |
| 1198 |
setenv_var TESTSUITE_ABORT_ON_ERROR unload_load_conflict_depre_load_break |
| 1199 |
|
| 1200 |
set ts_unload_load_conflict_depre_load_break [msg_load err/1.0 $err_evalabort] |
| 1201 |
append ts_unload_load_conflict_depre_load_break \n\n[msg_unload llerr/1.0 [err_depre err/1.0]] |
| 1202 |
testouterr_cmd bash {unload llerr/1.0} ERR $ts_unload_load_conflict_depre_load_break |
| 1203 |
|
| 1204 |
set ts_load_unload_conflict_depre_load_break_force [msg_load err/1.0 $err_evalabort] |
| 1205 |
append ts_load_unload_conflict_depre_load_break_force \n\n[msg_top_unload llerr/1.0 {} {lerr/1.0 foo/1.0} {{err/1.0} {}} [err_depref err/1.0]] |
| 1206 |
testouterr_cmd bash {unload --force llerr/1.0} $ans_modfile_unload_conflict_depre_break_force $ts_load_unload_conflict_depre_load_break_force |
| 1207 |
|
| 1208 |
unsetenv_loaded_module |
| 1209 |
unsetenv_var __MODULES_LMPREREQ |
| 1210 |
unsetenv_var __MODULES_LMCONFLICT |
| 1211 |
|
| 1212 |
|
| 1213 |
# |
| 1214 |
# dependent unload mechanism with sticky modules (not top modulefile) |
| 1215 |
# |
| 1216 |
|
| 1217 |
setenv_loaded_module [list llerr/1.0 foo/1.0 err/1.0] [list $mp/llerr/1.0 $mp/foo/1.0 $mp/err/1.0] |
| 1218 |
setenv_var __MODULES_LMPREREQ foo/1.0&llerr/1.0:err/1.0&foo/1.0 |
| 1219 |
setenv_var __MODULES_LMTAG llerr/1.0&auto-loaded:foo/1.0&auto-loaded:err/1.0&sticky |
| 1220 |
|
| 1221 |
# dependent module to unload is sticky, dependency declared with prereq |
| 1222 |
setenv_var TESTSUITE_ABORT_ON_ERROR depun_sticky |
| 1223 |
|
| 1224 |
set ts_sub_unload_depun_sticky [msg_unload {err/1.0 <S>} $err_stickyunload] |
| 1225 |
append ts_sub_unload_depun_sticky \n\n[msg_unload {llerr/1.0 <aL>} [err_depun err/1.0]] |
| 1226 |
testouterr_cmd bash {unload llerr/1.0} ERR $ts_sub_unload_depun_sticky |
| 1227 |
|
| 1228 |
set ts_sub_unload_depun_sticky_force [msg_unload {err/1.0 <S>} $err_stickyunloadf] |
| 1229 |
append ts_sub_unload_depun_sticky_force \n\n[msg_top_unload {llerr/1.0 <aL>} {err/1.0 foo/1.0} {} {}] |
| 1230 |
testouterr_cmd bash {unload --force llerr/1.0} $ans_modfile_depun_sticky_force $ts_sub_unload_depun_sticky_force |
| 1231 |
|
| 1232 |
# dependent module to unload is super-sticky, dependency declared with prereq |
| 1233 |
setenv_var TESTSUITE_ABORT_ON_ERROR depun_super-sticky |
| 1234 |
setenv_var __MODULES_LMTAG llerr/1.0&auto-loaded:foo/1.0&auto-loaded:err/1.0&super-sticky |
| 1235 |
|
| 1236 |
set ts_sub_unload_depun_super_sticky [msg_unload {err/1.0 <sS>} $err_superstickyunload] |
| 1237 |
append ts_sub_unload_depun_super_sticky \n\n[msg_unload {foo/1.0 <aL>} [err_deplof err/1.0]] |
| 1238 |
append ts_sub_unload_depun_super_sticky \n\n[msg_top_unload {llerr/1.0 <aL>} {foo/1.0} {} {} [err_depunf err/1.0]] |
| 1239 |
testouterr_cmd bash {unload --force llerr/1.0} $ans_sub_modfile_depun_super_sticky_force $ts_sub_unload_depun_super_sticky |
| 1240 |
|
| 1241 |
|
| 1242 |
# dependent module to unload is sticky, dependency declared with module load |
| 1243 |
setenv_var TESTSUITE_ABORT_ON_ERROR load_depun_sticky |
| 1244 |
setenv_var __MODULES_LMTAG llerr/1.0&auto-loaded:foo/1.0&auto-loaded:err/1.0&sticky |
| 1245 |
|
| 1246 |
testouterr_cmd bash {unload llerr/1.0} ERR $ts_sub_unload_depun_sticky |
| 1247 |
|
| 1248 |
set ts_sub_unload_depun_sticky_noauto [msg_unload {llerr/1.0 <aL>} [err_prerequn foo/1.0]] |
| 1249 |
testouterr_cmd bash {unload --no-auto llerr/1.0} ERR $ts_sub_unload_depun_sticky_noauto |
| 1250 |
|
| 1251 |
testouterr_cmd bash {unload --force llerr/1.0} $ans_modfile_depun_sticky_force $ts_sub_unload_depun_sticky_force |
| 1252 |
|
| 1253 |
set ts_sub_unload_depun_sticky_noauto_force [msg_unload {llerr/1.0 <aL>} [err_deplof foo/1.0]] |
| 1254 |
testouterr_cmd bash {unload --no-auto --force llerr/1.0} $ans_sub_modfile_depun_sticky_noauto_force $ts_sub_unload_depun_sticky_noauto_force |
| 1255 |
|
| 1256 |
|
| 1257 |
# dependent module to unload is super-sticky, dependency declared with module load |
| 1258 |
setenv_var TESTSUITE_ABORT_ON_ERROR load_depun_super-sticky |
| 1259 |
setenv_var __MODULES_LMTAG llerr/1.0&auto-loaded:foo/1.0&auto-loaded:err/1.0&super-sticky |
| 1260 |
|
| 1261 |
testouterr_cmd bash {unload --force llerr/1.0} $ans_sub_modfile_depun_super_sticky_force $ts_sub_unload_depun_super_sticky |
| 1262 |
|
| 1263 |
testouterr_cmd bash {unload --no-auto --force llerr/1.0} $ans_sub_modfile_depun_super_sticky_noauto_force $ts_sub_unload_depun_sticky_noauto_force |
| 1264 |
|
| 1265 |
unsetenv_loaded_module |
| 1266 |
unsetenv_var __MODULES_LMPREREQ |
| 1267 |
unsetenv_var __MODULES_LMTAG |
| 1268 |
|
| 1269 |
|
| 1270 |
# |
| 1271 |
# useless requirement unload mechanism with sticky modules (not top modulefile) |
| 1272 |
# |
| 1273 |
|
| 1274 |
setenv_loaded_module [list err/1.0 lerr/1.0 llerr/1.0] [list $mp/err/1.0 $mp/lerr/1.0 $mp/llerr/1.0] |
| 1275 |
setenv_var __MODULES_LMPREREQ lerr/1.0&err/1.0:llerr/1.0&lerr/1.0 |
| 1276 |
setenv_var __MODULES_LMTAG err/1.0&auto-loaded&sticky:lerr/1.0&auto-loaded |
| 1277 |
|
| 1278 |
# useless requirement module to unload is sticky, dependency declared with prereq |
| 1279 |
setenv_var TESTSUITE_ABORT_ON_ERROR urequn_sticky |
| 1280 |
|
| 1281 |
set ts_sub_unload_urequn_sticky [msg_top_unload {llerr/1.0} {} {lerr/1.0} {}] |
| 1282 |
testouterr_cmd bash {unload llerr/1.0} $ans_sub_modfile_urequn_sticky $ts_sub_unload_urequn_sticky |
| 1283 |
|
| 1284 |
set ts_sub_unload_urequn_sticky_force [msg_unload {err/1.0 <aL:S>} $err_stickyunloadf] |
| 1285 |
append ts_sub_unload_urequn_sticky_force \n\n[msg_top_unload {llerr/1.0} {} {lerr/1.0 err/1.0} {}] |
| 1286 |
testouterr_cmd bash {unload --force llerr/1.0} $ans_sub_modfile_urequn_sticky_force $ts_sub_unload_urequn_sticky_force |
| 1287 |
|
| 1288 |
# useless requirement module to unload is super-sticky, dependency declared with prereq |
| 1289 |
setenv_var TESTSUITE_ABORT_ON_ERROR urequn_super-sticky |
| 1290 |
setenv_var __MODULES_LMTAG err/1.0&auto-loaded&super-sticky:lerr/1.0&auto-loaded |
| 1291 |
|
| 1292 |
set ts_sub_unload_urequn_super_sticky [msg_top_unload {llerr/1.0} {} {lerr/1.0} {}] |
| 1293 |
testouterr_cmd bash {unload --force llerr/1.0} $ans_sub_modfile_urequn_super_sticky_force $ts_sub_unload_urequn_super_sticky |
| 1294 |
|
| 1295 |
|
| 1296 |
# useless requirement module to unload is sticky, dependency declared with module load |
| 1297 |
setenv_var TESTSUITE_ABORT_ON_ERROR load_urequn_sticky |
| 1298 |
setenv_var __MODULES_LMTAG err/1.0&auto-loaded&sticky:lerr/1.0&auto-loaded |
| 1299 |
|
| 1300 |
testouterr_cmd bash {unload llerr/1.0} $ans_sub_modfile_urequn_sticky $ts_sub_unload_urequn_sticky |
| 1301 |
|
| 1302 |
testouterr_cmd bash {unload --no-auto llerr/1.0} $ans_sub_modfile_urequn_sticky_noauto $ts_sub_unload_urequn_sticky |
| 1303 |
|
| 1304 |
testouterr_cmd bash {unload --force llerr/1.0} $ans_sub_modfile_urequn_sticky_force $ts_sub_unload_urequn_sticky_force |
| 1305 |
|
| 1306 |
testouterr_cmd bash {unload --no-auto --force llerr/1.0} $ans_sub_modfile_urequn_sticky_force $ts_sub_unload_urequn_sticky_force |
| 1307 |
|
| 1308 |
# useless requirement module to unload is super-sticky, dependency declared with module load |
| 1309 |
setenv_var TESTSUITE_ABORT_ON_ERROR load_urequn_super-sticky |
| 1310 |
setenv_var __MODULES_LMTAG err/1.0&auto-loaded&super-sticky:lerr/1.0&auto-loaded |
| 1311 |
|
| 1312 |
testouterr_cmd bash {unload --force llerr/1.0} $ans_sub_modfile_urequn_super_sticky_force $ts_sub_unload_urequn_super_sticky |
| 1313 |
|
| 1314 |
testouterr_cmd bash {unload --no-auto --force llerr/1.0} $ans_sub_modfile_urequn_super_sticky_noauto_force $ts_sub_unload_urequn_super_sticky |
| 1315 |
|
| 1316 |
unsetenv_loaded_module |
| 1317 |
unsetenv_var __MODULES_LMPREREQ |
| 1318 |
unsetenv_var __MODULES_LMTAG |
| 1319 |
|
| 1320 |
|
| 1321 |
# |
| 1322 |
# Cleanup |
| 1323 |
# |
| 1324 |
|
| 1325 |
reset_test_env |