Skip to content
This repository was archived by the owner on Feb 28, 2023. It is now read-only.

Commit 88600a9

Browse files
committed
add local create_stable_data_file for tests
1 parent 6632c17 commit 88600a9

File tree

2 files changed

+306
-0
lines changed

2 files changed

+306
-0
lines changed

tests/scripts/common-functions-source.sh

Lines changed: 305 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,311 @@
1717

1818
# -----------------------------------------------------------------------------
1919

20+
# Without Arm 32-bit, without opensuse/leap:15
21+
function create_stable_data_file()
22+
{
23+
local message="$1"
24+
local branch="$2"
25+
local base_url="$3"
26+
local data_file_path="$4"
27+
28+
# Note: __EOF__ is NOT quoted to allow substitutions.
29+
cat <<__EOF__ > "${data_file_path}"
30+
{
31+
"request": {
32+
"message": "${message}",
33+
"branch": "${branch}",
34+
"config": {
35+
"merge_mode": "replace",
36+
"jobs": [
37+
{
38+
"name": "Ubuntu 12, 14, 16, 18, 20 (Intel 64-bit)",
39+
"os": "linux",
40+
"arch": "amd64",
41+
"dist": "bionic",
42+
"services": [ "docker" ],
43+
"language": "minimal",
44+
"script": [
45+
"env | sort",
46+
"pwd",
47+
"DEBUG=${DEBUG} bash tests/scripts/docker-test.sh ubuntu:20.04 ${base_url} ",
48+
"DEBUG=${DEBUG} bash tests/scripts/docker-test.sh ubuntu:18.04 ${base_url} ",
49+
"DEBUG=${DEBUG} bash tests/scripts/docker-test.sh ubuntu:16.04 ${base_url} ",
50+
"DEBUG=${DEBUG} bash tests/scripts/docker-test.sh ubuntu:14.04 ${base_url} ",
51+
"DEBUG=${DEBUG} bash tests/scripts/docker-test.sh ubuntu:12.04 ${base_url} "
52+
]
53+
},
54+
{
55+
"name": "Ubuntu 14, 16, 18 (Intel 32-bit)",
56+
"os": "linux",
57+
"arch": "amd64",
58+
"dist": "bionic",
59+
"services": [ "docker" ],
60+
"language": "minimal",
61+
"script": [
62+
"env | sort",
63+
"pwd",
64+
"DEBUG=${DEBUG} bash tests/scripts/docker-test.sh --32 i386/ubuntu:18.04 ${base_url} ",
65+
"DEBUG=${DEBUG} bash tests/scripts/docker-test.sh --32 i386/ubuntu:16.04 ${base_url} ",
66+
"DEBUG=${DEBUG} bash tests/scripts/docker-test.sh --32 i386/ubuntu:14.04 ${base_url} "
67+
]
68+
},
69+
{
70+
"name": "Ubuntu 16, 18, 20 (Arm 64-bit)",
71+
"os": "linux",
72+
"arch": "arm64",
73+
"dist": "bionic",
74+
"services": [ "docker" ],
75+
"language": "minimal",
76+
"script": [
77+
"env | sort",
78+
"pwd",
79+
"DEBUG=${DEBUG} bash tests/scripts/docker-test.sh ubuntu:20.04 ${base_url} ",
80+
"DEBUG=${DEBUG} bash tests/scripts/docker-test.sh ubuntu:18.04 ${base_url} ",
81+
"DEBUG=${DEBUG} bash tests/scripts/docker-test.sh ubuntu:16.04 ${base_url} "
82+
]
83+
},
84+
{
85+
"name": "Debian 8, 9, 10 (Intel 64-bit)",
86+
"os": "linux",
87+
"arch": "amd64",
88+
"dist": "bionic",
89+
"services": [ "docker" ],
90+
"language": "minimal",
91+
"script": [
92+
"env | sort",
93+
"pwd",
94+
"DEBUG=${DEBUG} bash tests/scripts/docker-test.sh debian:buster ${base_url} ",
95+
"DEBUG=${DEBUG} bash tests/scripts/docker-test.sh debian:stretch ${base_url} ",
96+
"DEBUG=${DEBUG} bash tests/scripts/docker-test.sh debian:jessie ${base_url} "
97+
]
98+
},
99+
{
100+
"name": "Debian 8, 9, 10 (Intel 32-bit)",
101+
"os": "linux",
102+
"arch": "amd64",
103+
"dist": "bionic",
104+
"services": [ "docker" ],
105+
"language": "minimal",
106+
"script": [
107+
"env | sort",
108+
"pwd",
109+
"DEBUG=${DEBUG} bash tests/scripts/docker-test.sh --32 i386/debian:buster ${base_url} ",
110+
"DEBUG=${DEBUG} bash tests/scripts/docker-test.sh --32 i386/debian:stretch ${base_url} ",
111+
"DEBUG=${DEBUG} bash tests/scripts/docker-test.sh --32 i386/debian:jessie ${base_url} "
112+
]
113+
},
114+
{
115+
"name": "Debian 9, 10 (Arm 64-bit)",
116+
"os": "linux",
117+
"arch": "arm64",
118+
"dist": "bionic",
119+
"services": [ "docker" ],
120+
"language": "minimal",
121+
"script": [
122+
"env | sort",
123+
"pwd",
124+
"DEBUG=${DEBUG} bash tests/scripts/docker-test.sh debian:buster ${base_url} ",
125+
"DEBUG=${DEBUG} bash tests/scripts/docker-test.sh debian:stretch ${base_url} "
126+
]
127+
},
128+
{
129+
"name": "CentOS 7, 8 (Intel 64-bit)",
130+
"os": "linux",
131+
"arch": "amd64",
132+
"dist": "bionic",
133+
"services": [ "docker" ],
134+
"language": "minimal",
135+
"script": [
136+
"env | sort",
137+
"pwd",
138+
"DEBUG=${DEBUG} bash tests/scripts/docker-test.sh centos:8 ${base_url} ",
139+
"DEBUG=${DEBUG} bash tests/scripts/docker-test.sh centos:7 ${base_url} "
140+
]
141+
},
142+
{
143+
"name": "CentOS 7 (Intel 32-bit)",
144+
"os": "linux",
145+
"arch": "amd64",
146+
"dist": "bionic",
147+
"services": [ "docker" ],
148+
"language": "minimal",
149+
"script": [
150+
"env | sort",
151+
"pwd",
152+
"DEBUG=${DEBUG} bash tests/scripts/docker-test.sh --32 i386/centos:7 ${base_url} "
153+
]
154+
},
155+
{
156+
"name": "CentOS 7, 8 (Arm 64-bit)",
157+
"os": "linux",
158+
"arch": "arm64",
159+
"dist": "bionic",
160+
"services": [ "docker" ],
161+
"language": "minimal",
162+
"script": [
163+
"env | sort",
164+
"pwd",
165+
"DEBUG=${DEBUG} bash tests/scripts/docker-test.sh centos:8 ${base_url} ",
166+
"DEBUG=${DEBUG} bash tests/scripts/docker-test.sh centos:7 ${base_url} "
167+
]
168+
},
169+
{
170+
"name": "OpenSUSE 13, 15 (Intel 64-bit)",
171+
"os": "linux",
172+
"arch": "amd64",
173+
"dist": "bionic",
174+
"services": [ "docker" ],
175+
"language": "minimal",
176+
"script": [
177+
"env | sort",
178+
"pwd",
179+
"DEBUG=${DEBUG} bash tests/scripts/docker-test.sh opensuse/leap:15 ${base_url} ",
180+
"DEBUG=${DEBUG} bash tests/scripts/docker-test.sh opensuse/amd64:13.2 ${base_url} "
181+
]
182+
},
183+
{
184+
"name": "Fedora 20, 25, 27, 29, 31 (Intel 64-bit)",
185+
"os": "linux",
186+
"arch": "amd64",
187+
"dist": "bionic",
188+
"services": [ "docker" ],
189+
"language": "minimal",
190+
"script": [
191+
"env | sort",
192+
"pwd",
193+
"DEBUG=${DEBUG} bash tests/scripts/docker-test.sh fedora:31 ${base_url} ",
194+
"DEBUG=${DEBUG} bash tests/scripts/docker-test.sh fedora:29 ${base_url} ",
195+
"DEBUG=${DEBUG} bash tests/scripts/docker-test.sh fedora:27 ${base_url} ",
196+
"DEBUG=${DEBUG} bash tests/scripts/docker-test.sh fedora:25 ${base_url} ",
197+
"DEBUG=${DEBUG} bash tests/scripts/docker-test.sh fedora:20 ${base_url} "
198+
]
199+
},
200+
{
201+
"name": "Fedora 27, 29, 31 (Arm 64-bit)",
202+
"os": "linux",
203+
"arch": "arm64",
204+
"dist": "bionic",
205+
"services": [ "docker" ],
206+
"language": "minimal",
207+
"script": [
208+
"env | sort",
209+
"pwd",
210+
"DEBUG=${DEBUG} bash tests/scripts/docker-test.sh fedora:31 ${base_url} ",
211+
"DEBUG=${DEBUG} bash tests/scripts/docker-test.sh fedora:29 ${base_url} ",
212+
"DEBUG=${DEBUG} bash tests/scripts/docker-test.sh fedora:27 ${base_url} "
213+
]
214+
},
215+
{
216+
"name": "macOS 10.15 Intel",
217+
"os": "osx",
218+
"arch": "amd64",
219+
"osx_image": "xcode11.5",
220+
"language": "minimal",
221+
"script": [
222+
"env | sort",
223+
"pwd",
224+
"DEBUG=${DEBUG} bash tests/scripts/native-test.sh ${base_url}"
225+
]
226+
},
227+
{
228+
"name": "macOS 10.14 Intel",
229+
"os": "osx",
230+
"arch": "amd64",
231+
"osx_image": "xcode11.3",
232+
"language": "minimal",
233+
"script": [
234+
"env | sort",
235+
"pwd",
236+
"DEBUG=${DEBUG} bash tests/scripts/native-test.sh ${base_url}"
237+
]
238+
},
239+
{
240+
"name": "macOS 10.13 Intel",
241+
"os": "osx",
242+
"arch": "amd64",
243+
"osx_image": "xcode10.1",
244+
"language": "minimal",
245+
"script": [
246+
"env | sort",
247+
"pwd",
248+
"DEBUG=${DEBUG} bash tests/scripts/native-test.sh ${base_url}"
249+
]
250+
},
251+
{
252+
"name": "macOS 10.12 Intel",
253+
"os": "osx",
254+
"arch": "amd64",
255+
"osx_image": "xcode9.2",
256+
"language": "minimal",
257+
"script": [
258+
"env | sort",
259+
"pwd",
260+
"DEBUG=${DEBUG} bash tests/scripts/native-test.sh ${base_url}"
261+
]
262+
},
263+
{
264+
"name": "macOS 10.11 Intel",
265+
"os": "osx",
266+
"arch": "amd64",
267+
"osx_image": "xcode8",
268+
"language": "minimal",
269+
"script": [
270+
"env | sort",
271+
"pwd",
272+
"DEBUG=${DEBUG} bash tests/scripts/native-test.sh ${base_url}"
273+
]
274+
},
275+
{
276+
"name": "macOS 10.10 Intel",
277+
"os": "osx",
278+
"arch": "amd64",
279+
"osx_image": "xcode6.4",
280+
"language": "minimal",
281+
"script": [
282+
"env | sort",
283+
"pwd",
284+
"DEBUG=${DEBUG} bash tests/scripts/native-test.sh ${base_url}"
285+
]
286+
},
287+
{
288+
"name": "Windows 10 (Intel 64-bit)",
289+
"os": "windows",
290+
"arch": "amd64",
291+
"language": "minimal",
292+
"script": [
293+
"env | sort",
294+
"pwd",
295+
"DEBUG=${DEBUG} bash tests/scripts/native-test.sh ${base_url} "
296+
]
297+
},
298+
{
299+
"name": "Windows 10 (Intel 32-bit)",
300+
"os": "windows",
301+
"arch": "amd64",
302+
"language": "minimal",
303+
"script": [
304+
"env | sort",
305+
"pwd",
306+
"DEBUG=${DEBUG} bash tests/scripts/native-test.sh --32 ${base_url} "
307+
]
308+
}
309+
],
310+
"notifications": {
311+
"email": {
312+
"on_success": "always",
313+
"on_failure": "always"
314+
}
315+
}
316+
}
317+
}
318+
}
319+
__EOF__
320+
321+
}
322+
323+
# -----------------------------------------------------------------------------
324+
20325
function test_binutils()
21326
{
22327
echo

tests/scripts/container-test.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ then
8888
elif [[ ${image_name} == *opensuse* ]]
8989
then
9090
run_verbose zypper -q refresh
91+
# libopenssl1_1 requires reboot
9192
run_verbose zypper -q update -y
9293
run_verbose zypper -q in -y git-core curl tar gzip lsb-release binutils
9394
elif [[ ${image_name} == *manjaro* ]]

0 commit comments

Comments
 (0)