File: 2.0

package info (click to toggle)
modules 5.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 23,036 kB
  • sloc: exp: 79,659; sh: 6,142; tcl: 5,900; makefile: 1,492; ansic: 474; python: 265; csh: 202; perl: 47; ruby: 44; lisp: 13
file content (102 lines) | stat: -rw-r--r-- 2,565 bytes parent folder | download | duplicates (3)
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
#%Module1.0

##############################################################################
#   Modules Revision 3.0
#   Providing a flexible user environment
#
#   File:		alias/%M%
#   Revision:		%I%
#   First Edition:	95/12/06
#   Last Mod.:		%U%, %G%
#
#   Authors:		Jens Hamisch, Jens.Hamisch@Strawberry.COM
#
#   Description:	Testuite modulefile
#   Command:
#   Sub-Command:	set-alias, unset-alias, setenv, append-path,
#   Sub-Command:	prepend-path, remove-path, unsetenv, x-resource,
#   Sub-Command:	module-user, module-verbosity, module-trace,
#   Sub-Command:	module-log, system, module, module-alias,
#   Sub-Command:	module-version, module-info mode, module-whatis
#
#   Invocation:		display @M@, help @M@
#   Result:	%R(display){
#			-------------------------------------------------------------------
#			@P@/@M@/@V@:
#
#			set-alias	 al-testsuite ps -auxww | grep modulecmd 
#			unset-alias	 al-testsuite 
#			setenv		 testsuite yes 
#			append-path	 testsuite no 
#			prepend-path	 testsuite maybe 
#			remove-path	 testsuite yes 
#			unsetenv	 testsuite 
#			xrdb -merge	 my-prog*my-ress:true 
#			module-user	 advanced 
#			module-verbosity on 
#			module-log	 trace local7.info 
#			module-trace on
#			system		 ls 
#			module		 load setenv/1.0 
#			module-alias	 foo setenv/1.0
#			module-version	 foo foo bar blah 
#			module-whatis	 Some checks for HELP and DISPLAY 
#			-------------------------------------------------------------------
#		}R%
#
#		%R(help){
#			----------- Module Specific Help for 'help/2.0' -------------------
#
#			Help
#		}R%
#   Comment:	%C{
#			Main purpose of this modulefile is checking if all
#			modulecommands are displayed proper and if none
#			of them are executed in help mode.
#		}C%
#
##############################################################################

#
#  That's what's gonna be tested
#

proc ModulesHelp { } {
    puts stderr Help_out
    puts stderr Help_err
}

#
#  The following should lead to no result in M_HELP mode
#

set-alias	al-testsuite	"ps -auxww | grep modulecmd"
unset-alias	al-testsuite

setenv		testsuite	yes
append-path	testsuite	no
prepend-path	testsuite	maybe
remove-path	testsuite	yes
unsetenv	testsuite

x-resource	my-prog*my-ress:true

module-user			advanced
module-verbosity		on
module-log	trace		local7.info
module-trace		on

system		ls

module		load		setenv/1.0

module-alias	foo		setenv/1.0
module-version	foo		foo bar blah

#
#  Don't corrupt the 'apropos' tests ...
#

if { ![module-info mode whatis] } {
    module-whatis "Some checks for HELP and DISPLAY"
}