| 1 |
#%Module |
| 2 |
if {[info exists env(TESTSUITE_FPMOD_TAG)]} { |
| 3 |
switch -- $env(TESTSUITE_FPMOD_TAG) { |
| 4 |
thisloc1 { |
| 5 |
module-tag foo [file dirname $ModulesCurrentModulefile]/1.0 |
| 6 |
} |
| 7 |
otherloc1 { |
| 8 |
module-tag foo /other/path/to/tag/1.0 |
| 9 |
} |
| 10 |
multi1 { |
| 11 |
module-tag foo [file dirname $ModulesCurrentModulefile]/1.0 |
| 12 |
module-tag bar [file dirname $ModulesCurrentModulefile]/1.0 |
| 13 |
} |
| 14 |
dup1 { |
| 15 |
module-tag foo [file dirname $ModulesCurrentModulefile]/1.0 |
| 16 |
module-tag foo [file dirname $ModulesCurrentModulefile]/1.0 |
| 17 |
} |
| 18 |
mix1 { |
| 19 |
module-tag foo [file dirname $ModulesCurrentModulefile]/1.0 |
| 20 |
module-tag bar tag/1.0 |
| 21 |
} |
| 22 |
mix2dup2 { |
| 23 |
module-tag bar tag/1.0 |
| 24 |
module-tag foo [file dirname $ModulesCurrentModulefile]/1.0 |
| 25 |
module-tag foo tag/1.0 |
| 26 |
} |
| 27 |
restrictedtag1 { |
| 28 |
module-tag forbidden [file dirname $ModulesCurrentModulefile]/1.0 |
| 29 |
} |
| 30 |
rc3 { |
| 31 |
module-tag bar tag/1.0 |
| 32 |
} |
| 33 |
forbid1 { |
| 34 |
module-forbid [file dirname $ModulesCurrentModulefile]/1.0 |
| 35 |
module-virtual tag/1.1 ./1.0 |
| 36 |
} |
| 37 |
forbid2 { |
| 38 |
module-forbid --message my-forbid-msg [file dirname $ModulesCurrentModulefile]/1.0 |
| 39 |
module-virtual tag/1.1 ./1.0 |
| 40 |
} |
| 41 |
forbid3 { |
| 42 |
set tomorrow [clock format [expr {[clock seconds]+86400}] -format %Y-%m-%d] |
| 43 |
module-forbid --nearly-message my-nearly-forbid-msg --after $tomorrow\ |
| 44 |
[file dirname $ModulesCurrentModulefile]/1.0 |
| 45 |
module-virtual tag/1.1 ./1.0 |
| 46 |
} |
| 47 |
forbid4 { |
| 48 |
module-forbid --message my-forbid-msg1 [file dirname $ModulesCurrentModulefile]/1.0 |
| 49 |
module-forbid --message my-forbid-msg2 [file dirname $ModulesCurrentModulefile]/1.0 |
| 50 |
} |
| 51 |
forbid5 { |
| 52 |
module-forbid --message my-forbid-msg1 tag/1.0 |
| 53 |
module-forbid --message my-forbid-msg2 [file dirname $ModulesCurrentModulefile]/1.0 |
| 54 |
} |
| 55 |
forbid6 { |
| 56 |
module-forbid --message my-forbid-msg2 [file dirname $ModulesCurrentModulefile]/1.0 |
| 57 |
module-forbid --message my-forbid-msg1 tag/1.0 |
| 58 |
} |
| 59 |
forbid7 { |
| 60 |
set tomorrow [clock format [expr {[clock seconds]+86400}] -format %Y-%m-%d] |
| 61 |
set aftertomorrow [clock format [expr {[clock seconds]+(86400*2)}] -format %Y-%m-%d] |
| 62 |
module-forbid --nearly-message my-nearly-forbid-msg1 --after $tomorrow\ |
| 63 |
[file dirname $ModulesCurrentModulefile]/1.0 |
| 64 |
module-forbid --nearly-message my-nearly-forbid-msg2 --after $aftertomorrow\ |
| 65 |
[file dirname $ModulesCurrentModulefile]/1.0 |
| 66 |
} |
| 67 |
forbid8 { |
| 68 |
set tomorrow [clock format [expr {[clock seconds]+86400}] -format %Y-%m-%d] |
| 69 |
set aftertomorrow [clock format [expr {[clock seconds]+(86400*2)}] -format %Y-%m-%d] |
| 70 |
module-forbid --nearly-message my-nearly-forbid-msg1 --after $tomorrow\ |
| 71 |
[file dirname $ModulesCurrentModulefile]/1.0 |
| 72 |
module-forbid --nearly-message my-nearly-forbid-msg2 --after $aftertomorrow\ |
| 73 |
tag/1.0 |
| 74 |
} |
| 75 |
forbid9 { |
| 76 |
set tomorrow [clock format [expr {[clock seconds]+86400}] -format %Y-%m-%d] |
| 77 |
set aftertomorrow [clock format [expr {[clock seconds]+(86400*2)}] -format %Y-%m-%d] |
| 78 |
module-forbid --nearly-message my-nearly-forbid-msg2 --after $aftertomorrow\ |
| 79 |
tag/1.0 |
| 80 |
module-forbid --nearly-message my-nearly-forbid-msg1 --after $tomorrow\ |
| 81 |
[file dirname $ModulesCurrentModulefile]/1.0 |
| 82 |
module-virtual tag/1.1 ./1.0 |
| 83 |
} |
| 84 |
forbid10 - forbid11 { |
| 85 |
module-virtual tag/1.1 ./1.0 |
| 86 |
} |
| 87 |
hide1 { |
| 88 |
module-hide --hard [file dirname $ModulesCurrentModulefile]/1.0 |
| 89 |
module-virtual tag/1.1 ./1.0 |
| 90 |
} |
| 91 |
hide2 { |
| 92 |
module-hide --hard [file dirname $ModulesCurrentModulefile]/1.1 |
| 93 |
module-virtual tag/1.1 ./1.0 |
| 94 |
} |
| 95 |
hide3 { |
| 96 |
module-hide --hidden-loaded [file dirname $ModulesCurrentModulefile]/1.0 |
| 97 |
module-virtual tag/1.1 ./1.0 |
| 98 |
} |
| 99 |
hide4 { |
| 100 |
module-version ./1.0 1.1.sym |
| 101 |
module-alias tag/1.1.al tag/1.0 |
| 102 |
module-hide --hard [file dirname $ModulesCurrentModulefile]/1.0 |
| 103 |
} |
| 104 |
hide5 { |
| 105 |
module-version ./1.0 1.1.sym |
| 106 |
module-alias tag/1.1.al tag/1.0 |
| 107 |
module-hide --hard [file dirname $ModulesCurrentModulefile]/1.1.sym |
| 108 |
module-hide --hard [file dirname $ModulesCurrentModulefile]/1.1.al |
| 109 |
} |
| 110 |
hide6 { |
| 111 |
module-version ./1.2.sub default |
| 112 |
module-hide --hard [file dirname $ModulesCurrentModulefile]/1.2.sub |
| 113 |
} |
| 114 |
hide7 { |
| 115 |
module-hide [file dirname $ModulesCurrentModulefile]/1.0 |
| 116 |
module-hide --hard tag/1.0 |
| 117 |
} |
| 118 |
hide8 { |
| 119 |
module-hide --hard [file dirname $ModulesCurrentModulefile]/1.0 |
| 120 |
module-hide tag/1.0 |
| 121 |
} |
| 122 |
hide9 { |
| 123 |
module-hide --hard tag/1.0 |
| 124 |
module-hide --hard [file dirname $ModulesCurrentModulefile]/1.0 |
| 125 |
} |
| 126 |
hide10 { |
| 127 |
module-hide --hidden-loaded [file dirname $ModulesCurrentModulefile]/1.0 |
| 128 |
module-hide [file dirname $ModulesCurrentModulefile]/1.0 |
| 129 |
} |
| 130 |
hide11 { |
| 131 |
module-hide --hidden-loaded tag/1.0 |
| 132 |
module-hide [file dirname $ModulesCurrentModulefile]/1.0 |
| 133 |
} |
| 134 |
hide12 { |
| 135 |
module-hide tag/1.0 |
| 136 |
module-hide --hidden-loaded [file dirname $ModulesCurrentModulefile]/1.0 |
| 137 |
} |
| 138 |
hide13 { |
| 139 |
module-hide --soft --hidden-loaded [file dirname $ModulesCurrentModulefile]/1.0 |
| 140 |
} |
| 141 |
info1 { |
| 142 |
module-tag foo [file dirname $ModulesCurrentModulefile]/1.0 |
| 143 |
module-tag bar [file dirname $ModulesCurrentModulefile]/1.0 |
| 144 |
} |
| 145 |
sticky1 { |
| 146 |
module-tag sticky [file dirname $ModulesCurrentModulefile]/1.0 |
| 147 |
module-virtual tag/1.1 ./1.0 |
| 148 |
} |
| 149 |
sticky2 { |
| 150 |
module-tag super-sticky [file dirname $ModulesCurrentModulefile]/1.0 |
| 151 |
module-virtual tag/1.1 ./1.0 |
| 152 |
} |
| 153 |
sticky3 { |
| 154 |
module-tag sticky [file dirname $ModulesCurrentModulefile] |
| 155 |
module-virtual tag/1.1 ./1.0 |
| 156 |
} |
| 157 |
sticky4 { |
| 158 |
module-tag super-sticky [file dirname $ModulesCurrentModulefile] |
| 159 |
module-virtual tag/1.1 ./1.0 |
| 160 |
} |
| 161 |
} |
| 162 |
} |