Debian Codegraph @

testsuite/modules.50-cmds/101-badfac.exp

raw
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: log/badfac
15 # Sub-Command:
16 #
17 # Comment: %C{
18 # Tests the 'log-facility' module command. This
19 # testcase concerns bad log facilities being configured
20 # using the 'log-facility' command.
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 module1 "log/badfac"
34 set modulefile1 "$modpath/$module1"
35 set bad_fac "$warn_msgs: Invalid log facility 'xyz.info'"
36 set err_log "$warn_msgs: 'module-log' command not implemented"
37
38 #
39 # Check only for the csh
40 #
41
42 lappend ans [list set _LMFILES_ $modulefile1]
43 lappend ans [list set LOADEDMODULES $module1]
44
45 #
46 # The tests
47 #
48
49 # different behavior than C-version: on Tcl-version 'module-log' command is
50 # not handled and will always return a warning message to inform the user.
51 testouterr_cmd "csh" "load $module1" $ans [msg_load $module1 $err_log]
52
53 #
54 # Cleanup
55 #
56
57 reset_test_env