Debian Codegraph @

testsuite/modulefiles.3/tryload/2.0

raw
1 #%Module
2 if {[info exists env(TESTSUITE_TRYLOAD)]} {
3 switch -- $env(TESTSUITE_TRYLOAD) {
4 unk1 {
5 module try-load unk/1.0
6 }
7 regular1 {
8 module try-add tryload/1.0
9 }
10 hide1 - forbid1 - break1 - bad1 - subload1 - subload2 {
11 module try-load tryload/1.0
12 }
13 catch1 {
14 catch {module try-add unk/1.0}
15 }
16 catch2 - catch3 - catch4 {
17 catch {module try-add tryload/1.0}
18 }
19 multi1 {
20 module try-load unk/1.0 tryload/1.0
21 }
22 multi2 {
23 module try-load tryload/1.0 foo/1.0
24 }
25 multi3 {
26 module try-load tryload/1.0 foo/1.0
27 if {![is-loaded foo/1.0]} {
28 break
29 }
30 }
31 }
32 }
33
34 setenv TS1 ok