blob: 65749a53089909cde208b87a546a84757e8ca8eb [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 Huber494561a2023-03-03 17:12:32 +000038 $(foreach a,ppc64le mips64le s390x arm64v8 arm32v7 arm32v5 amd64 i386, \
39 $(foreach v,bookworm, \
40 $(a)/debian\:$(v))) \
Nico Huberf137f442023-03-03 17:12:14 +000041 $(foreach a,ppc64le s390x arm64v8 arm32v7 arm32v6 amd64 i386, \
42 $(foreach v,3.17 3.16 3.15, \
43 $(a)/alpine\:$(v))) \
44
Nico Huberc0b52db2022-12-15 12:42:32 +000045OTHER_TAGS := djgpp\:6.1.0
46
Nico Huber05f0f7c2023-03-03 17:08:16 +000047ALL_TAGS := $(ANITA_TAGS) $(MULTIARCH_TAGS) $(OFFICIAL_TAGS) $(OTHER_TAGS)
Nico Huberc0b52db2022-12-15 12:42:32 +000048
49BROKEN_TAGS := anita\:7.1-amd64 anita\:7.1-i386 \
50 centos\:7.6-armhfp-clean \
51 fedora\:30-s390x fedora\:28-armhfp \
52
53WORKING_TAGS := $(filter-out $(BROKEN_TAGS),$(ALL_TAGS))
54
55arch_filter = $(sort \
56 $(foreach arch,$(1), \
Nico Huber05f0f7c2023-03-03 17:08:16 +000057 $(filter-out $(subst $(arch),,$(MULTIARCH_TAGS) $(OFFICIAL_TAGS)), \
58 $(MULTIARCH_TAGS) $(OFFICIAL_TAGS))))
Nico Huberc0b52db2022-12-15 12:42:32 +000059
60machine_map = \
61 $(if $(filter i386 i686 x86,$(1)),i386 x86, \
62 $(if $(filter x86_64,$(1)),amd64 i386 x86, \
63 $(if $(filter armv7l armv6l,$(1)),armhf, \
64 $(if $(filter aarch64,$(1)),aarch64 arm64, \
65 $(if $(filter ppc64le,$(1)),ppc64le ppc64el, \
66 $(if $(filter ppc,$(1)),powerpc, \
67 $(if $(filter mips,$(1)),mips mipsel, \
68 $(1))))))))
69
70NATIVE_TAGS := $(call arch_filter,$(call machine_map,$(shell uname -m)))
71
72# rather arbitrary selection of images that seem to work (focus on amd64)
73DEFAULT_TAGS := \
Nico Huberb50d73d2023-03-01 17:25:12 +000074 anita\:9.3-amd64 \
75 anita\:9.3-i386 \
Nico Huberc0b52db2022-12-15 12:42:32 +000076 anita\:8.2-amd64 \
Nico Hubere49c2202022-12-11 17:31:39 +000077 anita\:8.2-i386 \
Nico Huberc0b52db2022-12-15 12:42:32 +000078 djgpp\:6.1.0 \
79 fedora\:30-aarch64 \
Nico Hubere49c2202022-12-11 17:31:39 +000080 fedora\:30-x86_64 \
81 fedora\:31-x86_64 \
82 fedora\:32-aarch64 \
83 fedora\:32-x86_64 \
84 fedora\:33-ppc64le \
85 fedora\:33-x86_64 \
86 fedora\:34-aarch64 \
87 fedora\:34-ppc64le \
88 fedora\:34-s390x \
89 fedora\:34-x86_64 \
90 centos\:7.6-amd64-clean \
Nico Huberc0b52db2022-12-15 12:42:32 +000091 debian-debootstrap\:amd64-stretch \
Nico Hubere49c2202022-12-11 17:31:39 +000092 debian-debootstrap\:arm64-stretch \
93 debian-debootstrap\:armhf-stretch \
Nico Huberc0b52db2022-12-15 12:42:32 +000094 debian-debootstrap\:i386-stretch \
Nico Hubere49c2202022-12-11 17:31:39 +000095 debian-debootstrap\:mipsel-stretch \
96 debian-debootstrap\:amd64-buster \
97 debian-debootstrap\:arm64-buster \
98 debian-debootstrap\:armhf-buster \
99 debian-debootstrap\:i386-buster \
100 debian-debootstrap\:mips-buster \
101 debian-debootstrap\:mipsel-buster \
102 debian-debootstrap\:ppc64el-buster \
103 debian-debootstrap\:amd64-bullseye \
104 debian-debootstrap\:armhf-bullseye \
105 debian-debootstrap\:i386-bullseye \
106 debian-debootstrap\:mipsel-bullseye \
107 debian-debootstrap\:ppc64el-bullseye \
Nico Huberc0b52db2022-12-15 12:42:32 +0000108 ubuntu-debootstrap\:amd64-bionic \
Nico Hubere49c2202022-12-11 17:31:39 +0000109 ubuntu-debootstrap\:arm64-bionic \
110 ubuntu-debootstrap\:i386-bionic \
111 ubuntu-debootstrap\:amd64-focal \
112 ubuntu-debootstrap\:arm64-focal \
113 ubuntu-debootstrap\:armhf-focal \
114 ubuntu-debootstrap\:ppc64el-focal \
115 ubuntu-debootstrap\:amd64-jammy \
116 ubuntu-debootstrap\:arm64-jammy \
117 ubuntu-debootstrap\:armhf-jammy \
118 ubuntu-debootstrap\:ppc64el-jammy \
Nico Huberc0b52db2022-12-15 12:42:32 +0000119 alpine\:aarch64-v3.9 \
Nico Hubere49c2202022-12-11 17:31:39 +0000120 alpine\:amd64-v3.9 \
121 alpine\:i386-v3.9 \
122 alpine\:aarch64-v3.10 \
123 alpine\:amd64-v3.10 \
124 alpine\:armhf-v3.10 \
125 alpine\:i386-v3.10 \
126 alpine\:aarch64-v3.10 \
127 alpine\:amd64-v3.10 \
128 alpine\:armhf-v3.10 \
129 alpine\:i386-v3.10 \
130 alpine\:aarch64-v3.12 \
131 alpine\:amd64-v3.12 \
132 alpine\:i386-v3.12 \
133 alpine\:amd64-v3.14 \
134 alpine\:i386-v3.14 \
Nico Huberc0b52db2022-12-15 12:42:32 +0000135
136# also run all native tests by default
137DEFAULT_TAGS += $(filter-out $(DEFAULT_TAGS),$(NATIVE_TAGS))
138
139# original 1.0.x tags
14010X_TAGS := \
141 anita\:7.1-amd64 \
142 anita\:7.1-i386 \
143 djgpp\:6.1.0 \
144 alpine\:amd64-v3.6 \
145 alpine\:amd64-v3.7 \
146 alpine\:i386-v3.6 \
147 alpine\:i386-v3.7 \
148 centos\:7.2-amd64-clean \
149 centos\:7.3-aarch64-clean \
150 centos\:7.3-amd64-clean \
151 debian-debootstrap\:amd64-sid \
152 debian-debootstrap\:amd64-stretch \
153 debian-debootstrap\:armhf-stretch \
154 debian-debootstrap\:i386-sid \
155 debian-debootstrap\:i386-stretch \
156 debian-debootstrap\:mips-stretch \
157 debian-debootstrap\:mipsel-stretch \
158 debian-debootstrap\:powerpc-sid \
159 debian-debootstrap\:ppc64el-stretch \
160 fedora\:24-x86_64 \
161 fedora\:25-aarch64 \
162 fedora\:25-ppc64le \
163 fedora\:25-x86_64 \
164 ubuntu-debootstrap\:amd64-xenial \
165 ubuntu-debootstrap\:amd64-zesty \
166 ubuntu-debootstrap\:arm64-xenial \
167 ubuntu-debootstrap\:i386-xenial \
168 ubuntu-debootstrap\:i386-zesty \
169
170# additional tags added after initial release
17110X_TAGS += \
172 alpine\:aarch64-v3.8 \
173 alpine\:armhf-v3.8 \
174 alpine\:amd64-v3.8 \
175 alpine\:i386-v3.8 \
176 debian-debootstrap\:amd64-buster \
177 debian-debootstrap\:arm64-buster \
178 debian-debootstrap\:i386-buster \
179 ubuntu-debootstrap\:amd64-bionic \
180 ubuntu-debootstrap\:arm64-bionic \
181 ubuntu-debootstrap\:i386-bionic \
182
183# can only run what is still maintained
18410X_TAGS := $(filter $(10X_TAGS),$(ALL_TAGS))
185
186# original 1.1.x tags
18711X_TAGS := \
188 anita\:7.1-amd64 \
189 djgpp\:6.1.0 \
190 fedora\:30-x86_64 \
191 fedora\:30-aarch64 \
192 fedora\:29-x86_64 \
193 fedora\:25-x86_64 \
194 fedora\:25-ppc64le \
195 fedora\:25-aarch64 \
196 fedora\:24-x86_64 \
197 centos\:7.6-amd64-clean \
198 centos\:7.3-aarch64-clean \
199 centos\:7.3-amd64-clean \
200 centos\:7.2-amd64-clean \
201 debian-debootstrap\:ppc64el-stretch \
202 debian-debootstrap\:armhf-stretch \
203 debian-debootstrap\:mips-stretch \
204 debian-debootstrap\:mipsel-stretch \
205 debian-debootstrap\:amd64-stretch \
206 debian-debootstrap\:i386-stretch \
207 debian-debootstrap\:amd64-sid \
208 ubuntu-debootstrap\:arm64-xenial \
209 ubuntu-debootstrap\:amd64-xenial \
210 ubuntu-debootstrap\:powerpc-xenial \
211 ubuntu-debootstrap\:amd64-bionic \
212 alpine\:aarch64-v3.9 \
213 alpine\:amd64-v3.9 \
214 alpine\:amd64-v3.8 \
215 alpine\:amd64-v3.7 \
216 alpine\:amd64-v3.6 \
217 alpine\:armhf-v3.8 \
218 alpine\:i386-v3.9 \
219 alpine\:i386-v3.8 \
220 alpine\:i386-v3.7 \
221 alpine\:i386-v3.6 \
222 debian-debootstrap\:amd64-buster \
223 debian-debootstrap\:i386-buster \
224 debian-debootstrap\:i386-sid \
225 ubuntu-debootstrap\:armhf-xenial \
226 ubuntu-debootstrap\:i386-bionic \
227 ubuntu-debootstrap\:i386-xenial \
228 ubuntu-debootstrap\:ppc64el-xenial \
229
230# can only run what is still maintained
23111X_TAGS := $(filter $(11X_TAGS),$(ALL_TAGS))
232
Nico Huberf4a1b5d2022-09-27 14:02:36 +0000233# 1.2.x tags -- list was crafted late at the 1.2.1 release
23412X_TAGS := \
235 djgpp\:6.1.0 \
236 fedora\:30-aarch64 \
237 fedora\:30-x86_64 \
238 fedora\:31-x86_64 \
239 fedora\:32-aarch64 \
240 fedora\:32-x86_64 \
241 fedora\:33-ppc64le \
242 fedora\:33-x86_64 \
243 fedora\:34-aarch64 \
244 fedora\:34-ppc64le \
245 fedora\:34-s390x \
246 fedora\:34-x86_64 \
247 centos\:7.6-amd64-clean \
248 debian-debootstrap\:amd64-stretch \
249 debian-debootstrap\:arm64-stretch \
250 debian-debootstrap\:armhf-stretch \
251 debian-debootstrap\:i386-stretch \
252 debian-debootstrap\:mipsel-stretch \
253 debian-debootstrap\:amd64-buster \
254 debian-debootstrap\:arm64-buster \
255 debian-debootstrap\:armhf-buster \
256 debian-debootstrap\:i386-buster \
257 debian-debootstrap\:mips-buster \
258 debian-debootstrap\:mipsel-buster \
259 debian-debootstrap\:ppc64el-buster \
260 debian-debootstrap\:amd64-bullseye \
261 debian-debootstrap\:armhf-bullseye \
262 debian-debootstrap\:i386-bullseye \
263 debian-debootstrap\:mipsel-bullseye \
264 debian-debootstrap\:ppc64el-bullseye \
265 ubuntu-debootstrap\:amd64-bionic \
266 ubuntu-debootstrap\:arm64-bionic \
267 ubuntu-debootstrap\:i386-bionic \
268 ubuntu-debootstrap\:amd64-focal \
269 ubuntu-debootstrap\:arm64-focal \
270 ubuntu-debootstrap\:armhf-focal \
271 ubuntu-debootstrap\:ppc64el-focal \
272 ubuntu-debootstrap\:amd64-jammy \
273 ubuntu-debootstrap\:arm64-jammy \
274 ubuntu-debootstrap\:armhf-jammy \
275 ubuntu-debootstrap\:ppc64el-jammy \
276 alpine\:aarch64-v3.9 \
277 alpine\:amd64-v3.9 \
278 alpine\:i386-v3.9 \
279 alpine\:aarch64-v3.10 \
280 alpine\:amd64-v3.10 \
281 alpine\:armhf-v3.10 \
282 alpine\:i386-v3.10 \
283 alpine\:aarch64-v3.10 \
284 alpine\:amd64-v3.10 \
285 alpine\:armhf-v3.10 \
286 alpine\:i386-v3.10 \
287 alpine\:aarch64-v3.12 \
288 alpine\:amd64-v3.12 \
289 alpine\:i386-v3.12 \
290 alpine\:amd64-v3.14 \
291 alpine\:i386-v3.14 \
292
293# can only run what is still maintained
29412X_TAGS := $(filter $(12X_TAGS),$(ALL_TAGS))
295
Nico Huberc0b52db2022-12-15 12:42:32 +0000296default: $(DEFAULT_TAGS)
297
298native: $(NATIVE_TAGS)
299
300working: $(WORKING_TAGS)
301
302all: $(ALL_TAGS)
303
3041.0.x: export TEST_REVISION=refs/heads/1.0.x
3051.0.x: $(10X_TAGS)
306
3071.1.x: export TEST_REVISION=refs/heads/1.1.x
3081.1.x: $(11X_TAGS)
309
Nico Huberf4a1b5d2022-09-27 14:02:36 +00003101.2.x: export TEST_REVISION=refs/heads/1.2.x
3111.2.x: $(12X_TAGS)
312
Nico Huberc0b52db2022-12-15 12:42:32 +0000313show-default:
314 @printf "%s\n" $(DEFAULT_TAGS)
315
316show-native:
317 @printf "%s\n" $(NATIVE_TAGS)
318
319show-working:
320 @printf "%s\n" $(WORKING_TAGS)
321
322show-all:
323 @printf "%s\n" $(ALL_TAGS)
324
325show-1.0.x:
326 @printf "%s\n" $(10X_TAGS)
327
328show-1.1.x:
329 @printf "%s\n" $(11X_TAGS)
330
Nico Huberf4a1b5d2022-09-27 14:02:36 +0000331show-1.2.x:
332 @printf "%s\n" $(12X_TAGS)
333
334.PHONY: default native all 1.0.x 1.1.x 1.2.x
335.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 +0000336.PHONY: $(ALL_TAGS)