Debian Codegraph @

testsuite/modules.50-cmds/038-unsetenv-refcount.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/06/27
8 # Last Mod.: %U%, %G%
9 #
10 # Authors: Xavier Delaruelle, [email protected]
11 #
12 # Description: Testuite testsequence
13 # Command: load
14 # Modulefiles: unsetenv/0.8
15 # Sub-Command:
16 #
17 # Comment: %C{
18 # Tests the 'unsetenv' module subcommand for all allowed
19 # shell types when variable is previously associated to
20 # a reference counter array.
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 module "unsetenv/0.8"
34 set modulefile "$modpath/$module"
35
36 #
37 # Set up the environment for reversal ...
38 #
39
40 set env(testsuite) "'yes'"
41
42 #
43 # For the different shells ...
44 #
45
46 lappend ans [list set _LMFILES_ $modulefile]
47 lappend ans [list set LOADEDMODULES $module]
48 lappend ans [list unset testsuite]
49
50
51 #
52 # The tests
53 #
54
55 test_cmd "ALL" "load $module" $ans
56
57
58 #
59 # Cleanup
60 #
61
62 reset_test_env