Debian Codegraph @

testsuite/modules.95-version/090-dup-modpath-version.exp

raw
1 ##############################################################################
2 # Modules Revision 3.0
3 # Providing a flexible user environment
4 #
5 # File: modules.95-version/%M%
6 # Revision: %I%
7 # First Edition: 2019/05/15
8 # Last Mod.: %U%, %G%
9 #
10 # Authors: Xavier Delaruelle, [email protected]
11 #
12 # Description: Testuite testsequence
13 # Command: avail
14 # Modulefiles:
15 # Sub-Command:
16 #
17 # Comment: %C{
18 # Check the module 'avail' command when MODULEPATH variable
19 # hold path entries using variable reference that all resolve
20 # to the same directory
21 # }C%
22 #
23 ##############################################################################
24
25 skip_if_quick_mode
26
27 # set MODULEPATH with multiple entries all pointing to the same directory
28 unsetenv_var UNDEFINED
29 setenv_var DEFINED modulefiles
30 setenv_path_var MODULEPATH $modpath:$modpath/\$UNDEFINED:$modpath/../\$DEFINED
31
32 # single entry should be reported
33 testouterr_cmd sh {avail -t help/2.0} OK "$modpath:\nhelp/2.0"
34 testouterr_cmd sh use OK "Search path for module files (in search order):\n $modpath"
35
36
37 #
38 # Cleanup
39 #
40
41 reset_test_env