blob: e16edefb15e4afa6c10603d7a991705d8f4831c8 [file] [log] [blame]
Nico Huberc0b52db2022-12-15 12:42:32 +00001ANITA_TAGS := \
Nico Huberb50d73d2023-03-01 17:25:12 +00002 anita\:9.3-amd64 anita\:9.3-i386 anita\:9.3-sparc64 \
Nico Huberc0b52db2022-12-15 12:42:32 +00003 anita\:8.2-amd64 anita\:8.2-i386 \
4 anita\:7.1-amd64 anita\:7.1-i386 \
5
6MULTIARCH_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 Huber59848a92023-03-04 00:41:18 +000037ALMALINUX_TAGS := \
38 $(foreach a,amd64 arm64v8 ppc64le s390x, \
39 $(foreach v,8 9, \
40 $(a)/almalinux\:$(v)))
41
Nico Huberf137f442023-03-03 17:12:14 +000042OFFICIAL_TAGS := \
Nico Huber2044af02023-03-04 00:40:47 +000043 $(foreach a,ppc64le s390x arm64v8 amd64, \
44 $(foreach v,37 36 35, \
45 $(a)/fedora\:$(v))) \
Nico Huber494561a2023-03-03 17:12:32 +000046 $(foreach a,ppc64le mips64le s390x arm64v8 arm32v7 arm32v5 amd64 i386, \
47 $(foreach v,bookworm, \
48 $(a)/debian\:$(v))) \
Nico Huberf137f442023-03-03 17:12:14 +000049 $(foreach a,ppc64le s390x arm64v8 arm32v7 arm32v6 amd64 i386, \
50 $(foreach v,3.17 3.16 3.15, \
51 $(a)/alpine\:$(v))) \
Nico Huber59848a92023-03-04 00:41:18 +000052 $(ALMALINUX_TAGS)
Nico Huberf137f442023-03-03 17:12:14 +000053
Nico Huberc0b52db2022-12-15 12:42:32 +000054OTHER_TAGS := djgpp\:6.1.0
55
Nico Huber05f0f7c2023-03-03 17:08:16 +000056ALL_TAGS := $(ANITA_TAGS) $(MULTIARCH_TAGS) $(OFFICIAL_TAGS) $(OTHER_TAGS)
Nico Huberc0b52db2022-12-15 12:42:32 +000057
58BROKEN_TAGS := anita\:7.1-amd64 anita\:7.1-i386 \
59 centos\:7.6-armhfp-clean \
Nico Huber2044af02023-03-04 00:40:47 +000060 arm64v8/fedora\:35 fedora\:30-s390x fedora\:28-armhfp \
Nico Huberc0b52db2022-12-15 12:42:32 +000061
62WORKING_TAGS := $(filter-out $(BROKEN_TAGS),$(ALL_TAGS))
63
64arch_filter = $(sort \
65 $(foreach arch,$(1), \
Nico Huber05f0f7c2023-03-03 17:08:16 +000066 $(filter-out $(subst $(arch),,$(MULTIARCH_TAGS) $(OFFICIAL_TAGS)), \
67 $(MULTIARCH_TAGS) $(OFFICIAL_TAGS))))
Nico Huberc0b52db2022-12-15 12:42:32 +000068
69machine_map = \
70 $(if $(filter i386 i686 x86,$(1)),i386 x86, \
71 $(if $(filter x86_64,$(1)),amd64 i386 x86, \
72 $(if $(filter armv7l armv6l,$(1)),armhf, \
73 $(if $(filter aarch64,$(1)),aarch64 arm64, \
74 $(if $(filter ppc64le,$(1)),ppc64le ppc64el, \
75 $(if $(filter ppc,$(1)),powerpc, \
76 $(if $(filter mips,$(1)),mips mipsel, \
77 $(1))))))))
78
79NATIVE_TAGS := $(call arch_filter,$(call machine_map,$(shell uname -m)))
80
81# rather arbitrary selection of images that seem to work (focus on amd64)
82DEFAULT_TAGS := \
Nico Huberb50d73d2023-03-01 17:25:12 +000083 anita\:9.3-amd64 \
84 anita\:9.3-i386 \
Nico Huberc0b52db2022-12-15 12:42:32 +000085 anita\:8.2-amd64 \
Nico Hubere49c2202022-12-11 17:31:39 +000086 anita\:8.2-i386 \
Nico Huberc0b52db2022-12-15 12:42:32 +000087 djgpp\:6.1.0 \
88 fedora\:30-aarch64 \
Nico Hubere49c2202022-12-11 17:31:39 +000089 fedora\:30-x86_64 \
90 fedora\:31-x86_64 \
91 fedora\:32-aarch64 \
92 fedora\:32-x86_64 \
93 fedora\:33-ppc64le \
94 fedora\:33-x86_64 \
95 fedora\:34-aarch64 \
96 fedora\:34-ppc64le \
97 fedora\:34-s390x \
98 fedora\:34-x86_64 \
99 centos\:7.6-amd64-clean \
Nico Huberc0b52db2022-12-15 12:42:32 +0000100 debian-debootstrap\:amd64-stretch \
Nico Hubere49c2202022-12-11 17:31:39 +0000101 debian-debootstrap\:arm64-stretch \
102 debian-debootstrap\:armhf-stretch \
Nico Huberc0b52db2022-12-15 12:42:32 +0000103 debian-debootstrap\:i386-stretch \
Nico Hubere49c2202022-12-11 17:31:39 +0000104 debian-debootstrap\:mipsel-stretch \
105 debian-debootstrap\:amd64-buster \
106 debian-debootstrap\:arm64-buster \
107 debian-debootstrap\:armhf-buster \
108 debian-debootstrap\:i386-buster \
109 debian-debootstrap\:mips-buster \
110 debian-debootstrap\:mipsel-buster \
111 debian-debootstrap\:ppc64el-buster \
112 debian-debootstrap\:amd64-bullseye \
113 debian-debootstrap\:armhf-bullseye \
114 debian-debootstrap\:i386-bullseye \
115 debian-debootstrap\:mipsel-bullseye \
116 debian-debootstrap\:ppc64el-bullseye \
Nico Huberc0b52db2022-12-15 12:42:32 +0000117 ubuntu-debootstrap\:amd64-bionic \
Nico Hubere49c2202022-12-11 17:31:39 +0000118 ubuntu-debootstrap\:arm64-bionic \
119 ubuntu-debootstrap\:i386-bionic \
120 ubuntu-debootstrap\:amd64-focal \
121 ubuntu-debootstrap\:arm64-focal \
122 ubuntu-debootstrap\:armhf-focal \
123 ubuntu-debootstrap\:ppc64el-focal \
124 ubuntu-debootstrap\:amd64-jammy \
125 ubuntu-debootstrap\:arm64-jammy \
126 ubuntu-debootstrap\:armhf-jammy \
127 ubuntu-debootstrap\:ppc64el-jammy \
Nico Huberc0b52db2022-12-15 12:42:32 +0000128 alpine\:aarch64-v3.9 \
Nico Hubere49c2202022-12-11 17:31:39 +0000129 alpine\:amd64-v3.9 \
130 alpine\:i386-v3.9 \
131 alpine\:aarch64-v3.10 \
132 alpine\:amd64-v3.10 \
133 alpine\:armhf-v3.10 \
134 alpine\:i386-v3.10 \
135 alpine\:aarch64-v3.10 \
136 alpine\:amd64-v3.10 \
137 alpine\:armhf-v3.10 \
138 alpine\:i386-v3.10 \
139 alpine\:aarch64-v3.12 \
140 alpine\:amd64-v3.12 \
141 alpine\:i386-v3.12 \
142 alpine\:amd64-v3.14 \
143 alpine\:i386-v3.14 \
Nico Huberc0b52db2022-12-15 12:42:32 +0000144
145# also run all native tests by default
146DEFAULT_TAGS += $(filter-out $(DEFAULT_TAGS),$(NATIVE_TAGS))
147
148# original 1.0.x tags
14910X_TAGS := \
150 anita\:7.1-amd64 \
151 anita\:7.1-i386 \
152 djgpp\:6.1.0 \
153 alpine\:amd64-v3.6 \
154 alpine\:amd64-v3.7 \
155 alpine\:i386-v3.6 \
156 alpine\:i386-v3.7 \
157 centos\:7.2-amd64-clean \
158 centos\:7.3-aarch64-clean \
159 centos\:7.3-amd64-clean \
160 debian-debootstrap\:amd64-sid \
161 debian-debootstrap\:amd64-stretch \
162 debian-debootstrap\:armhf-stretch \
163 debian-debootstrap\:i386-sid \
164 debian-debootstrap\:i386-stretch \
165 debian-debootstrap\:mips-stretch \
166 debian-debootstrap\:mipsel-stretch \
167 debian-debootstrap\:powerpc-sid \
168 debian-debootstrap\:ppc64el-stretch \
169 fedora\:24-x86_64 \
170 fedora\:25-aarch64 \
171 fedora\:25-ppc64le \
172 fedora\:25-x86_64 \
173 ubuntu-debootstrap\:amd64-xenial \
174 ubuntu-debootstrap\:amd64-zesty \
175 ubuntu-debootstrap\:arm64-xenial \
176 ubuntu-debootstrap\:i386-xenial \
177 ubuntu-debootstrap\:i386-zesty \
178
179# additional tags added after initial release
18010X_TAGS += \
181 alpine\:aarch64-v3.8 \
182 alpine\:armhf-v3.8 \
183 alpine\:amd64-v3.8 \
184 alpine\:i386-v3.8 \
185 debian-debootstrap\:amd64-buster \
186 debian-debootstrap\:arm64-buster \
187 debian-debootstrap\:i386-buster \
188 ubuntu-debootstrap\:amd64-bionic \
189 ubuntu-debootstrap\:arm64-bionic \
190 ubuntu-debootstrap\:i386-bionic \
191
192# can only run what is still maintained
19310X_TAGS := $(filter $(10X_TAGS),$(ALL_TAGS))
194
195# original 1.1.x tags
19611X_TAGS := \
197 anita\:7.1-amd64 \
198 djgpp\:6.1.0 \
199 fedora\:30-x86_64 \
200 fedora\:30-aarch64 \
201 fedora\:29-x86_64 \
202 fedora\:25-x86_64 \
203 fedora\:25-ppc64le \
204 fedora\:25-aarch64 \
205 fedora\:24-x86_64 \
206 centos\:7.6-amd64-clean \
207 centos\:7.3-aarch64-clean \
208 centos\:7.3-amd64-clean \
209 centos\:7.2-amd64-clean \
210 debian-debootstrap\:ppc64el-stretch \
211 debian-debootstrap\:armhf-stretch \
212 debian-debootstrap\:mips-stretch \
213 debian-debootstrap\:mipsel-stretch \
214 debian-debootstrap\:amd64-stretch \
215 debian-debootstrap\:i386-stretch \
216 debian-debootstrap\:amd64-sid \
217 ubuntu-debootstrap\:arm64-xenial \
218 ubuntu-debootstrap\:amd64-xenial \
219 ubuntu-debootstrap\:powerpc-xenial \
220 ubuntu-debootstrap\:amd64-bionic \
221 alpine\:aarch64-v3.9 \
222 alpine\:amd64-v3.9 \
223 alpine\:amd64-v3.8 \
224 alpine\:amd64-v3.7 \
225 alpine\:amd64-v3.6 \
226 alpine\:armhf-v3.8 \
227 alpine\:i386-v3.9 \
228 alpine\:i386-v3.8 \
229 alpine\:i386-v3.7 \
230 alpine\:i386-v3.6 \
231 debian-debootstrap\:amd64-buster \
232 debian-debootstrap\:i386-buster \
233 debian-debootstrap\:i386-sid \
234 ubuntu-debootstrap\:armhf-xenial \
235 ubuntu-debootstrap\:i386-bionic \
236 ubuntu-debootstrap\:i386-xenial \
237 ubuntu-debootstrap\:ppc64el-xenial \
238
239# can only run what is still maintained
24011X_TAGS := $(filter $(11X_TAGS),$(ALL_TAGS))
241
Nico Huberf4a1b5d2022-09-27 14:02:36 +0000242# 1.2.x tags -- list was crafted late at the 1.2.1 release
24312X_TAGS := \
244 djgpp\:6.1.0 \
245 fedora\:30-aarch64 \
246 fedora\:30-x86_64 \
247 fedora\:31-x86_64 \
248 fedora\:32-aarch64 \
249 fedora\:32-x86_64 \
250 fedora\:33-ppc64le \
251 fedora\:33-x86_64 \
252 fedora\:34-aarch64 \
253 fedora\:34-ppc64le \
254 fedora\:34-s390x \
255 fedora\:34-x86_64 \
256 centos\:7.6-amd64-clean \
257 debian-debootstrap\:amd64-stretch \
258 debian-debootstrap\:arm64-stretch \
259 debian-debootstrap\:armhf-stretch \
260 debian-debootstrap\:i386-stretch \
261 debian-debootstrap\:mipsel-stretch \
262 debian-debootstrap\:amd64-buster \
263 debian-debootstrap\:arm64-buster \
264 debian-debootstrap\:armhf-buster \
265 debian-debootstrap\:i386-buster \
266 debian-debootstrap\:mips-buster \
267 debian-debootstrap\:mipsel-buster \
268 debian-debootstrap\:ppc64el-buster \
269 debian-debootstrap\:amd64-bullseye \
270 debian-debootstrap\:armhf-bullseye \
271 debian-debootstrap\:i386-bullseye \
272 debian-debootstrap\:mipsel-bullseye \
273 debian-debootstrap\:ppc64el-bullseye \
274 ubuntu-debootstrap\:amd64-bionic \
275 ubuntu-debootstrap\:arm64-bionic \
276 ubuntu-debootstrap\:i386-bionic \
277 ubuntu-debootstrap\:amd64-focal \
278 ubuntu-debootstrap\:arm64-focal \
279 ubuntu-debootstrap\:armhf-focal \
280 ubuntu-debootstrap\:ppc64el-focal \
281 ubuntu-debootstrap\:amd64-jammy \
282 ubuntu-debootstrap\:arm64-jammy \
283 ubuntu-debootstrap\:armhf-jammy \
284 ubuntu-debootstrap\:ppc64el-jammy \
285 alpine\:aarch64-v3.9 \
286 alpine\:amd64-v3.9 \
287 alpine\:i386-v3.9 \
288 alpine\:aarch64-v3.10 \
289 alpine\:amd64-v3.10 \
290 alpine\:armhf-v3.10 \
291 alpine\:i386-v3.10 \
292 alpine\:aarch64-v3.10 \
293 alpine\:amd64-v3.10 \
294 alpine\:armhf-v3.10 \
295 alpine\:i386-v3.10 \
296 alpine\:aarch64-v3.12 \
297 alpine\:amd64-v3.12 \
298 alpine\:i386-v3.12 \
299 alpine\:amd64-v3.14 \
300 alpine\:i386-v3.14 \
301
302# can only run what is still maintained
30312X_TAGS := $(filter $(12X_TAGS),$(ALL_TAGS))
304
Nico Huberc0b52db2022-12-15 12:42:32 +0000305default: $(DEFAULT_TAGS)
306
307native: $(NATIVE_TAGS)
308
309working: $(WORKING_TAGS)
310
311all: $(ALL_TAGS)
312
3131.0.x: export TEST_REVISION=refs/heads/1.0.x
3141.0.x: $(10X_TAGS)
315
3161.1.x: export TEST_REVISION=refs/heads/1.1.x
3171.1.x: $(11X_TAGS)
318
Nico Huberf4a1b5d2022-09-27 14:02:36 +00003191.2.x: export TEST_REVISION=refs/heads/1.2.x
3201.2.x: $(12X_TAGS)
321
Nico Huberc0b52db2022-12-15 12:42:32 +0000322show-default:
323 @printf "%s\n" $(DEFAULT_TAGS)
324
325show-native:
326 @printf "%s\n" $(NATIVE_TAGS)
327
328show-working:
329 @printf "%s\n" $(WORKING_TAGS)
330
331show-all:
332 @printf "%s\n" $(ALL_TAGS)
333
334show-1.0.x:
335 @printf "%s\n" $(10X_TAGS)
336
337show-1.1.x:
338 @printf "%s\n" $(11X_TAGS)
339
Nico Huberf4a1b5d2022-09-27 14:02:36 +0000340show-1.2.x:
341 @printf "%s\n" $(12X_TAGS)
342
343.PHONY: default native all 1.0.x 1.1.x 1.2.x
344.PHONY: show-default show-native show-all show-1.0.x show-1.1.x show-1.2.x
Nico Huberc0b52db2022-12-15 12:42:32 +0000345.PHONY: $(ALL_TAGS)