Debian Codegraph @

testsuite/modules.20-locate/160-glob-path.exp

raw
1 ##############################################################################
2 # Modules Revision 3.0
3 # Providing a flexible user environment
4 #
5 # File: modules.20-locate/%M%
6 # Revision: %I%
7 # First Edition: 2024/04/18
8 # Last Mod.: %U%, %G%
9 #
10 # Authors: Xavier Delaruelle, [email protected]
11 #
12 # Description: Testuite testsequence
13 # Command:
14 # Modulefiles: foo
15 # Sub-Command: avail, savelist, saveshow
16 #
17 # Comment: %C{
18 # Check no glob resolution of directory path occur
19 # }C%
20 #
21 ##############################################################################
22
23 skip_if_quick_mode
24
25
26 #
27 # locate modulefiles
28 #
29
30 set mp "$env(TESTSUITEDIR)/mod*lefiles.4"
31 setenv_path_var MODULEPATH $mp
32
33 testouterr_cmd sh {avail -t foo/1.0} OK {}
34
35
36 #
37 # locate collections
38 #
39
40 setenv_var HOME [file join $ORIG_HOME hom*]
41 set collfile [file join $ORIG_HOME hom* default]
42
43 set tserr [err_coll_notfound $collfile]
44 testouterr_cmd sh "saveshow $collfile" ERR $tserr
45
46 set tserr [msg_no_named_coll]
47 testouterr_cmd sh {savelist -t default} OK $tserr
48
49 setenv_var HOME $ORIG_HOME
50
51
52 #
53 # Cleanup
54 #
55
56 reset_test_env