Debian Codegraph @

testsuite/modules.50-cmds/081-info-user.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: info/userexp
15 # Sub-Command:
16 #
17 # Comment: %C{
18 # Tests the 'module-info user' module subcommand with
19 # own suggestion.
20 # This command does not change behaviour depending on
21 # the user shell. Tests are made for the bourne shell
22 # here.
23 # }C%
24 #
25 ##############################################################################
26
27 skip_if_quick_mode
28
29 # ensure auto symbolic versions are not set for these tests
30 setenv_var MODULES_ADVANCED_VERSION_SPEC 0
31
32 #
33 # Variables. This test forces a module load command. It will result in the
34 # environment variables "_LMFILES_", "LOADEDMODULES" and "testsuite" to
35 # be set up
36 #
37
38 set module "info/userexp"
39 set modulefile "$modpath/$module"
40
41 #
42 # The _LMFILES_ and the LOADEDMODULES will be affected
43 #
44
45 lappend ans [list set _LMFILES_ $modulefile]
46 lappend ans [list set LOADEDMODULES $module]
47 lappend ans [list set testsuite unknown]
48
49 #
50 # The tests
51 #
52
53 # different behavior than C-version: on Tcl-version userlvl is not handled and
54 # [module-info user "level"] will always return false.
55
56 test_cmd "sh" "load $module" $ans
57
58 #
59 # Cleanup
60 #
61
62 reset_test_env