Debian Codegraph @

testsuite/modules.20-locate/055-locrcerrs.exp

raw
1 ##############################################################################
2 # Modules Revision 3.0
3 # Providing a flexible user environment
4 #
5 # File: modules.20-locate/%M%
6 # Revision: %I%
7 # First Edition: 95/12/06
8 # Last Mod.: %U%, %G%
9 #
10 # Authors: Jens Hamisch, [email protected]
11 #
12 # Description: Testuite testsequence
13 # Command: load, display
14 # Modulefiles: loc_rc5/2.0
15 # Sub-Command:
16 #
17 # Comment: %C{
18 # Checks the recognition of the error condition forced
19 # by the missing magic cookie in the .modulerc file.
20 # }C%
21 #
22 ##############################################################################
23
24 #
25 # Variables for this test
26 #
27
28 set module_1 "loc_rc5/2.0"
29 set modulefile_1 "$modpathre/$module_1"
30
31 set version "$modpathre/loc_rc5/.modulerc"
32 set err_mag "$err_magic'$version'\n$err_contact"
33
34 set disp_csh "setenv\t\ttestsuite yes"
35 set whatis_csh "module-whatis\t$module_1"
36 set disp_1 [if_implicitdefault "$modlin\n$modulefile_1:\n\n$whatis_csh\n$disp_csh\n$modlin" "$err_nodefault'loc_rc5'"]
37
38 #
39 # The tests
40 #
41
42 testouterr_cmd_re "sh" "display loc_rc5" "ERR" "$err_mag\n$disp_1"
43
44 #
45 # Cleanup
46 #
47
48 reset_test_env