Debian Codegraph @

testsuite/modules.60-initx/030-switch.exp

raw
1 ##############################################################################
2 # Modules Revision 3.0
3 # Providing a flexible user environment
4 #
5 # File: modules.60-initx/%M%
6 # Revision: %I%
7 # First Edition: 2005/12/22
8 # Last Mod.: %U%, %G%
9 #
10 # Authors: R.K. Owen, [email protected]
11 #
12 # Description: Testuite testsequence
13 # Command: initadd, initrm
14 # Modulefiles:
15 # Sub-Command:
16 #
17 # Comment: %C{
18 # Check the initadd sub-commands
19 # }C%
20 #
21 ##############################################################################
22
23 skip_if_quick_mode
24
25 # different behavior than C-version: on Tcl-version no message is printed
26 testouterr_cmd sh "initswitch poo/2.0 poo/1.0" "OK" ""
27 _test_modules csh "initswitch" "$modload null foo bar poo/1.0 foobar\n$line2"
28
29 testouterr_cmd ksh "initswit foo food" "OK" ""
30 _test_modules ksh "initswitch" "$modload null food bar poo/1.0 foobar\n$line2"
31
32 testouterr_cmd csh "initsw bar bar/2.0" "OK" ""
33 _test_modules csh "initswitch" "$modload null food bar/2.0 poo/1.0 foobar\n$line2"
34
35
36 # test on fully empty init file
37 file copy -force "$env(HOME)/.modules.savenull" "$env(HOME)/.modules"
38
39 testouterr_cmd sh "initswitch foo food" "ERR" "$find_msg_sh"
40 _test_modules sh "initswitch" "#"
41