| 1 |
#%Module |
| 2 |
|
| 3 |
# issue unknown command if a variable is set to test effect of badly written modulepath rc file |
| 4 |
if {[info exists ::env(TS_BAD_COMMAND_TEST)]} { |
| 5 |
badcommand |
| 6 |
} |
| 7 |
|
| 8 |
# regular definitions |
| 9 |
module-version bar/1 top |
| 10 |
module-alias foo/lat foo/2 |
| 11 |
module-virtual foo/1 foo/.common |
| 12 |
module-alias bar/3 bar/dfl |
| 13 |
|
| 14 |
# definitions pointing to non-existent modulefile |
| 15 |
module-version bar/4 unk |
| 16 |
module-alias unk bar/4 |
| 17 |
module-virtual foo/3 foo/unk |
| 18 |
|
| 19 |
# shorthand version notation test, cannot be used in modulepath rc file |
| 20 |
if {[info exists ::env(TS_BAD_SHORTHAND_VERSION)]} { |
| 21 |
module-version /1 truc |
| 22 |
module-alias /2 foo/2 |
| 23 |
module-virtual /3 foo/.common |
| 24 |
} |