Debian Codegraph @

testsuite/modules.50-cmds/089-info-type.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: 2012/12/06
8 # Last Mod.: %U%, %G%
9 #
10 # Authors: R.K. Owen, [email protected]
11 #
12 # Description: Testuite testsequence
13 # Command: load
14 # Modulefiles: info/type
15 # Sub-Command:
16 #
17 # Comment: %C{
18 # Tests the 'info type' module subcommand for all
19 # allowed shell types.
20 # }C%
21 #
22 ##############################################################################
23
24 skip_if_quick_mode
25
26 #
27 # Variables. This test forces a module load command. It will result in the
28 # environment variables "_LMFILES_", "LOADEDMODULES" and "testsuite" to
29 # be set up
30 #
31
32 set modulex "info/type"
33 set modulefilex "$modpath/$modulex"
34
35 #
36 # Test which version of the modulecmd executable
37 #
38
39 #
40 # set up the environment
41 #
42
43 #
44 # For the different shells ...
45 #
46
47 lappend ans [list set _LMFILES_ $modulefilex]
48 lappend ans [list set LOADEDMODULES $modulex]
49 lappend ans [list set testsuite Tcl]
50
51 #
52 # The tests
53 #
54
55 test_cmd "ALL" "load $modulex" $ans
56
57 #
58 # Cleanup
59 #
60
61 reset_test_env