Debian Codegraph @

testsuite/modules.50-cmds/105-trace.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: 2017/05/22
8 # Last Mod.: %U%, %G%
9 #
10 # Authors: Jens Hamisch, [email protected]
11 #
12 # Description: Testuite testsequence
13 # Command: load
14 # Modulefiles: trace/all_on
15 # Sub-Command:
16 #
17 # Comment: %C{
18 # Tests the 'module-trace' deprecated module command.
19 # }C%
20 #
21 ##############################################################################
22
23 skip_if_quick_mode
24
25 # ensure auto symbolic versions are not set for these tests
26 setenv_var MODULES_ADVANCED_VERSION_SPEC 0
27
28 #
29 # Variables. This test forces a module load command. It will result in the
30 # environment variables "_LMFILES_", "LOADEDMODULES" and "testsuite" to
31 # be set up
32 #
33
34 set module1 "trace/all_on"
35 set modulefile1 "$modpath/$module1"
36
37 #
38 # Check only for the csh
39 #
40
41 set err_log "$warn_msgs: 'module-trace' command not implemented"
42
43 lappend ans [list set _LMFILES_ $modulefile1]
44 lappend ans [list set LOADEDMODULES $module1]
45
46 #
47 # The tests
48 #
49
50 testouterr_cmd "csh" "load $module1" $ans [msg_load $module1 $err_log]
51
52 #
53 # Cleanup
54 #
55
56 reset_test_env