blob: 944046970d5937de0a6b5d3886237dd5f324cef8 [file] [log] [blame]
Nico Huberc0b52db2022-12-15 12:42:32 +00001ANITA_TAGS := \
2 anita\:9.1-amd64 anita\:9.1-i386 anita\:9.1-sparc64 \
3 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
39ALL_TAGS := $(ANITA_TAGS) $(MULTIARCH_TAGS) $(OTHER_TAGS)
40
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), \
49 $(filter-out $(subst $(arch),,$(MULTIARCH_TAGS)),$(MULTIARCH_TAGS))))
50
51machine_map = \
52 $(if $(filter i386 i686 x86,$(1)),i386 x86, \
53 $(if $(filter x86_64,$(1)),amd64 i386 x86, \
54 $(if $(filter armv7l armv6l,$(1)),armhf, \
55 $(if $(filter aarch64,$(1)),aarch64 arm64, \
56 $(if $(filter ppc64le,$(1)),ppc64le ppc64el, \
57 $(if $(filter ppc,$(1)),powerpc, \
58 $(if $(filter mips,$(1)),mips mipsel, \
59 $(1))))))))
60
61NATIVE_TAGS := $(call arch_filter,$(call machine_map,$(shell uname -m)))
62
63# rather arbitrary selection of images that seem to work (focus on amd64)
64DEFAULT_TAGS := \
65 anita\:9.1-sparc64 \
66 anita\:9.1-amd64 \
67 anita\:9.1-i386 \
68 anita\:8.2-amd64 \
69 djgpp\:6.1.0 \
70 fedora\:30-aarch64 \
71 fedora\:25-x86_64 \
72 fedora\:25-ppc64le \
73 fedora\:25-aarch64 \
74 fedora\:24-x86_64 \
75 centos\:7.3-aarch64-clean \
76 centos\:7.3-amd64-clean \
77 centos\:7.2-amd64-clean \
78 debian-debootstrap\:ppc64el-stretch \
79 debian-debootstrap\:armhf-stretch \
80 debian-debootstrap\:mips-stretch \
81 debian-debootstrap\:mipsel-stretch \
82 debian-debootstrap\:amd64-stretch \
83 debian-debootstrap\:i386-stretch \
84 ubuntu-debootstrap\:arm64-xenial \
85 ubuntu-debootstrap\:amd64-xenial \
86 ubuntu-debootstrap\:powerpc-xenial \
87 ubuntu-debootstrap\:amd64-bionic \
88 alpine\:aarch64-v3.9 \
89 alpine\:amd64-v3.8 \
90 alpine\:amd64-v3.7 \
91
92# also run all native tests by default
93DEFAULT_TAGS += $(filter-out $(DEFAULT_TAGS),$(NATIVE_TAGS))
94
95# original 1.0.x tags
9610X_TAGS := \
97 anita\:7.1-amd64 \
98 anita\:7.1-i386 \
99 djgpp\:6.1.0 \
100 alpine\:amd64-v3.6 \
101 alpine\:amd64-v3.7 \
102 alpine\:i386-v3.6 \
103 alpine\:i386-v3.7 \
104 centos\:7.2-amd64-clean \
105 centos\:7.3-aarch64-clean \
106 centos\:7.3-amd64-clean \
107 debian-debootstrap\:amd64-sid \
108 debian-debootstrap\:amd64-stretch \
109 debian-debootstrap\:armhf-stretch \
110 debian-debootstrap\:i386-sid \
111 debian-debootstrap\:i386-stretch \
112 debian-debootstrap\:mips-stretch \
113 debian-debootstrap\:mipsel-stretch \
114 debian-debootstrap\:powerpc-sid \
115 debian-debootstrap\:ppc64el-stretch \
116 fedora\:24-x86_64 \
117 fedora\:25-aarch64 \
118 fedora\:25-ppc64le \
119 fedora\:25-x86_64 \
120 ubuntu-debootstrap\:amd64-xenial \
121 ubuntu-debootstrap\:amd64-zesty \
122 ubuntu-debootstrap\:arm64-xenial \
123 ubuntu-debootstrap\:i386-xenial \
124 ubuntu-debootstrap\:i386-zesty \
125
126# additional tags added after initial release
12710X_TAGS += \
128 alpine\:aarch64-v3.8 \
129 alpine\:armhf-v3.8 \
130 alpine\:amd64-v3.8 \
131 alpine\:i386-v3.8 \
132 debian-debootstrap\:amd64-buster \
133 debian-debootstrap\:arm64-buster \
134 debian-debootstrap\:i386-buster \
135 ubuntu-debootstrap\:amd64-bionic \
136 ubuntu-debootstrap\:arm64-bionic \
137 ubuntu-debootstrap\:i386-bionic \
138
139# can only run what is still maintained
14010X_TAGS := $(filter $(10X_TAGS),$(ALL_TAGS))
141
142# original 1.1.x tags
14311X_TAGS := \
144 anita\:7.1-amd64 \
145 djgpp\:6.1.0 \
146 fedora\:30-x86_64 \
147 fedora\:30-aarch64 \
148 fedora\:29-x86_64 \
149 fedora\:25-x86_64 \
150 fedora\:25-ppc64le \
151 fedora\:25-aarch64 \
152 fedora\:24-x86_64 \
153 centos\:7.6-amd64-clean \
154 centos\:7.3-aarch64-clean \
155 centos\:7.3-amd64-clean \
156 centos\:7.2-amd64-clean \
157 debian-debootstrap\:ppc64el-stretch \
158 debian-debootstrap\:armhf-stretch \
159 debian-debootstrap\:mips-stretch \
160 debian-debootstrap\:mipsel-stretch \
161 debian-debootstrap\:amd64-stretch \
162 debian-debootstrap\:i386-stretch \
163 debian-debootstrap\:amd64-sid \
164 ubuntu-debootstrap\:arm64-xenial \
165 ubuntu-debootstrap\:amd64-xenial \
166 ubuntu-debootstrap\:powerpc-xenial \
167 ubuntu-debootstrap\:amd64-bionic \
168 alpine\:aarch64-v3.9 \
169 alpine\:amd64-v3.9 \
170 alpine\:amd64-v3.8 \
171 alpine\:amd64-v3.7 \
172 alpine\:amd64-v3.6 \
173 alpine\:armhf-v3.8 \
174 alpine\:i386-v3.9 \
175 alpine\:i386-v3.8 \
176 alpine\:i386-v3.7 \
177 alpine\:i386-v3.6 \
178 debian-debootstrap\:amd64-buster \
179 debian-debootstrap\:i386-buster \
180 debian-debootstrap\:i386-sid \
181 ubuntu-debootstrap\:armhf-xenial \
182 ubuntu-debootstrap\:i386-bionic \
183 ubuntu-debootstrap\:i386-xenial \
184 ubuntu-debootstrap\:ppc64el-xenial \
185
186# can only run what is still maintained
18711X_TAGS := $(filter $(11X_TAGS),$(ALL_TAGS))
188
Nico Huberf4a1b5d2022-09-27 14:02:36 +0000189# 1.2.x tags -- list was crafted late at the 1.2.1 release
19012X_TAGS := \
191 djgpp\:6.1.0 \
192 fedora\:30-aarch64 \
193 fedora\:30-x86_64 \
194 fedora\:31-x86_64 \
195 fedora\:32-aarch64 \
196 fedora\:32-x86_64 \
197 fedora\:33-ppc64le \
198 fedora\:33-x86_64 \
199 fedora\:34-aarch64 \
200 fedora\:34-ppc64le \
201 fedora\:34-s390x \
202 fedora\:34-x86_64 \
203 centos\:7.6-amd64-clean \
204 debian-debootstrap\:amd64-stretch \
205 debian-debootstrap\:arm64-stretch \
206 debian-debootstrap\:armhf-stretch \
207 debian-debootstrap\:i386-stretch \
208 debian-debootstrap\:mipsel-stretch \
209 debian-debootstrap\:amd64-buster \
210 debian-debootstrap\:arm64-buster \
211 debian-debootstrap\:armhf-buster \
212 debian-debootstrap\:i386-buster \
213 debian-debootstrap\:mips-buster \
214 debian-debootstrap\:mipsel-buster \
215 debian-debootstrap\:ppc64el-buster \
216 debian-debootstrap\:amd64-bullseye \
217 debian-debootstrap\:armhf-bullseye \
218 debian-debootstrap\:i386-bullseye \
219 debian-debootstrap\:mipsel-bullseye \
220 debian-debootstrap\:ppc64el-bullseye \
221 ubuntu-debootstrap\:amd64-bionic \
222 ubuntu-debootstrap\:arm64-bionic \
223 ubuntu-debootstrap\:i386-bionic \
224 ubuntu-debootstrap\:amd64-focal \
225 ubuntu-debootstrap\:arm64-focal \
226 ubuntu-debootstrap\:armhf-focal \
227 ubuntu-debootstrap\:ppc64el-focal \
228 ubuntu-debootstrap\:amd64-jammy \
229 ubuntu-debootstrap\:arm64-jammy \
230 ubuntu-debootstrap\:armhf-jammy \
231 ubuntu-debootstrap\:ppc64el-jammy \
232 alpine\:aarch64-v3.9 \
233 alpine\:amd64-v3.9 \
234 alpine\:i386-v3.9 \
235 alpine\:aarch64-v3.10 \
236 alpine\:amd64-v3.10 \
237 alpine\:armhf-v3.10 \
238 alpine\:i386-v3.10 \
239 alpine\:aarch64-v3.10 \
240 alpine\:amd64-v3.10 \
241 alpine\:armhf-v3.10 \
242 alpine\:i386-v3.10 \
243 alpine\:aarch64-v3.12 \
244 alpine\:amd64-v3.12 \
245 alpine\:i386-v3.12 \
246 alpine\:amd64-v3.14 \
247 alpine\:i386-v3.14 \
248
249# can only run what is still maintained
25012X_TAGS := $(filter $(12X_TAGS),$(ALL_TAGS))
251
Nico Huberc0b52db2022-12-15 12:42:32 +0000252default: $(DEFAULT_TAGS)
253
254native: $(NATIVE_TAGS)
255
256working: $(WORKING_TAGS)
257
258all: $(ALL_TAGS)
259
2601.0.x: export TEST_REVISION=refs/heads/1.0.x
2611.0.x: $(10X_TAGS)
262
2631.1.x: export TEST_REVISION=refs/heads/1.1.x
2641.1.x: $(11X_TAGS)
265
Nico Huberf4a1b5d2022-09-27 14:02:36 +00002661.2.x: export TEST_REVISION=refs/heads/1.2.x
2671.2.x: $(12X_TAGS)
268
Nico Huberc0b52db2022-12-15 12:42:32 +0000269show-default:
270 @printf "%s\n" $(DEFAULT_TAGS)
271
272show-native:
273 @printf "%s\n" $(NATIVE_TAGS)
274
275show-working:
276 @printf "%s\n" $(WORKING_TAGS)
277
278show-all:
279 @printf "%s\n" $(ALL_TAGS)
280
281show-1.0.x:
282 @printf "%s\n" $(10X_TAGS)
283
284show-1.1.x:
285 @printf "%s\n" $(11X_TAGS)
286
Nico Huberf4a1b5d2022-09-27 14:02:36 +0000287show-1.2.x:
288 @printf "%s\n" $(12X_TAGS)
289
290.PHONY: default native all 1.0.x 1.1.x 1.2.x
291.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 +0000292.PHONY: $(ALL_TAGS)