Debian Codegraph @

testsuite/modulefiles.4/.modulerc

raw
1 #%Module
2 if {[info exists env(TESTSUITE_EXTRA)]} {
3 switch -- $env(TESTSUITE_EXTRA) {
4 prereqalt1 - prereqalt4 {
5 module-alias alxtfoo xtfoo/1.0
6 }
7 prereqalt3 {
8 module-alias alxtfoo/1.1 xtfoo/1.0
9 }
10 }
11 }
12 if {[info exists env(TESTSUITE_MODULEPATH_LABEL)]} {
13 switch -- $env(TESTSUITE_MODULEPATH_LABEL) {
14 rel1 {
15 modulepath-label . {My label}
16 }
17 rel2 {
18 modulepath-label ../modulefiles.4 {My label}
19 }
20 rel3 {
21 modulepath-label ../../testsuite/modulefiles.4 {My label}
22 }
23 fqpath1 {
24 modulepath-label $env(TESTSUITEDIR)/modulefiles.4 {My label}
25 }
26 otherpath1 {
27 modulepath-label $env(TESTSUITEDIR)/modulefiles.3 {Other label}
28 }
29 err1 {
30 modulepath-label . My label
31 }
32 empty1 {
33 modulepath-label {} {My label}
34 }
35 long1 {
36 modulepath-label . {very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very long label}
37 }
38 dup1 {
39 modulepath-label . {My label}
40 modulepath-label . {Other label}
41 }
42 dup2 {
43 modulepath-label $env(TESTSUITEDIR)/modulefiles.4 {My label}
44 modulepath-label . {Other label}
45 }
46 dup3 - dup4 - dup5 {
47 modulepath-label $env(TESTSUITEDIR)/modulefiles.4 {Modulepath rc label}
48 }
49 }
50 }
51
52 if {[info exists ::env(TESTSUITE_STICKY)]} {
53 switch -- $::env(TESTSUITE_STICKY) {
54 6 - 7 {
55 module-alias alsticky1 sticky1/2.0
56 }
57 8 {
58 module-tag sticky sticky0
59 }
60 sym1 {
61 module-version sticky1/2.0 sym
62 }
63 }
64 }
65
66 if {[info exists env(TESTSUITE_ABORT_ON_ERROR)]} {
67 switch -- $env(TESTSUITE_ABORT_ON_ERROR) {
68 sticky_forbidden - super-sticky_forbidden {
69 module-forbid setenv/1.0
70 }
71 }
72 }
73
74 if {[info exists env(TESTSUITE_CONFLICT_UNLOAD)]} {
75 switch -- $env(TESTSUITE_CONFLICT_UNLOAD) {
76 dep_alias_variant_loading1 {
77 module-alias allconun lconun/1
78 }
79 multi_alias_conflict1 - multi_alias_unload1 {
80 module-alias alfoo foo/1.0
81 }
82 }
83 }
84
85 if {[info exists env(TESTSUITE_PROVIDE)]} {
86 switch -- $env(TESTSUITE_PROVIDE) {
87 duplicate_with_ext_same_alias {
88 module-alias foo provide/1
89 }
90 duplicate_with_ext_diff_alias {
91 module-alias foo bar/1
92 }
93 duplicate_with_ext_same_alias2 {
94 module-alias quux provide/1
95 }
96 duplicate_with_ext_diff_alias2 {
97 module-alias quux bar/1
98 }
99 }
100 }