Nico Huber | c0b52db | 2022-12-15 12:42:32 +0000 | [diff] [blame] | 1 | ANITA_TAGS := \ |
Nico Huber | b50d73d | 2023-03-01 17:25:12 +0000 | [diff] [blame] | 2 | anita\:9.3-amd64 anita\:9.3-i386 anita\:9.3-sparc64 \ |
Nico Huber | c0b52db | 2022-12-15 12:42:32 +0000 | [diff] [blame] | 3 | anita\:8.2-amd64 anita\:8.2-i386 \ |
| 4 | anita\:7.1-amd64 anita\:7.1-i386 \ |
| 5 | |
| 6 | MULTIARCH_TAGS := \ |
| 7 | centos\:7.6-armhfp-clean centos\:7.6-amd64-clean \ |
| 8 | centos\:7.3-aarch64-clean centos\:7.3-amd64-clean \ |
| 9 | centos\:7.2-amd64-clean \ |
| 10 | $(foreach a,x86_64 aarch64, \ |
| 11 | $(foreach v,34 33 32 31 30 29 25 24, \ |
| 12 | fedora\:$(v)-$(a))) \ |
| 13 | $(foreach a,ppc64le, \ |
| 14 | $(foreach v,34 33 29 25 24, \ |
| 15 | fedora\:$(v)-$(a))) \ |
| 16 | $(foreach a,s390x, \ |
| 17 | $(foreach v,34 33 32 31 30 29, \ |
| 18 | fedora\:$(v)-$(a))) \ |
| 19 | fedora\:28-armhfp \ |
| 20 | $(foreach a,ppc64el armhf mipsel amd64 i386, \ |
| 21 | $(foreach v,bullseye buster stretch, \ |
| 22 | debian-debootstrap\:$(a)-$(v))) \ |
| 23 | $(foreach a,arm64 mips, \ |
| 24 | $(foreach v,buster stretch, \ |
| 25 | debian-debootstrap\:$(a)-$(v))) \ |
| 26 | $(foreach a,ppc64el arm64 armhf amd64, \ |
| 27 | $(foreach v,jammy focal bionic xenial, \ |
| 28 | ubuntu-debootstrap\:$(a)-$(v))) \ |
| 29 | $(foreach a,i386, \ |
| 30 | $(foreach v,bionic xenial, \ |
| 31 | ubuntu-debootstrap\:$(a)-$(v))) \ |
| 32 | ubuntu-debootstrap\:powerpc-xenial \ |
| 33 | $(foreach a,aarch64 armhf amd64 i386, \ |
| 34 | $(foreach v,v3.14 v3.13 v3.12 v3.11 v3.10 v3.9 v3.8 v3.7 v3.6, \ |
| 35 | alpine\:$(a)-$(v))) \ |
| 36 | |
Nico Huber | f137f44 | 2023-03-03 17:12:14 +0000 | [diff] [blame^] | 37 | OFFICIAL_TAGS := \ |
| 38 | $(foreach a,ppc64le s390x arm64v8 arm32v7 arm32v6 amd64 i386, \ |
| 39 | $(foreach v,3.17 3.16 3.15, \ |
| 40 | $(a)/alpine\:$(v))) \ |
| 41 | |
Nico Huber | c0b52db | 2022-12-15 12:42:32 +0000 | [diff] [blame] | 42 | OTHER_TAGS := djgpp\:6.1.0 |
| 43 | |
Nico Huber | 05f0f7c | 2023-03-03 17:08:16 +0000 | [diff] [blame] | 44 | ALL_TAGS := $(ANITA_TAGS) $(MULTIARCH_TAGS) $(OFFICIAL_TAGS) $(OTHER_TAGS) |
Nico Huber | c0b52db | 2022-12-15 12:42:32 +0000 | [diff] [blame] | 45 | |
| 46 | BROKEN_TAGS := anita\:7.1-amd64 anita\:7.1-i386 \ |
| 47 | centos\:7.6-armhfp-clean \ |
| 48 | fedora\:30-s390x fedora\:28-armhfp \ |
| 49 | |
| 50 | WORKING_TAGS := $(filter-out $(BROKEN_TAGS),$(ALL_TAGS)) |
| 51 | |
| 52 | arch_filter = $(sort \ |
| 53 | $(foreach arch,$(1), \ |
Nico Huber | 05f0f7c | 2023-03-03 17:08:16 +0000 | [diff] [blame] | 54 | $(filter-out $(subst $(arch),,$(MULTIARCH_TAGS) $(OFFICIAL_TAGS)), \ |
| 55 | $(MULTIARCH_TAGS) $(OFFICIAL_TAGS)))) |
Nico Huber | c0b52db | 2022-12-15 12:42:32 +0000 | [diff] [blame] | 56 | |
| 57 | machine_map = \ |
| 58 | $(if $(filter i386 i686 x86,$(1)),i386 x86, \ |
| 59 | $(if $(filter x86_64,$(1)),amd64 i386 x86, \ |
| 60 | $(if $(filter armv7l armv6l,$(1)),armhf, \ |
| 61 | $(if $(filter aarch64,$(1)),aarch64 arm64, \ |
| 62 | $(if $(filter ppc64le,$(1)),ppc64le ppc64el, \ |
| 63 | $(if $(filter ppc,$(1)),powerpc, \ |
| 64 | $(if $(filter mips,$(1)),mips mipsel, \ |
| 65 | $(1)))))))) |
| 66 | |
| 67 | NATIVE_TAGS := $(call arch_filter,$(call machine_map,$(shell uname -m))) |
| 68 | |
| 69 | # rather arbitrary selection of images that seem to work (focus on amd64) |
| 70 | DEFAULT_TAGS := \ |
Nico Huber | b50d73d | 2023-03-01 17:25:12 +0000 | [diff] [blame] | 71 | anita\:9.3-amd64 \ |
| 72 | anita\:9.3-i386 \ |
Nico Huber | c0b52db | 2022-12-15 12:42:32 +0000 | [diff] [blame] | 73 | anita\:8.2-amd64 \ |
Nico Huber | e49c220 | 2022-12-11 17:31:39 +0000 | [diff] [blame] | 74 | anita\:8.2-i386 \ |
Nico Huber | c0b52db | 2022-12-15 12:42:32 +0000 | [diff] [blame] | 75 | djgpp\:6.1.0 \ |
| 76 | fedora\:30-aarch64 \ |
Nico Huber | e49c220 | 2022-12-11 17:31:39 +0000 | [diff] [blame] | 77 | fedora\:30-x86_64 \ |
| 78 | fedora\:31-x86_64 \ |
| 79 | fedora\:32-aarch64 \ |
| 80 | fedora\:32-x86_64 \ |
| 81 | fedora\:33-ppc64le \ |
| 82 | fedora\:33-x86_64 \ |
| 83 | fedora\:34-aarch64 \ |
| 84 | fedora\:34-ppc64le \ |
| 85 | fedora\:34-s390x \ |
| 86 | fedora\:34-x86_64 \ |
| 87 | centos\:7.6-amd64-clean \ |
Nico Huber | c0b52db | 2022-12-15 12:42:32 +0000 | [diff] [blame] | 88 | debian-debootstrap\:amd64-stretch \ |
Nico Huber | e49c220 | 2022-12-11 17:31:39 +0000 | [diff] [blame] | 89 | debian-debootstrap\:arm64-stretch \ |
| 90 | debian-debootstrap\:armhf-stretch \ |
Nico Huber | c0b52db | 2022-12-15 12:42:32 +0000 | [diff] [blame] | 91 | debian-debootstrap\:i386-stretch \ |
Nico Huber | e49c220 | 2022-12-11 17:31:39 +0000 | [diff] [blame] | 92 | debian-debootstrap\:mipsel-stretch \ |
| 93 | debian-debootstrap\:amd64-buster \ |
| 94 | debian-debootstrap\:arm64-buster \ |
| 95 | debian-debootstrap\:armhf-buster \ |
| 96 | debian-debootstrap\:i386-buster \ |
| 97 | debian-debootstrap\:mips-buster \ |
| 98 | debian-debootstrap\:mipsel-buster \ |
| 99 | debian-debootstrap\:ppc64el-buster \ |
| 100 | debian-debootstrap\:amd64-bullseye \ |
| 101 | debian-debootstrap\:armhf-bullseye \ |
| 102 | debian-debootstrap\:i386-bullseye \ |
| 103 | debian-debootstrap\:mipsel-bullseye \ |
| 104 | debian-debootstrap\:ppc64el-bullseye \ |
Nico Huber | c0b52db | 2022-12-15 12:42:32 +0000 | [diff] [blame] | 105 | ubuntu-debootstrap\:amd64-bionic \ |
Nico Huber | e49c220 | 2022-12-11 17:31:39 +0000 | [diff] [blame] | 106 | ubuntu-debootstrap\:arm64-bionic \ |
| 107 | ubuntu-debootstrap\:i386-bionic \ |
| 108 | ubuntu-debootstrap\:amd64-focal \ |
| 109 | ubuntu-debootstrap\:arm64-focal \ |
| 110 | ubuntu-debootstrap\:armhf-focal \ |
| 111 | ubuntu-debootstrap\:ppc64el-focal \ |
| 112 | ubuntu-debootstrap\:amd64-jammy \ |
| 113 | ubuntu-debootstrap\:arm64-jammy \ |
| 114 | ubuntu-debootstrap\:armhf-jammy \ |
| 115 | ubuntu-debootstrap\:ppc64el-jammy \ |
Nico Huber | c0b52db | 2022-12-15 12:42:32 +0000 | [diff] [blame] | 116 | alpine\:aarch64-v3.9 \ |
Nico Huber | e49c220 | 2022-12-11 17:31:39 +0000 | [diff] [blame] | 117 | alpine\:amd64-v3.9 \ |
| 118 | alpine\:i386-v3.9 \ |
| 119 | alpine\:aarch64-v3.10 \ |
| 120 | alpine\:amd64-v3.10 \ |
| 121 | alpine\:armhf-v3.10 \ |
| 122 | alpine\:i386-v3.10 \ |
| 123 | alpine\:aarch64-v3.10 \ |
| 124 | alpine\:amd64-v3.10 \ |
| 125 | alpine\:armhf-v3.10 \ |
| 126 | alpine\:i386-v3.10 \ |
| 127 | alpine\:aarch64-v3.12 \ |
| 128 | alpine\:amd64-v3.12 \ |
| 129 | alpine\:i386-v3.12 \ |
| 130 | alpine\:amd64-v3.14 \ |
| 131 | alpine\:i386-v3.14 \ |
Nico Huber | c0b52db | 2022-12-15 12:42:32 +0000 | [diff] [blame] | 132 | |
| 133 | # also run all native tests by default |
| 134 | DEFAULT_TAGS += $(filter-out $(DEFAULT_TAGS),$(NATIVE_TAGS)) |
| 135 | |
| 136 | # original 1.0.x tags |
| 137 | 10X_TAGS := \ |
| 138 | anita\:7.1-amd64 \ |
| 139 | anita\:7.1-i386 \ |
| 140 | djgpp\:6.1.0 \ |
| 141 | alpine\:amd64-v3.6 \ |
| 142 | alpine\:amd64-v3.7 \ |
| 143 | alpine\:i386-v3.6 \ |
| 144 | alpine\:i386-v3.7 \ |
| 145 | centos\:7.2-amd64-clean \ |
| 146 | centos\:7.3-aarch64-clean \ |
| 147 | centos\:7.3-amd64-clean \ |
| 148 | debian-debootstrap\:amd64-sid \ |
| 149 | debian-debootstrap\:amd64-stretch \ |
| 150 | debian-debootstrap\:armhf-stretch \ |
| 151 | debian-debootstrap\:i386-sid \ |
| 152 | debian-debootstrap\:i386-stretch \ |
| 153 | debian-debootstrap\:mips-stretch \ |
| 154 | debian-debootstrap\:mipsel-stretch \ |
| 155 | debian-debootstrap\:powerpc-sid \ |
| 156 | debian-debootstrap\:ppc64el-stretch \ |
| 157 | fedora\:24-x86_64 \ |
| 158 | fedora\:25-aarch64 \ |
| 159 | fedora\:25-ppc64le \ |
| 160 | fedora\:25-x86_64 \ |
| 161 | ubuntu-debootstrap\:amd64-xenial \ |
| 162 | ubuntu-debootstrap\:amd64-zesty \ |
| 163 | ubuntu-debootstrap\:arm64-xenial \ |
| 164 | ubuntu-debootstrap\:i386-xenial \ |
| 165 | ubuntu-debootstrap\:i386-zesty \ |
| 166 | |
| 167 | # additional tags added after initial release |
| 168 | 10X_TAGS += \ |
| 169 | alpine\:aarch64-v3.8 \ |
| 170 | alpine\:armhf-v3.8 \ |
| 171 | alpine\:amd64-v3.8 \ |
| 172 | alpine\:i386-v3.8 \ |
| 173 | debian-debootstrap\:amd64-buster \ |
| 174 | debian-debootstrap\:arm64-buster \ |
| 175 | debian-debootstrap\:i386-buster \ |
| 176 | ubuntu-debootstrap\:amd64-bionic \ |
| 177 | ubuntu-debootstrap\:arm64-bionic \ |
| 178 | ubuntu-debootstrap\:i386-bionic \ |
| 179 | |
| 180 | # can only run what is still maintained |
| 181 | 10X_TAGS := $(filter $(10X_TAGS),$(ALL_TAGS)) |
| 182 | |
| 183 | # original 1.1.x tags |
| 184 | 11X_TAGS := \ |
| 185 | anita\:7.1-amd64 \ |
| 186 | djgpp\:6.1.0 \ |
| 187 | fedora\:30-x86_64 \ |
| 188 | fedora\:30-aarch64 \ |
| 189 | fedora\:29-x86_64 \ |
| 190 | fedora\:25-x86_64 \ |
| 191 | fedora\:25-ppc64le \ |
| 192 | fedora\:25-aarch64 \ |
| 193 | fedora\:24-x86_64 \ |
| 194 | centos\:7.6-amd64-clean \ |
| 195 | centos\:7.3-aarch64-clean \ |
| 196 | centos\:7.3-amd64-clean \ |
| 197 | centos\:7.2-amd64-clean \ |
| 198 | debian-debootstrap\:ppc64el-stretch \ |
| 199 | debian-debootstrap\:armhf-stretch \ |
| 200 | debian-debootstrap\:mips-stretch \ |
| 201 | debian-debootstrap\:mipsel-stretch \ |
| 202 | debian-debootstrap\:amd64-stretch \ |
| 203 | debian-debootstrap\:i386-stretch \ |
| 204 | debian-debootstrap\:amd64-sid \ |
| 205 | ubuntu-debootstrap\:arm64-xenial \ |
| 206 | ubuntu-debootstrap\:amd64-xenial \ |
| 207 | ubuntu-debootstrap\:powerpc-xenial \ |
| 208 | ubuntu-debootstrap\:amd64-bionic \ |
| 209 | alpine\:aarch64-v3.9 \ |
| 210 | alpine\:amd64-v3.9 \ |
| 211 | alpine\:amd64-v3.8 \ |
| 212 | alpine\:amd64-v3.7 \ |
| 213 | alpine\:amd64-v3.6 \ |
| 214 | alpine\:armhf-v3.8 \ |
| 215 | alpine\:i386-v3.9 \ |
| 216 | alpine\:i386-v3.8 \ |
| 217 | alpine\:i386-v3.7 \ |
| 218 | alpine\:i386-v3.6 \ |
| 219 | debian-debootstrap\:amd64-buster \ |
| 220 | debian-debootstrap\:i386-buster \ |
| 221 | debian-debootstrap\:i386-sid \ |
| 222 | ubuntu-debootstrap\:armhf-xenial \ |
| 223 | ubuntu-debootstrap\:i386-bionic \ |
| 224 | ubuntu-debootstrap\:i386-xenial \ |
| 225 | ubuntu-debootstrap\:ppc64el-xenial \ |
| 226 | |
| 227 | # can only run what is still maintained |
| 228 | 11X_TAGS := $(filter $(11X_TAGS),$(ALL_TAGS)) |
| 229 | |
Nico Huber | f4a1b5d | 2022-09-27 14:02:36 +0000 | [diff] [blame] | 230 | # 1.2.x tags -- list was crafted late at the 1.2.1 release |
| 231 | 12X_TAGS := \ |
| 232 | djgpp\:6.1.0 \ |
| 233 | fedora\:30-aarch64 \ |
| 234 | fedora\:30-x86_64 \ |
| 235 | fedora\:31-x86_64 \ |
| 236 | fedora\:32-aarch64 \ |
| 237 | fedora\:32-x86_64 \ |
| 238 | fedora\:33-ppc64le \ |
| 239 | fedora\:33-x86_64 \ |
| 240 | fedora\:34-aarch64 \ |
| 241 | fedora\:34-ppc64le \ |
| 242 | fedora\:34-s390x \ |
| 243 | fedora\:34-x86_64 \ |
| 244 | centos\:7.6-amd64-clean \ |
| 245 | debian-debootstrap\:amd64-stretch \ |
| 246 | debian-debootstrap\:arm64-stretch \ |
| 247 | debian-debootstrap\:armhf-stretch \ |
| 248 | debian-debootstrap\:i386-stretch \ |
| 249 | debian-debootstrap\:mipsel-stretch \ |
| 250 | debian-debootstrap\:amd64-buster \ |
| 251 | debian-debootstrap\:arm64-buster \ |
| 252 | debian-debootstrap\:armhf-buster \ |
| 253 | debian-debootstrap\:i386-buster \ |
| 254 | debian-debootstrap\:mips-buster \ |
| 255 | debian-debootstrap\:mipsel-buster \ |
| 256 | debian-debootstrap\:ppc64el-buster \ |
| 257 | debian-debootstrap\:amd64-bullseye \ |
| 258 | debian-debootstrap\:armhf-bullseye \ |
| 259 | debian-debootstrap\:i386-bullseye \ |
| 260 | debian-debootstrap\:mipsel-bullseye \ |
| 261 | debian-debootstrap\:ppc64el-bullseye \ |
| 262 | ubuntu-debootstrap\:amd64-bionic \ |
| 263 | ubuntu-debootstrap\:arm64-bionic \ |
| 264 | ubuntu-debootstrap\:i386-bionic \ |
| 265 | ubuntu-debootstrap\:amd64-focal \ |
| 266 | ubuntu-debootstrap\:arm64-focal \ |
| 267 | ubuntu-debootstrap\:armhf-focal \ |
| 268 | ubuntu-debootstrap\:ppc64el-focal \ |
| 269 | ubuntu-debootstrap\:amd64-jammy \ |
| 270 | ubuntu-debootstrap\:arm64-jammy \ |
| 271 | ubuntu-debootstrap\:armhf-jammy \ |
| 272 | ubuntu-debootstrap\:ppc64el-jammy \ |
| 273 | alpine\:aarch64-v3.9 \ |
| 274 | alpine\:amd64-v3.9 \ |
| 275 | alpine\:i386-v3.9 \ |
| 276 | alpine\:aarch64-v3.10 \ |
| 277 | alpine\:amd64-v3.10 \ |
| 278 | alpine\:armhf-v3.10 \ |
| 279 | alpine\:i386-v3.10 \ |
| 280 | alpine\:aarch64-v3.10 \ |
| 281 | alpine\:amd64-v3.10 \ |
| 282 | alpine\:armhf-v3.10 \ |
| 283 | alpine\:i386-v3.10 \ |
| 284 | alpine\:aarch64-v3.12 \ |
| 285 | alpine\:amd64-v3.12 \ |
| 286 | alpine\:i386-v3.12 \ |
| 287 | alpine\:amd64-v3.14 \ |
| 288 | alpine\:i386-v3.14 \ |
| 289 | |
| 290 | # can only run what is still maintained |
| 291 | 12X_TAGS := $(filter $(12X_TAGS),$(ALL_TAGS)) |
| 292 | |
Nico Huber | c0b52db | 2022-12-15 12:42:32 +0000 | [diff] [blame] | 293 | default: $(DEFAULT_TAGS) |
| 294 | |
| 295 | native: $(NATIVE_TAGS) |
| 296 | |
| 297 | working: $(WORKING_TAGS) |
| 298 | |
| 299 | all: $(ALL_TAGS) |
| 300 | |
| 301 | 1.0.x: export TEST_REVISION=refs/heads/1.0.x |
| 302 | 1.0.x: $(10X_TAGS) |
| 303 | |
| 304 | 1.1.x: export TEST_REVISION=refs/heads/1.1.x |
| 305 | 1.1.x: $(11X_TAGS) |
| 306 | |
Nico Huber | f4a1b5d | 2022-09-27 14:02:36 +0000 | [diff] [blame] | 307 | 1.2.x: export TEST_REVISION=refs/heads/1.2.x |
| 308 | 1.2.x: $(12X_TAGS) |
| 309 | |
Nico Huber | c0b52db | 2022-12-15 12:42:32 +0000 | [diff] [blame] | 310 | show-default: |
| 311 | @printf "%s\n" $(DEFAULT_TAGS) |
| 312 | |
| 313 | show-native: |
| 314 | @printf "%s\n" $(NATIVE_TAGS) |
| 315 | |
| 316 | show-working: |
| 317 | @printf "%s\n" $(WORKING_TAGS) |
| 318 | |
| 319 | show-all: |
| 320 | @printf "%s\n" $(ALL_TAGS) |
| 321 | |
| 322 | show-1.0.x: |
| 323 | @printf "%s\n" $(10X_TAGS) |
| 324 | |
| 325 | show-1.1.x: |
| 326 | @printf "%s\n" $(11X_TAGS) |
| 327 | |
Nico Huber | f4a1b5d | 2022-09-27 14:02:36 +0000 | [diff] [blame] | 328 | show-1.2.x: |
| 329 | @printf "%s\n" $(12X_TAGS) |
| 330 | |
| 331 | .PHONY: default native all 1.0.x 1.1.x 1.2.x |
| 332 | .PHONY: show-default show-native show-all show-1.0.x show-1.1.x show-1.2.x |
Nico Huber | c0b52db | 2022-12-15 12:42:32 +0000 | [diff] [blame] | 333 | .PHONY: $(ALL_TAGS) |