| 1 |
#%Module |
| 2 |
if {[info exists env(TESTSUITE_REQUIRE_VIA)]} { |
| 3 |
switch -- $env(TESTSUITE_REQUIRE_VIA) { |
| 4 |
multi_mod_in_path_with_req1 - multi_mod_in_path_with_req_some_hidden1 -\ |
| 5 |
multi_mod_in_path_with_req_unk_variant_name - multi_mod_in_path_with_req_unk_variant_val -\ |
| 6 |
prereq_on_via1 - tag_before_not_after - tag_after_not_before - tag_before_and_after -\ |
| 7 |
sticky_before_not_after - sticky_after_not_before - sticky_before_and_after -\ |
| 8 |
sticky_before_no_module_after - super_sticky_before_not_after -\ |
| 9 |
super_sticky_after_not_before - super_sticky_before_and_after -\ |
| 10 |
super_sticky_before_no_module_after { |
| 11 |
prereq othervib/1 |
| 12 |
} |
| 13 |
req_not_anymore_does_not_exist - req_not_anymore_still_exists { |
| 14 |
if {![is-used $env(TESTSUITEDIR)/modulefiles.other2]} { |
| 15 |
prereq othervib/1 |
| 16 |
} |
| 17 |
} |
| 18 |
req_another_not_loaded { |
| 19 |
if {![is-used $env(TESTSUITEDIR)/modulefiles.other2]} { |
| 20 |
prereq othervib/1 |
| 21 |
} else { |
| 22 |
prereq modc/1 |
| 23 |
} |
| 24 |
} |
| 25 |
conflict_in_new2 { |
| 26 |
if {[is-used $env(TESTSUITEDIR)/modulefiles.other2]} { |
| 27 |
conflict othervib |
| 28 |
} |
| 29 |
} |
| 30 |
conflict_not_anymore2 { |
| 31 |
if {![is-used $env(TESTSUITEDIR)/modulefiles.other2]} { |
| 32 |
conflict othervib |
| 33 |
} |
| 34 |
} |
| 35 |
keep_loaded_before_not_after { |
| 36 |
if {![is-used $env(TESTSUITEDIR)/modulefiles.other2]} { |
| 37 |
always-load othervib/1 |
| 38 |
} else { |
| 39 |
prereq othervib/1 |
| 40 |
} |
| 41 |
} |
| 42 |
keep_loaded_after_not_before { |
| 43 |
if {![is-used $env(TESTSUITEDIR)/modulefiles.other2]} { |
| 44 |
prereq othervib/1 |
| 45 |
} else { |
| 46 |
always-load othervib/1 |
| 47 |
} |
| 48 |
} |
| 49 |
keep_loaded_before_and_after { |
| 50 |
always-load othervib/1 |
| 51 |
} |
| 52 |
virtual_before_and_after - virtual_before_not_after { |
| 53 |
prereq othervirt/1 |
| 54 |
} |
| 55 |
} |
| 56 |
} |