Nico Huber | c0b52db | 2022-12-15 12:42:32 +0000 | [diff] [blame^] | 1 | ANITA_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 | |
| 6 | MULTIARCH_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 | |
| 37 | OTHER_TAGS := djgpp\:6.1.0 |
| 38 | |
| 39 | ALL_TAGS := $(ANITA_TAGS) $(MULTIARCH_TAGS) $(OTHER_TAGS) |
| 40 | |
| 41 | BROKEN_TAGS := anita\:7.1-amd64 anita\:7.1-i386 \ |
| 42 | centos\:7.6-armhfp-clean \ |
| 43 | fedora\:30-s390x fedora\:28-armhfp \ |
| 44 | |
| 45 | WORKING_TAGS := $(filter-out $(BROKEN_TAGS),$(ALL_TAGS)) |
| 46 | |
| 47 | arch_filter = $(sort \ |
| 48 | $(foreach arch,$(1), \ |
| 49 | $(filter-out $(subst $(arch),,$(MULTIARCH_TAGS)),$(MULTIARCH_TAGS)))) |
| 50 | |
| 51 | machine_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 | |
| 61 | NATIVE_TAGS := $(call arch_filter,$(call machine_map,$(shell uname -m))) |
| 62 | |
| 63 | # rather arbitrary selection of images that seem to work (focus on amd64) |
| 64 | DEFAULT_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 |
| 93 | DEFAULT_TAGS += $(filter-out $(DEFAULT_TAGS),$(NATIVE_TAGS)) |
| 94 | |
| 95 | # original 1.0.x tags |
| 96 | 10X_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 |
| 127 | 10X_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 |
| 140 | 10X_TAGS := $(filter $(10X_TAGS),$(ALL_TAGS)) |
| 141 | |
| 142 | # original 1.1.x tags |
| 143 | 11X_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 |
| 187 | 11X_TAGS := $(filter $(11X_TAGS),$(ALL_TAGS)) |
| 188 | |
| 189 | default: $(DEFAULT_TAGS) |
| 190 | |
| 191 | native: $(NATIVE_TAGS) |
| 192 | |
| 193 | working: $(WORKING_TAGS) |
| 194 | |
| 195 | all: $(ALL_TAGS) |
| 196 | |
| 197 | 1.0.x: export TEST_REVISION=refs/heads/1.0.x |
| 198 | 1.0.x: $(10X_TAGS) |
| 199 | |
| 200 | 1.1.x: export TEST_REVISION=refs/heads/1.1.x |
| 201 | 1.1.x: $(11X_TAGS) |
| 202 | |
| 203 | show-default: |
| 204 | @printf "%s\n" $(DEFAULT_TAGS) |
| 205 | |
| 206 | show-native: |
| 207 | @printf "%s\n" $(NATIVE_TAGS) |
| 208 | |
| 209 | show-working: |
| 210 | @printf "%s\n" $(WORKING_TAGS) |
| 211 | |
| 212 | show-all: |
| 213 | @printf "%s\n" $(ALL_TAGS) |
| 214 | |
| 215 | show-1.0.x: |
| 216 | @printf "%s\n" $(10X_TAGS) |
| 217 | |
| 218 | show-1.1.x: |
| 219 | @printf "%s\n" $(11X_TAGS) |
| 220 | |
| 221 | .PHONY: default native all 1.0.x 1.1.x |
| 222 | .PHONY: show-default show-native show-all show-1.0.x show-1.1.x |
| 223 | .PHONY: $(ALL_TAGS) |