| 1 |
#%Module |
| 2 |
if {[info exists env(TESTSUITE_VIA)]} { |
| 3 |
switch -- $env(TESTSUITE_VIA) { |
| 4 |
modulepath_label1 { |
| 5 |
modulepath-label . {My label spider2} |
| 6 |
} |
| 7 |
virtual1 { |
| 8 |
module-virtual modvi/1 ./modb/1 |
| 9 |
} |
| 10 |
} |
| 11 |
} |
| 12 |
if {[info exists env(TESTSUITE_REQUIRE_VIA)]} { |
| 13 |
switch -- $env(TESTSUITE_REQUIRE_VIA) { |
| 14 |
virtual_before_and_after { |
| 15 |
module-virtual othervirt/1 ./othervib/1 |
| 16 |
module-virtual othervirt/2 ./othervib/2 |
| 17 |
} |
| 18 |
virtual_before_not_after { |
| 19 |
if {![is-used $env(TESTSUITEDIR)/modulefiles.other2]} { |
| 20 |
module-virtual othervirt/1 ./othervib/1 |
| 21 |
module-virtual othervirt/2 ./othervib/2 |
| 22 |
} |
| 23 |
} |
| 24 |
} |
| 25 |
} |