| 1 |
############################################################################## |
| 2 |
# Modules Revision 3.0 |
| 3 |
# Providing a flexible user environment |
| 4 |
# |
| 5 |
# File: modules.00-init/%M% |
| 6 |
# Revision: %I% |
| 7 |
# First Edition: 95/12/06 |
| 8 |
# Last Mod.: %U%, %G% |
| 9 |
# |
| 10 |
# Authors: Jens Hamisch, [email protected] |
| 11 |
# |
| 12 |
# Description: Testuite testsequence |
| 13 |
# Command: |
| 14 |
# Sub-Command: |
| 15 |
# |
| 16 |
# Comment: %C{ |
| 17 |
# Check valid shell type. |
| 18 |
# |
| 19 |
# This test has to be run at a moment, when *NO* |
| 20 |
# initialization (MODULEPATH !) is done in order to |
| 21 |
# ensure well defined error-answers! |
| 22 |
# }C% |
| 23 |
# |
| 24 |
############################################################################## |
| 25 |
# |
| 26 |
# The following answers are to be expected in this testcase ... |
| 27 |
# |
| 28 |
|
| 29 |
set bad_shell "$error_msgs: Unknown shell type '(\[^ \t\n'\]+)'" |
| 30 |
|
| 31 |
# |
| 32 |
# The tests |
| 33 |
# |
| 34 |
|
| 35 |
if {$verbose} { |
| 36 |
send_user "\tChecking user shells as arg 1 of modulecmd ...\n" |
| 37 |
} |
| 38 |
|
| 39 |
testouterr_cmd_re "ALL" "avail" "ERR" $err_nomodpath |
| 40 |
testall_cmd_re "abc" "avail" "OK" $bad_shell 1 |
| 41 |
|
| 42 |
# |
| 43 |
# Clean up variables used in this test case |
| 44 |
# |
| 45 |
|
| 46 |
unset bad_shell |