Debian Codegraph @

testsuite/modules.50-cmds/478-variant-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: 2021/05/27
8 # Last Mod.: %U%, %G%
9 #
10 # Authors: Xavier Delaruelle, [email protected]
11 #
12 # Description: Testuite testsequence
13 # Command: load
14 # Modulefiles: variant
15 # Sub-Command:
16 #
17 # Comment: %C{
18 # Test 'version' variant
19 # }C%
20 #
21 ##############################################################################
22
23 skip_if_quick_mode
24
25 set mp $modpath.3
26 set mpre $modpathre.3
27 setenv_path_var MODULEPATH $mp
28
29
30 setenv_var MODULES_ADVANCED_VERSION_SPEC 1
31
32
33 # as version special variant is not yet implemented, an error is obtained when
34 # defining this variant name
35 setenv_var TESTSUITE_VARIANT version1
36
37 set tserr [msg_load variant/6.0{bar=1:foo=val3:version=1.0} "$error_msgs: 'version' is a restricted variant name"]
38 testouterr_cmd sh {load variant/6.0 version=1.0 bar=1 foo=val3} ERR $tserr
39
40
41 #
42 # Cleanup
43 #
44
45 reset_test_env