#%Module if {[info exists env(TESTSUITE_EXTRA)]} { switch -- $env(TESTSUITE_EXTRA) { prereqalt2 - prereqalt5 { module-version xtfoo/1.0 1.1 } tag1 { module-tag xtfoo extra/1.0 module-forbid extra/1.0 } tag2 { module-tag xtfoo extra/1.0 } tag3 { module-tag xtfoo extra/1.0 module-hide extra/1.0 } tag4 { module-tag xtfoo [file dirname $ModulesCurrentModulefile]/1.0 } tag7 { module-warn --message {warning text} extra/1.0 } } }