Debian Codegraph @

testsuite/modules.50-cmds/075-alias.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: alias/2.0
15 # Sub-Command:
16 #
17 # Comment: %C{
18 # Tests the 'set-alias' module subcommand for all allowed
19 # shell types.
20 # }C%
21 #
22 ##############################################################################
23
24 #
25 # Variables. This test forces a module load command. It will result in the
26 # environment variables "_LMFILES_", "LOADEDMODULES" and "testsuite" to
27 # be set up
28 #
29
30 set module "alias/2.0"
31 set modulefile "$modpath/$module"
32 set alias "ps -auxww | grep modulecmd"
33
34 #
35 # For the different shells ...
36 #
37
38 lappend ans [list set __MODULES_LMREFRESH $module]
39 lappend ans [list set _LMFILES_ $modulefile]
40 lappend ans [list set LOADEDMODULES $module]
41 lappend ans [list alias testsuite $alias]
42
43 #
44 # The tests
45 #
46
47 # only available for csh/sh/fish derivatives ... no longer warn for others
48 test_cmd "ALL" "load $module" $ans
49
50 #
51 # Cleanup
52 #
53
54 reset_test_env