Debian Codegraph @

testsuite/modules.50-cmds/322-is-avail.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/11/28
8 # Last Mod.: %U%, %G%
9 #
10 # Authors: Xavier Delaruelle, [email protected]
11 #
12 # Description: Testuite testsequence
13 # Command: load
14 # Modulefiles: info/isavail
15 # Sub-Command:
16 #
17 # Comment: %C{
18 # Tests the 'is-avail' modulefile subcommand for all
19 # allowed shell types.
20 # }C%
21 #
22 ##############################################################################
23
24 set module "info/isavail"
25 set modulefile "$modpath/$module"
26
27 #
28 # The tests
29 #
30
31 lappend ans [list set testsuite6 1]
32 lappend ans [list set testsuite2 0]
33 lappend ans [list set testsuite3 0]
34 lappend ans [list set _LMFILES_ $modulefile]
35 lappend ans [list set LOADEDMODULES $module]
36 lappend ans [list set testsuite4 1]
37 lappend ans [list set testsuite5 [if_implicitdefault 1 0]]
38 lappend ans [list set testsuite1 0]
39
40 testouterr_cmd "ALL" "load $module" $ans ""
41
42 #
43 # Cleanup
44 #
45
46 reset_test_env