| 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: 1995/12/06 |
| 8 |
# Last Mod.: %U%, %G% |
| 9 |
# |
| 10 |
# Authors: Jens Hamisch, [email protected] |
| 11 |
# |
| 12 |
# Description: Testuite testsequence |
| 13 |
# Command: load |
| 14 |
# Modulefiles: info/name |
| 15 |
# Sub-Command: |
| 16 |
# |
| 17 |
# Comment: %C{ |
| 18 |
# Tests the 'module-info name' module subcommand for all |
| 19 |
# allowed shell types. |
| 20 |
# }C% |
| 21 |
# |
| 22 |
############################################################################## |
| 23 |
|
| 24 |
# |
| 25 |
# Variables. This test forces a module load command. It will result in the |
| 26 |
# environment variables "_LMFILES_", "LOADEDMODULES" and "testsuite" to |
| 27 |
# be set up |
| 28 |
# |
| 29 |
|
| 30 |
set module "info/name" |
| 31 |
set modulefile "$modpath/$module" |
| 32 |
|
| 33 |
# |
| 34 |
# For the different shells ... |
| 35 |
# |
| 36 |
|
| 37 |
lappend ans [list set _LMFILES_ $modulefile] |
| 38 |
lappend ans [list set LOADEDMODULES $module] |
| 39 |
lappend ans [list set testsuite $module] |
| 40 |
|
| 41 |
# |
| 42 |
# The tests |
| 43 |
# |
| 44 |
|
| 45 |
test_cmd "ALL" "load $module" $ans |
| 46 |
|
| 47 |
# |
| 48 |
# Cleanup |
| 49 |
# |
| 50 |
|
| 51 |
reset_test_env |