blob: 9b57a649582704a3f0278221b0461aa05da573b7 [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
37OTHER_TAGS := djgpp\:6.1.0
38
Nico Huber05f0f7c2023-03-03 17:08:16 +000039ALL_TAGS := $(ANITA_TAGS) $(MULTIARCH_TAGS) $(OFFICIAL_TAGS) $(OTHER_TAGS)
Nico Huberc0b52db2022-12-15 12:42:32 +000040
41BROKEN_TAGS := anita\:7.1-amd64 anita\:7.1-i386 \
42 centos\:7.6-armhfp-clean \
43 fedora\:30-s390x fedora\:28-armhfp \
44
45WORKING_TAGS := $(filter-out $(BROKEN_TAGS),$(ALL_TAGS))
46
47arch_filter = $(sort \
48 $(foreach arch,$(1), \
Nico Huber05f0f7c2023-03-03 17:08:16 +000049 $(filter-out $(subst $(arch),,$(MULTIARCH_TAGS) $(OFFICIAL_TAGS)), \
50 $(MULTIARCH_TAGS) $(OFFICIAL_TAGS))))
Nico Huberc0b52db2022-12-15 12:42:32 +000051
52machine_map = \
53 $(if $(filter i386 i686 x86,$(1)),i386 x86, \
54 $(if $(filter x86_64,$(1)),amd64 i386 x86, \
55 $(if $(filter armv7l armv6l,$(1)),armhf, \
56 $(if $(filter aarch64,$(1)),aarch64 arm64, \
57 $(if $(filter ppc64le,$(1)),ppc64le ppc64el, \
58 $(if $(filter ppc,$(1)),powerpc, \
59 $(if $(filter mips,$(1)),mips mipsel, \
60 $(1))))))))
61
62NATIVE_TAGS := $(call arch_filter,$(call machine_map,$(shell uname -m)))
63
64# rather arbitrary selection of images that seem to work (focus on amd64)
65DEFAULT_TAGS := \
Nico Huberb50d73d2023-03-01 17:25:12 +000066 anita\:9.3-amd64 \
67 anita\:9.3-i386 \
Nico Huberc0b52db2022-12-15 12:42:32 +000068 anita\:8.2-amd64 \
Nico Hubere49c2202022-12-11 17:31:39 +000069 anita\:8.2-i386 \
Nico Huberc0b52db2022-12-15 12:42:32 +000070 djgpp\:6.1.0 \
71 fedora\:30-aarch64 \
Nico Hubere49c2202022-12-11 17:31:39 +000072 fedora\:30-x86_64 \
73 fedora\:31-x86_64 \
74 fedora\:32-aarch64 \
75 fedora\:32-x86_64 \
76 fedora\:33-ppc64le \
77 fedora\:33-x86_64 \
78 fedora\:34-aarch64 \
79 fedora\:34-ppc64le \
80 fedora\:34-s390x \
81 fedora\:34-x86_64 \
82 centos\:7.6-amd64-clean \
Nico Huberc0b52db2022-12-15 12:42:32 +000083 debian-debootstrap\:amd64-stretch \
Nico Hubere49c2202022-12-11 17:31:39 +000084 debian-debootstrap\:arm64-stretch \
85 debian-debootstrap\:armhf-stretch \
Nico Huberc0b52db2022-12-15 12:42:32 +000086 debian-debootstrap\:i386-stretch \
Nico Hubere49c2202022-12-11 17:31:39 +000087 debian-debootstrap\:mipsel-stretch \
88 debian-debootstrap\:amd64-buster \
89 debian-debootstrap\:arm64-buster \
90 debian-debootstrap\:armhf-buster \
91 debian-debootstrap\:i386-buster \
92 debian-debootstrap\:mips-buster \
93 debian-debootstrap\:mipsel-buster \
94 debian-debootstrap\:ppc64el-buster \
95 debian-debootstrap\:amd64-bullseye \
96 debian-debootstrap\:armhf-bullseye \
97 debian-debootstrap\:i386-bullseye \
98 debian-debootstrap\:mipsel-bullseye \
99 debian-debootstrap\:ppc64el-bullseye \
Nico Huberc0b52db2022-12-15 12:42:32 +0000100 ubuntu-debootstrap\:amd64-bionic \
Nico Hubere49c2202022-12-11 17:31:39 +0000101 ubuntu-debootstrap\:arm64-bionic \
102 ubuntu-debootstrap\:i386-bionic \
103 ubuntu-debootstrap\:amd64-focal \
104 ubuntu-debootstrap\:arm64-focal \
105 ubuntu-debootstrap\:armhf-focal \
106 ubuntu-debootstrap\:ppc64el-focal \
107 ubuntu-debootstrap\:amd64-jammy \
108 ubuntu-debootstrap\:arm64-jammy \
109 ubuntu-debootstrap\:armhf-jammy \
110 ubuntu-debootstrap\:ppc64el-jammy \
Nico Huberc0b52db2022-12-15 12:42:32 +0000111 alpine\:aarch64-v3.9 \
Nico Hubere49c2202022-12-11 17:31:39 +0000112 alpine\:amd64-v3.9 \
113 alpine\:i386-v3.9 \
114 alpine\:aarch64-v3.10 \
115 alpine\:amd64-v3.10 \
116 alpine\:armhf-v3.10 \
117 alpine\:i386-v3.10 \
118 alpine\:aarch64-v3.10 \
119 alpine\:amd64-v3.10 \
120 alpine\:armhf-v3.10 \
121 alpine\:i386-v3.10 \
122 alpine\:aarch64-v3.12 \
123 alpine\:amd64-v3.12 \
124 alpine\:i386-v3.12 \
125 alpine\:amd64-v3.14 \
126 alpine\:i386-v3.14 \
Nico Huberc0b52db2022-12-15 12:42:32 +0000127
128# also run all native tests by default
129DEFAULT_TAGS += $(filter-out $(DEFAULT_TAGS),$(NATIVE_TAGS))
130
131# original 1.0.x tags
13210X_TAGS := \
133 anita\:7.1-amd64 \
134 anita\:7.1-i386 \
135 djgpp\:6.1.0 \
136 alpine\:amd64-v3.6 \
137 alpine\:amd64-v3.7 \
138 alpine\:i386-v3.6 \
139 alpine\:i386-v3.7 \
140 centos\:7.2-amd64-clean \
141 centos\:7.3-aarch64-clean \
142 centos\:7.3-amd64-clean \
143 debian-debootstrap\:amd64-sid \
144 debian-debootstrap\:amd64-stretch \
145 debian-debootstrap\:armhf-stretch \
146 debian-debootstrap\:i386-sid \
147 debian-debootstrap\:i386-stretch \
148 debian-debootstrap\:mips-stretch \
149 debian-debootstrap\:mipsel-stretch \
150 debian-debootstrap\:powerpc-sid \
151 debian-debootstrap\:ppc64el-stretch \
152 fedora\:24-x86_64 \
153 fedora\:25-aarch64 \
154 fedora\:25-ppc64le \
155 fedora\:25-x86_64 \
156 ubuntu-debootstrap\:amd64-xenial \
157 ubuntu-debootstrap\:amd64-zesty \
158 ubuntu-debootstrap\:arm64-xenial \
159 ubuntu-debootstrap\:i386-xenial \
160 ubuntu-debootstrap\:i386-zesty \
161
162# additional tags added after initial release
16310X_TAGS += \
164 alpine\:aarch64-v3.8 \
165 alpine\:armhf-v3.8 \
166 alpine\:amd64-v3.8 \
167 alpine\:i386-v3.8 \
168 debian-debootstrap\:amd64-buster \
169 debian-debootstrap\:arm64-buster \
170 debian-debootstrap\:i386-buster \
171 ubuntu-debootstrap\:amd64-bionic \
172 ubuntu-debootstrap\:arm64-bionic \
173 ubuntu-debootstrap\:i386-bionic \
174
175# can only run what is still maintained
17610X_TAGS := $(filter $(10X_TAGS),$(ALL_TAGS))
177
178# original 1.1.x tags
17911X_TAGS := \
180 anita\:7.1-amd64 \
181 djgpp\:6.1.0 \
182 fedora\:30-x86_64 \
183 fedora\:30-aarch64 \
184 fedora\:29-x86_64 \
185 fedora\:25-x86_64 \
186 fedora\:25-ppc64le \
187 fedora\:25-aarch64 \
188 fedora\:24-x86_64 \
189 centos\:7.6-amd64-clean \
190 centos\:7.3-aarch64-clean \
191 centos\:7.3-amd64-clean \
192 centos\:7.2-amd64-clean \
193 debian-debootstrap\:ppc64el-stretch \
194 debian-debootstrap\:armhf-stretch \
195 debian-debootstrap\:mips-stretch \
196 debian-debootstrap\:mipsel-stretch \
197 debian-debootstrap\:amd64-stretch \
198 debian-debootstrap\:i386-stretch \
199 debian-debootstrap\:amd64-sid \
200 ubuntu-debootstrap\:arm64-xenial \
201 ubuntu-debootstrap\:amd64-xenial \
202 ubuntu-debootstrap\:powerpc-xenial \
203 ubuntu-debootstrap\:amd64-bionic \
204 alpine\:aarch64-v3.9 \
205 alpine\:amd64-v3.9 \
206 alpine\:amd64-v3.8 \
207 alpine\:amd64-v3.7 \
208 alpine\:amd64-v3.6 \
209 alpine\:armhf-v3.8 \
210 alpine\:i386-v3.9 \
211 alpine\:i386-v3.8 \
212 alpine\:i386-v3.7 \
213 alpine\:i386-v3.6 \
214 debian-debootstrap\:amd64-buster \
215 debian-debootstrap\:i386-buster \
216 debian-debootstrap\:i386-sid \
217 ubuntu-debootstrap\:armhf-xenial \
218 ubuntu-debootstrap\:i386-bionic \
219 ubuntu-debootstrap\:i386-xenial \
220 ubuntu-debootstrap\:ppc64el-xenial \
221
222# can only run what is still maintained
22311X_TAGS := $(filter $(11X_TAGS),$(ALL_TAGS))
224
Nico Huberf4a1b5d2022-09-27 14:02:36 +0000225# 1.2.x tags -- list was crafted late at the 1.2.1 release
22612X_TAGS := \
227 djgpp\:6.1.0 \
228 fedora\:30-aarch64 \
229 fedora\:30-x86_64 \
230 fedora\:31-x86_64 \
231 fedora\:32-aarch64 \
232 fedora\:32-x86_64 \
233 fedora\:33-ppc64le \
234 fedora\:33-x86_64 \
235 fedora\:34-aarch64 \
236 fedora\:34-ppc64le \
237 fedora\:34-s390x \
238 fedora\:34-x86_64 \
239 centos\:7.6-amd64-clean \
240 debian-debootstrap\:amd64-stretch \
241 debian-debootstrap\:arm64-stretch \
242 debian-debootstrap\:armhf-stretch \
243 debian-debootstrap\:i386-stretch \
244 debian-debootstrap\:mipsel-stretch \
245 debian-debootstrap\:amd64-buster \
246 debian-debootstrap\:arm64-buster \
247 debian-debootstrap\:armhf-buster \
248 debian-debootstrap\:i386-buster \
249 debian-debootstrap\:mips-buster \
250 debian-debootstrap\:mipsel-buster \
251 debian-debootstrap\:ppc64el-buster \
252 debian-debootstrap\:amd64-bullseye \
253 debian-debootstrap\:armhf-bullseye \
254 debian-debootstrap\:i386-bullseye \
255 debian-debootstrap\:mipsel-bullseye \
256 debian-debootstrap\:ppc64el-bullseye \
257 ubuntu-debootstrap\:amd64-bionic \
258 ubuntu-debootstrap\:arm64-bionic \
259 ubuntu-debootstrap\:i386-bionic \
260 ubuntu-debootstrap\:amd64-focal \
261 ubuntu-debootstrap\:arm64-focal \
262 ubuntu-debootstrap\:armhf-focal \
263 ubuntu-debootstrap\:ppc64el-focal \
264 ubuntu-debootstrap\:amd64-jammy \
265 ubuntu-debootstrap\:arm64-jammy \
266 ubuntu-debootstrap\:armhf-jammy \
267 ubuntu-debootstrap\:ppc64el-jammy \
268 alpine\:aarch64-v3.9 \
269 alpine\:amd64-v3.9 \
270 alpine\:i386-v3.9 \
271 alpine\:aarch64-v3.10 \
272 alpine\:amd64-v3.10 \
273 alpine\:armhf-v3.10 \
274 alpine\:i386-v3.10 \
275 alpine\:aarch64-v3.10 \
276 alpine\:amd64-v3.10 \
277 alpine\:armhf-v3.10 \
278 alpine\:i386-v3.10 \
279 alpine\:aarch64-v3.12 \
280 alpine\:amd64-v3.12 \
281 alpine\:i386-v3.12 \
282 alpine\:amd64-v3.14 \
283 alpine\:i386-v3.14 \
284
285# can only run what is still maintained
28612X_TAGS := $(filter $(12X_TAGS),$(ALL_TAGS))
287
Nico Huberc0b52db2022-12-15 12:42:32 +0000288default: $(DEFAULT_TAGS)
289
290native: $(NATIVE_TAGS)
291
292working: $(WORKING_TAGS)
293
294all: $(ALL_TAGS)
295
2961.0.x: export TEST_REVISION=refs/heads/1.0.x
2971.0.x: $(10X_TAGS)
298
2991.1.x: export TEST_REVISION=refs/heads/1.1.x
3001.1.x: $(11X_TAGS)
301
Nico Huberf4a1b5d2022-09-27 14:02:36 +00003021.2.x: export TEST_REVISION=refs/heads/1.2.x
3031.2.x: $(12X_TAGS)
304
Nico Huberc0b52db2022-12-15 12:42:32 +0000305show-default:
306 @printf "%s\n" $(DEFAULT_TAGS)
307
308show-native:
309 @printf "%s\n" $(NATIVE_TAGS)
310
311show-working:
312 @printf "%s\n" $(WORKING_TAGS)
313
314show-all:
315 @printf "%s\n" $(ALL_TAGS)
316
317show-1.0.x:
318 @printf "%s\n" $(10X_TAGS)
319
320show-1.1.x:
321 @printf "%s\n" $(11X_TAGS)
322
Nico Huberf4a1b5d2022-09-27 14:02:36 +0000323show-1.2.x:
324 @printf "%s\n" $(12X_TAGS)
325
326.PHONY: default native all 1.0.x 1.1.x 1.2.x
327.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 +0000328.PHONY: $(ALL_TAGS)