Debian Codegraph @

testsuite/modules.50-cmds/420-versioncmp.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: 2020/10/04
8 # Last Mod.: %U%, %G%
9 #
10 # Authors: Xavier Delaruelle, [email protected]
11 #
12 # Description: Testuite testsequence
13 # Command:
14 # Modulefiles: versioncmp
15 # Sub-Command: load
16 #
17 # Comment: %C{
18 # Test modulefile command 'versioncmp' during modulefile
19 # and modulerc evaluation.
20 # }C%
21 #
22 ##############################################################################
23
24 set mp $modpath.3
25 set mpre [regsub -all "\(\[.+?\]\)" $mp {\\\1}]
26
27 # setup specific environment
28 setenv_path_var MODULEPATH $mp
29 setenv_var MODULES_ADVANCED_VERSION_SPEC 0
30
31
32 # multiple tests of 'versioncmp' command are shipped in versioncmp/.modulerc
33 # and versioncmp/1.0
34 set ans [list]
35 lappend ans [list set _LMFILES_ $mp/versioncmp/1.0]
36 lappend ans [list set LOADEDMODULES versioncmp/1.0]
37 testouterr_cmd sh {load versioncmp/1.0} $ans {}
38
39
40 #
41 # Cleanup
42 #
43
44 reset_test_env