Debian Codegraph @

testsuite/modules.50-cmds/690-module-help.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: 2025/03/30
8 # Last Mod.: %U%, %G%
9 #
10 # Authors: Xavier Delaruelle, [email protected]
11 #
12 # Description: Testuite testsequence
13 # Command: help, load, display
14 # Modulefiles: help
15 # Sub-Command:
16 #
17 # Comment: %C{
18 # Test module-help command
19 # }C%
20 #
21 ##############################################################################
22
23 set mp $modpath.4
24 setenv_var MODULEPATH $mp
25
26
27 setenv_var TESTSUITE_HELP one_string
28 set tserr "$modlin
29 Module Specific Help for $modpathre.4/help/1:
30
31 multi word string
32 $modlin"
33 testouterr_cmd_re bash {help help/1} OK $tserr
34
35 setenv_var TESTSUITE_HELP multi_arg
36 testouterr_cmd_re bash {help help/1} OK $tserr
37
38 setenv_var TESTSUITE_HELP multi_cmd1
39 set tserr "$modlin
40 Module Specific Help for $modpathre.4/help/1:
41
42 one help line
43 another help line
44 $modlin"
45 testouterr_cmd_re bash {help help/1} OK $tserr
46
47 skip_if_quick_mode
48
49 setenv_var TESTSUITE_HELP multi_cmd2
50 set tserr "$modlin
51 Module Specific Help for $modpathre.4/help/1:
52
53 one help line
54
55 another help line
56
57 $modlin"
58 testouterr_cmd_re bash {help help/1} OK $tserr
59
60 set tserr "$modlin
61 $modpathre.4/help/1:
62
63 module-help\t{one help line}
64 module-help\t{}
65 module-help\t{another help line}
66 module-help\t{}
67 $modlin"
68 testouterr_cmd_re bash {display help/1} OK $tserr
69
70 setenv_var TESTSUITE_HELP empty_line
71 set tserr "$modlin
72 Module Specific Help for $modpathre.4/help/1:
73
74
75 $modlin"
76 testouterr_cmd_re bash {help help/1} OK $tserr
77
78 setenv_var TESTSUITE_HELP multi_empty_line
79 set tserr "$modlin
80 Module Specific Help for $modpathre.4/help/1:
81
82
83
84 $modlin"
85 testouterr_cmd_re bash {help help/1} OK $tserr
86
87 setenv_var TESTSUITE_HELP with_help_proc1
88 set tserr "$modlin
89 Module Specific Help for $modpathre.4/help/1:
90
91 one help line
92 another help line
93 help line from proc
94 $modlin"
95 testouterr_cmd_re bash {help help/1} OK $tserr
96
97 setenv_var TESTSUITE_HELP with_help_proc2
98 testouterr_cmd_re bash {help help/1} OK $tserr
99
100 setenv_var TESTSUITE_HELP get_help_lines1
101 set ans [list]
102 lappend ans [list set _LMFILES_ $mp/help/1]
103 lappend ans [list set LOADEDMODULES help/1]
104 set tserr "
105 "
106 testouterr_cmd_re bash {load help/1} $ans $tserr
107
108 set tserr "$modlin
109 Module Specific Help for $modpathre.4/help/1:
110
111 one help line another help line
112 one help line
113 another help line
114 $modlin"
115 testouterr_cmd_re bash {help help/1} OK $tserr
116
117 setenv_var TESTSUITE_HELP get_help_lines2
118 set tserr "
119 "
120 testouterr_cmd_re bash {load help/1} $ans $tserr
121
122
123 #
124 # Cleanup
125 #
126
127 reset_test_env