| 1 |
############################################################################## |
| 2 |
# Modules Revision 3.0 |
| 3 |
# Providing a flexible user environment |
| 4 |
# |
| 5 |
# File: modules.10-use/%M% |
| 6 |
# Revision: %I% |
| 7 |
# First Edition: 1995/12/06 |
| 8 |
# Last Mod.: %U%, %G% |
| 9 |
# |
| 10 |
# Authors: Jens Hamisch, [email protected] |
| 11 |
# |
| 12 |
# Description: Testuite testsequence |
| 13 |
# Command: use |
| 14 |
# Sub-Command: |
| 15 |
# |
| 16 |
# Comment: %C{ |
| 17 |
# Check whether the load of use and other modulefile |
| 18 |
# can be combined on the same line. |
| 19 |
# }C% |
| 20 |
# |
| 21 |
############################################################################## |
| 22 |
|
| 23 |
# |
| 24 |
# Variables for this test |
| 25 |
# |
| 26 |
|
| 27 |
set oldpath "$env(TESTSUITEDIR)/modulefiles" |
| 28 |
set newpath "$env(TESTSUITEDIR)/modulefiles.2" |
| 29 |
|
| 30 |
set use "load use 1.1/version" |
| 31 |
|
| 32 |
# |
| 33 |
# The tests ... |
| 34 |
# |
| 35 |
|
| 36 |
if {[is_conf_enabled advversspec implicitdefault]} { |
| 37 |
set autosym :1.1/version&as|1.1/default&as|1.1/latest |
| 38 |
} else { |
| 39 |
set autosym {} |
| 40 |
} |
| 41 |
lappend ans [list set __MODULES_LMUSE "use/1.0&$modpath.2"] |
| 42 |
lappend ans [list set __MODULES_LMALTNAME "use/1.0&use/default&use$autosym"] |
| 43 |
lappend ans [list set TESTSUITE "1.1"] |
| 44 |
lappend ans [list set _LMFILES_ "$oldpath/use/1.0:$newpath/1.1/version"] |
| 45 |
lappend ans [list set LOADEDMODULES "use/1.0:1.1/version"] |
| 46 |
lappend ans [list set MODULEPATH "$newpath:$oldpath"] |
| 47 |
test_cmd_re "ALL" "$use" $ans |
| 48 |
|
| 49 |
# |
| 50 |
# Cleanup |
| 51 |
# |
| 52 |
|
| 53 |
reset_test_env |