blob: eddfcb32f298f58416f31039ae7878b18a5a347d [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 Huberf137f442023-03-03 17:12:14 +000037OFFICIAL_TAGS := \
Nico Huber2044af02023-03-04 00:40:47 +000038 $(foreach a,ppc64le s390x arm64v8 amd64, \
39 $(foreach v,37 36 35, \
40 $(a)/fedora\:$(v))) \
Nico Huber494561a2023-03-03 17:12:32 +000041 $(foreach a,ppc64le mips64le s390x arm64v8 arm32v7 arm32v5 amd64 i386, \
42 $(foreach v,bookworm, \
43 $(a)/debian\:$(v))) \
Nico Huberf137f442023-03-03 17:12:14 +000044 $(foreach a,ppc64le s390x arm64v8 arm32v7 arm32v6 amd64 i386, \
45 $(foreach v,3.17 3.16 3.15, \
46 $(a)/alpine\:$(v))) \
47
Nico Huberc0b52db2022-12-15 12:42:32 +000048OTHER_TAGS := djgpp\:6.1.0
49
Nico Huber05f0f7c2023-03-03 17:08:16 +000050ALL_TAGS := $(ANITA_TAGS) $(MULTIARCH_TAGS) $(OFFICIAL_TAGS) $(OTHER_TAGS)
Nico Huberc0b52db2022-12-15 12:42:32 +000051
52BROKEN_TAGS := anita\:7.1-amd64 anita\:7.1-i386 \
53 centos\:7.6-armhfp-clean \
Nico Huber2044af02023-03-04 00:40:47 +000054 arm64v8/fedora\:35 fedora\:30-s390x fedora\:28-armhfp \
Nico Huberc0b52db2022-12-15 12:42:32 +000055
56WORKING_TAGS := $(filter-out $(BROKEN_TAGS),$(ALL_TAGS))
57
58arch_filter = $(sort \
59 $(foreach arch,$(1), \
Nico Huber05f0f7c2023-03-03 17:08:16 +000060 $(filter-out $(subst $(arch),,$(MULTIARCH_TAGS) $(OFFICIAL_TAGS)), \
61 $(MULTIARCH_TAGS) $(OFFICIAL_TAGS))))
Nico Huberc0b52db2022-12-15 12:42:32 +000062
63machine_map = \
64 $(if $(filter i386 i686 x86,$(1)),i386 x86, \
65 $(if $(filter x86_64,$(1)),amd64 i386 x86, \
66 $(if $(filter armv7l armv6l,$(1)),armhf, \
67 $(if $(filter aarch64,$(1)),aarch64 arm64, \
68 $(if $(filter ppc64le,$(1)),ppc64le ppc64el, \
69 $(if $(filter ppc,$(1)),powerpc, \
70 $(if $(filter mips,$(1)),mips mipsel, \
71 $(1))))))))
72
73NATIVE_TAGS := $(call arch_filter,$(call machine_map,$(shell uname -m)))
74
75# rather arbitrary selection of images that seem to work (focus on amd64)
76DEFAULT_TAGS := \
Nico Huberb50d73d2023-03-01 17:25:12 +000077 anita\:9.3-amd64 \
78 anita\:9.3-i386 \
Nico Huberc0b52db2022-12-15 12:42:32 +000079 anita\:8.2-amd64 \
Nico Hubere49c2202022-12-11 17:31:39 +000080 anita\:8.2-i386 \
Nico Huberc0b52db2022-12-15 12:42:32 +000081 djgpp\:6.1.0 \
82 fedora\:30-aarch64 \
Nico Hubere49c2202022-12-11 17:31:39 +000083 fedora\:30-x86_64 \
84 fedora\:31-x86_64 \
85 fedora\:32-aarch64 \
86 fedora\:32-x86_64 \
87 fedora\:33-ppc64le \
88 fedora\:33-x86_64 \
89 fedora\:34-aarch64 \
90 fedora\:34-ppc64le \
91 fedora\:34-s390x \
92 fedora\:34-x86_64 \
93 centos\:7.6-amd64-clean \
Nico Huberc0b52db2022-12-15 12:42:32 +000094 debian-debootstrap\:amd64-stretch \
Nico Hubere49c2202022-12-11 17:31:39 +000095 debian-debootstrap\:arm64-stretch \
96 debian-debootstrap\:armhf-stretch \
Nico Huberc0b52db2022-12-15 12:42:32 +000097 debian-debootstrap\:i386-stretch \
Nico Hubere49c2202022-12-11 17:31:39 +000098 debian-debootstrap\:mipsel-stretch \
99 debian-debootstrap\:amd64-buster \
100 debian-debootstrap\:arm64-buster \
101 debian-debootstrap\:armhf-buster \
102 debian-debootstrap\:i386-buster \
103 debian-debootstrap\:mips-buster \
104 debian-debootstrap\:mipsel-buster \
105 debian-debootstrap\:ppc64el-buster \
106 debian-debootstrap\:amd64-bullseye \
107 debian-debootstrap\:armhf-bullseye \
108 debian-debootstrap\:i386-bullseye \
109 debian-debootstrap\:mipsel-bullseye \
110 debian-debootstrap\:ppc64el-bullseye \
Nico Huberc0b52db2022-12-15 12:42:32 +0000111 ubuntu-debootstrap\:amd64-bionic \
Nico Hubere49c2202022-12-11 17:31:39 +0000112 ubuntu-debootstrap\:arm64-bionic \
113 ubuntu-debootstrap\:i386-bionic \
114 ubuntu-debootstrap\:amd64-focal \
115 ubuntu-debootstrap\:arm64-focal \
116 ubuntu-debootstrap\:armhf-focal \
117 ubuntu-debootstrap\:ppc64el-focal \
118 ubuntu-debootstrap\:amd64-jammy \
119 ubuntu-debootstrap\:arm64-jammy \
120 ubuntu-debootstrap\:armhf-jammy \
121 ubuntu-debootstrap\:ppc64el-jammy \
Nico Huberc0b52db2022-12-15 12:42:32 +0000122 alpine\:aarch64-v3.9 \
Nico Hubere49c2202022-12-11 17:31:39 +0000123 alpine\:amd64-v3.9 \
124 alpine\:i386-v3.9 \
125 alpine\:aarch64-v3.10 \
126 alpine\:amd64-v3.10 \
127 alpine\:armhf-v3.10 \
128 alpine\:i386-v3.10 \
129 alpine\:aarch64-v3.10 \
130 alpine\:amd64-v3.10 \
131 alpine\:armhf-v3.10 \
132 alpine\:i386-v3.10 \
133 alpine\:aarch64-v3.12 \
134 alpine\:amd64-v3.12 \
135 alpine\:i386-v3.12 \
136 alpine\:amd64-v3.14 \
137 alpine\:i386-v3.14 \
Nico Huberc0b52db2022-12-15 12:42:32 +0000138
139# also run all native tests by default
140DEFAULT_TAGS += $(filter-out $(DEFAULT_TAGS),$(NATIVE_TAGS))
141
142# original 1.0.x tags
14310X_TAGS := \
144 anita\:7.1-amd64 \
145 anita\:7.1-i386 \
146 djgpp\:6.1.0 \
147 alpine\:amd64-v3.6 \
148 alpine\:amd64-v3.7 \
149 alpine\:i386-v3.6 \
150 alpine\:i386-v3.7 \
151 centos\:7.2-amd64-clean \
152 centos\:7.3-aarch64-clean \
153 centos\:7.3-amd64-clean \
154 debian-debootstrap\:amd64-sid \
155 debian-debootstrap\:amd64-stretch \
156 debian-debootstrap\:armhf-stretch \
157 debian-debootstrap\:i386-sid \
158 debian-debootstrap\:i386-stretch \
159 debian-debootstrap\:mips-stretch \
160 debian-debootstrap\:mipsel-stretch \
161 debian-debootstrap\:powerpc-sid \
162 debian-debootstrap\:ppc64el-stretch \
163 fedora\:24-x86_64 \
164 fedora\:25-aarch64 \
165 fedora\:25-ppc64le \
166 fedora\:25-x86_64 \
167 ubuntu-debootstrap\:amd64-xenial \
168 ubuntu-debootstrap\:amd64-zesty \
169 ubuntu-debootstrap\:arm64-xenial \
170 ubuntu-debootstrap\:i386-xenial \
171 ubuntu-debootstrap\:i386-zesty \
172
173# additional tags added after initial release
17410X_TAGS += \
175 alpine\:aarch64-v3.8 \
176 alpine\:armhf-v3.8 \
177 alpine\:amd64-v3.8 \
178 alpine\:i386-v3.8 \
179 debian-debootstrap\:amd64-buster \
180 debian-debootstrap\:arm64-buster \
181 debian-debootstrap\:i386-buster \
182 ubuntu-debootstrap\:amd64-bionic \
183 ubuntu-debootstrap\:arm64-bionic \
184 ubuntu-debootstrap\:i386-bionic \
185
186# can only run what is still maintained
18710X_TAGS := $(filter $(10X_TAGS),$(ALL_TAGS))
188
189# original 1.1.x tags
19011X_TAGS := \
191 anita\:7.1-amd64 \
192 djgpp\:6.1.0 \
193 fedora\:30-x86_64 \
194 fedora\:30-aarch64 \
195 fedora\:29-x86_64 \
196 fedora\:25-x86_64 \
197 fedora\:25-ppc64le \
198 fedora\:25-aarch64 \
199 fedora\:24-x86_64 \
200 centos\:7.6-amd64-clean \
201 centos\:7.3-aarch64-clean \
202 centos\:7.3-amd64-clean \
203 centos\:7.2-amd64-clean \
204 debian-debootstrap\:ppc64el-stretch \
205 debian-debootstrap\:armhf-stretch \
206 debian-debootstrap\:mips-stretch \
207 debian-debootstrap\:mipsel-stretch \
208 debian-debootstrap\:amd64-stretch \
209 debian-debootstrap\:i386-stretch \
210 debian-debootstrap\:amd64-sid \
211 ubuntu-debootstrap\:arm64-xenial \
212 ubuntu-debootstrap\:amd64-xenial \
213 ubuntu-debootstrap\:powerpc-xenial \
214 ubuntu-debootstrap\:amd64-bionic \
215 alpine\:aarch64-v3.9 \
216 alpine\:amd64-v3.9 \
217 alpine\:amd64-v3.8 \
218 alpine\:amd64-v3.7 \
219 alpine\:amd64-v3.6 \
220 alpine\:armhf-v3.8 \
221 alpine\:i386-v3.9 \
222 alpine\:i386-v3.8 \
223 alpine\:i386-v3.7 \
224 alpine\:i386-v3.6 \
225 debian-debootstrap\:amd64-buster \
226 debian-debootstrap\:i386-buster \
227 debian-debootstrap\:i386-sid \
228 ubuntu-debootstrap\:armhf-xenial \
229 ubuntu-debootstrap\:i386-bionic \
230 ubuntu-debootstrap\:i386-xenial \
231 ubuntu-debootstrap\:ppc64el-xenial \
232
233# can only run what is still maintained
23411X_TAGS := $(filter $(11X_TAGS),$(ALL_TAGS))
235
Nico Huberf4a1b5d2022-09-27 14:02:36 +0000236# 1.2.x tags -- list was crafted late at the 1.2.1 release
23712X_TAGS := \
238 djgpp\:6.1.0 \
239 fedora\:30-aarch64 \
240 fedora\:30-x86_64 \
241 fedora\:31-x86_64 \
242 fedora\:32-aarch64 \
243 fedora\:32-x86_64 \
244 fedora\:33-ppc64le \
245 fedora\:33-x86_64 \
246 fedora\:34-aarch64 \
247 fedora\:34-ppc64le \
248 fedora\:34-s390x \
249 fedora\:34-x86_64 \
250 centos\:7.6-amd64-clean \
251 debian-debootstrap\:amd64-stretch \
252 debian-debootstrap\:arm64-stretch \
253 debian-debootstrap\:armhf-stretch \
254 debian-debootstrap\:i386-stretch \
255 debian-debootstrap\:mipsel-stretch \
256 debian-debootstrap\:amd64-buster \
257 debian-debootstrap\:arm64-buster \
258 debian-debootstrap\:armhf-buster \
259 debian-debootstrap\:i386-buster \
260 debian-debootstrap\:mips-buster \
261 debian-debootstrap\:mipsel-buster \
262 debian-debootstrap\:ppc64el-buster \
263 debian-debootstrap\:amd64-bullseye \
264 debian-debootstrap\:armhf-bullseye \
265 debian-debootstrap\:i386-bullseye \
266 debian-debootstrap\:mipsel-bullseye \
267 debian-debootstrap\:ppc64el-bullseye \
268 ubuntu-debootstrap\:amd64-bionic \
269 ubuntu-debootstrap\:arm64-bionic \
270 ubuntu-debootstrap\:i386-bionic \
271 ubuntu-debootstrap\:amd64-focal \
272 ubuntu-debootstrap\:arm64-focal \
273 ubuntu-debootstrap\:armhf-focal \
274 ubuntu-debootstrap\:ppc64el-focal \
275 ubuntu-debootstrap\:amd64-jammy \
276 ubuntu-debootstrap\:arm64-jammy \
277 ubuntu-debootstrap\:armhf-jammy \
278 ubuntu-debootstrap\:ppc64el-jammy \
279 alpine\:aarch64-v3.9 \
280 alpine\:amd64-v3.9 \
281 alpine\:i386-v3.9 \
282 alpine\:aarch64-v3.10 \
283 alpine\:amd64-v3.10 \
284 alpine\:armhf-v3.10 \
285 alpine\:i386-v3.10 \
286 alpine\:aarch64-v3.10 \
287 alpine\:amd64-v3.10 \
288 alpine\:armhf-v3.10 \
289 alpine\:i386-v3.10 \
290 alpine\:aarch64-v3.12 \
291 alpine\:amd64-v3.12 \
292 alpine\:i386-v3.12 \
293 alpine\:amd64-v3.14 \
294 alpine\:i386-v3.14 \
295
296# can only run what is still maintained
29712X_TAGS := $(filter $(12X_TAGS),$(ALL_TAGS))
298
Nico Huberc0b52db2022-12-15 12:42:32 +0000299default: $(DEFAULT_TAGS)
300
301native: $(NATIVE_TAGS)
302
303working: $(WORKING_TAGS)
304
305all: $(ALL_TAGS)
306
3071.0.x: export TEST_REVISION=refs/heads/1.0.x
3081.0.x: $(10X_TAGS)
309
3101.1.x: export TEST_REVISION=refs/heads/1.1.x
3111.1.x: $(11X_TAGS)
312
Nico Huberf4a1b5d2022-09-27 14:02:36 +00003131.2.x: export TEST_REVISION=refs/heads/1.2.x
3141.2.x: $(12X_TAGS)
315
Nico Huberc0b52db2022-12-15 12:42:32 +0000316show-default:
317 @printf "%s\n" $(DEFAULT_TAGS)
318
319show-native:
320 @printf "%s\n" $(NATIVE_TAGS)
321
322show-working:
323 @printf "%s\n" $(WORKING_TAGS)
324
325show-all:
326 @printf "%s\n" $(ALL_TAGS)
327
328show-1.0.x:
329 @printf "%s\n" $(10X_TAGS)
330
331show-1.1.x:
332 @printf "%s\n" $(11X_TAGS)
333
Nico Huberf4a1b5d2022-09-27 14:02:36 +0000334show-1.2.x:
335 @printf "%s\n" $(12X_TAGS)
336
337.PHONY: default native all 1.0.x 1.1.x 1.2.x
338.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 +0000339.PHONY: $(ALL_TAGS)