Debian Codegraph @

testsuite/modules.91-sort/040-load-sort.exp

raw
1 ##############################################################################
2 # Modules Release Tcl
3 # Providing a flexible user environment
4 #
5 # File: modules.91-sort/%M%
6 # Revision: %I%
7 # First Edition: 2016/02/06
8 # Last Mod.: %U%, %G%
9 #
10 # Authors: Xavier Delaruelle, [email protected]
11 #
12 # Description: Testuite testsequence
13 # Command: load
14 # Modulefiles: verssort/1, verssort/1.2.1, verssort/1.2.4,
15 # verssort/1.8-2015-12-01, verssort/1.8-2016-02-01,
16 # verssort/1.10
17 # Sub-Command:
18 #
19 # Comment: %C{
20 # Check multiple versions of a module are correctly
21 # sorted when loading default version (greatest) of
22 # this module.
23 # }C%
24 #
25 ##############################################################################
26
27 # skip tests if implicit_default option could not be overridden
28 if {[is_config_locked implicit_default]} {
29 send_user "\tskipping tests as implicit_default could not be overridden\n"
30 } else {
31
32 # ensure avail tests have implicit default enabled
33 setenv_var MODULES_IMPLICIT_DEFAULT 1
34
35 #
36 # For the different shells ...
37 #
38
39 if {[is_conf_enabled advversspec]} {
40 lappend ans [list set __MODULES_LMALTNAME $module6&as|verssort/default&as|verssort/latest]
41 }
42 lappend ans [list set _LMFILES_ $modulefile6]
43 lappend ans [list set LOADEDMODULES $module6]
44 lappend ans [list set MODULE_VERSION $version6]
45
46 #
47 # The tests
48 #
49 # load
50
51 test_cmd "ALL" "load $module" $ans
52
53 #
54 # Cleanup
55 #
56
57 reset_test_env
58
59 }