Debian Codegraph @

testsuite/modules.95-version/020-load-version.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: 2001/06/20
8 # Last Mod.: %U%, %G%
9 #
10 # Authors: R.K. Owen, [email protected]
11 #
12 # Description: Testuite testsequence
13 # Command: load & unload
14 # Modulefiles: versions/1.1, versions/1.2, versions/1.3
15 # Sub-Command:
16 #
17 # Comment: %C{
18 # Tests the module versioning capability.
19 # }C%
20 #
21 ##############################################################################
22
23 if {$verbose} {
24 send_user "\tLoad of first version onto stack...\n"
25 }
26
27 set env(MODULE_VERSION) "$version1"
28 set env(MODULE_VERSION_STACK) "$module_version_stack1"
29
30 #
31 # For the different shells ...
32 #
33
34 lappend ans [list set MODULE_VERSION_STACK $module_version_stack2]
35 lappend ans [list set _LMFILES_ $modulefile2]
36 lappend ans [list set LOADEDMODULES $module2]
37 lappend ans [list set MODULE_VERSION $version2]
38
39 #
40 # The tests
41 #
42 # load
43
44 test_cmd_re "ALL" "load $module2" $ans
45
46 #
47 # Cleanup
48 #
49
50 reset_test_env