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