| 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: verbose/msg |
| 15 |
# Sub-Command: |
| 16 |
# |
| 17 |
# Comment: %C{ |
| 18 |
# Tests the module verbosity command. This will turn |
| 19 |
# verbosity on and issue a message without parameter |
| 20 |
# and another one with parameters. |
| 21 |
# }C% |
| 22 |
# |
| 23 |
############################################################################## |
| 24 |
|
| 25 |
skip_if_quick_mode |
| 26 |
|
| 27 |
# |
| 28 |
# Variables. This test forces a module load command. It will result in the |
| 29 |
# environment variables "_LMFILES_", "LOADEDMODULES" and "testsuite" to |
| 30 |
# be set up |
| 31 |
# |
| 32 |
|
| 33 |
set module_1 "verbose/msg" |
| 34 |
set modulefile_1 "$modpath/$module_1" |
| 35 |
|
| 36 |
set err_verb "$warn_msgs: 'module-verbosity' command not implemented" |
| 37 |
|
| 38 |
# |
| 39 |
# Only checked for the csh |
| 40 |
# |
| 41 |
|
| 42 |
lappend ans [list set _LMFILES_ $modulefile_1] |
| 43 |
lappend ans [list set LOADEDMODULES $module_1] |
| 44 |
|
| 45 |
# |
| 46 |
# The tests |
| 47 |
# |
| 48 |
|
| 49 |
# different behavior than C-version: on Tcl-version 'module-verbosity' command is |
| 50 |
# not handled and will always return a warning message to inform the user. |
| 51 |
testouterr_cmd "csh" "load $module_1" $ans [msg_load $module_1 $err_verb $err_verb $err_verb] |
| 52 |
|
| 53 |
# |
| 54 |
# Cleanup |
| 55 |
# |
| 56 |
|
| 57 |
reset_test_env |