Debian Codegraph @

testsuite/modules.50-cmds/087-info-shells-exp.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/shellsexp
15 # Sub-Command:
16 #
17 # Comment: %C{
18 # Tests the 'module-info shell' and the 'module-info
19 # shelltype' module subcommands without own suggestion.
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 module "info/shellsexp"
33 set modulefile "$modpath/$module"
34
35 #
36 # The tests
37 #
38
39 foreach sh $supported_shells {
40 switch -- $sh {
41 {sh} - {bash} - {ksh} - {zsh} {
42 set shtype "sh"
43 }
44 {csh} - {tcsh} {
45 set shtype "csh"
46 }
47 default {
48 set shtype $sh
49 }
50 }
51 set ans [list]
52 lappend ans [list set _LMFILES_ $modulefile]
53 lappend ans [list set LOADEDMODULES $module]
54 lappend ans [list set testsuite "$sh/$shtype"]
55
56 test_cmd "$sh" "load $module" $ans
57 }
58
59
60 #
61 # Cleanup
62 #
63
64 reset_test_env