public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
blob b7f1e3b1b3ab429cfb4f0e7ff4c024aa5d035f2d 22637 bytes (raw)

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
 
# SPDX-License-Identifier: AGPL-3.0-or-later
#
# PASST - Plug A Simple Socket Transport
#  for qemu/UNIX domain socket mode
#
# PASTA - Pack A Subtle Tap Abstraction
#  for network namespace/tap device mode
#
# test/distro/fedora - Fedora builds, get packages via passt, test pasta
#
# Copyright (c) 2021 Red Hat GmbH
# Author: Stefano Brivio <sbrivio@redhat.com>

temp	PIDFILE
htools	wget virt-edit guestfish head sed cat kill

# Quick pasta test: send message from init to ns, and from ns to init
def	distro_quick_pasta_test
host	(ncat -6 -l -p 10000 ::1 > /tmp/init_msg; echo "from_init" | ncat ::1 9999) &
hostb	./pasta
sleep	1
host	PS1='$ '
host	ncat -6 -l -p 9999 ::1 > /tmp/ns_msg &
sleep	2
host	echo "from_ns" | ncat ::1 10000
sleep	2
host	echo
sleep	1
hout	NS_MSG cat /tmp/ns_msg
check	[ __NS_MSG__ = "from_init" ]
hostb	exit
host	echo
hout	INIT_MSG cat /tmp/init_msg
check	[ __INIT_MSG__ = "from_ns" ]
endef

# Bracketed paste mode off, needed from Fedora 34
def	distro_quick_pasta_test_fedora34
host	bind 'set enable-bracketed-paste off'
host	(ncat -6 -l -p 10000 ::1 > /tmp/init_msg; echo "from_init" | ncat -6 ::1 9999) &
hostb	./pasta
sleep	1
host	PS1='$ '
host	bind 'set enable-bracketed-paste off'
host	ncat -6 -l ::1 9999 > /tmp/ns_msg &
sleep	2
host	echo "from_ns" | ncat -6 ::1 10000
sleep	2
host	echo
hout	NS_MSG cat /tmp/ns_msg
check	[ __NS_MSG__ = "from_init" ]
hostb	exit
host	echo
hout	INIT_MSG cat /tmp/init_msg
check	[ __INIT_MSG__ = "from_ns" ]
endef

# Start passt, set common variables
hostb	./passt -P __PIDFILE__ &
sleep	1
host	echo
hout	DNS6 sed -n 's/^nameserver \([^:]*:\)\([^%]*\).*/\1\2/p' /etc/resolv.conf | head -1
hout	GUEST_FILES ls -1 *.c *.h *.sh Makefile | tr '\n' ' '; echo


test	Fedora 26, x86_64

temp	IMG
host	wget http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/26/CloudImages/x86_64/images/Fedora-Cloud-Base-26-1.5.x86_64.qcow2 -O __IMG__
host	virt-edit -a __IMG__ /etc/systemd/system/getty.target.wants/getty@tty1.service -e 's/ExecStart=.*/ExecStart=\/sbin\/agetty --autologin root -8 --keep-baud 115200,38400,9600 ttyS0 $TERM/g'
host	guestfish --rw -a __IMG__ -i rm /lib/systemd/system/serial-getty@.service
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-config.service
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-init.service
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-init-local.service
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-final.service
host	guestfish --rw -a __IMG__ -i copy-in __GUEST_FILES__ /root/

host	./qrap 5 kvm -M pc -m 1024 -nographic -serial stdio -nodefaults -no-reboot -nographic -vga none __IMG__ -net socket,fd=5 -net nic,model=virtio
host	PS1='$ '
sleep	2
host	yum -y install make gcc nmap-ncat

host	make clean
hout	RET CFLAGS="-Werror" make; echo $?
check	[ __RET__ -eq 0 ]

distro_quick_pasta_test

hint
sleep	1

# PIDFILE is cleaned up when the next test starts, read it now
hout	PID cat __PIDFILE__


test	Fedora 27, x86_64

temp	IMG
host	wget http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/27/CloudImages/x86_64/images/Fedora-Cloud-Base-27-1.6.x86_64.qcow2 -O __IMG__
host	virt-edit -a __IMG__ /etc/systemd/system/getty.target.wants/getty@tty1.service -e 's/ExecStart=.*/ExecStart=\/sbin\/agetty --autologin root -8 --keep-baud 115200,38400,9600 ttyS0 $TERM/g'
host	guestfish --rw -a __IMG__ -i rm /lib/systemd/system/serial-getty@.service
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-config.service
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-init.service
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-init-local.service
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-final.service
host	guestfish --rw -a __IMG__ -i copy-in __GUEST_FILES__ /root/

host	./qrap 5 kvm -M pc -m 1024 -nographic -serial stdio -nodefaults -no-reboot -nographic -vga none __IMG__ -net socket,fd=5 -net nic,model=virtio
host	PS1='$ '
sleep	2
host	yum -y install make gcc nmap-ncat

host	make clean
hout	RET CFLAGS="-Werror" make; echo $?
check	[ __RET__ -eq 0 ]

distro_quick_pasta_test

hint
sleep	1


test	Fedora 28, x86_64

temp	IMG
host	wget http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/28/Cloud/x86_64/images/Fedora-Cloud-Base-28-1.1.x86_64.qcow2 -O __IMG__
host	virt-edit -a __IMG__ /etc/systemd/system/getty.target.wants/getty@tty1.service -e 's/ExecStart=.*/ExecStart=\/sbin\/agetty --autologin root -8 --keep-baud 115200,38400,9600 ttyS0 $TERM/g'
host	guestfish --rw -a __IMG__ -i rm /lib/systemd/system/serial-getty@.service
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-config.service
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-init.service
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-init-local.service
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-final.service
host	guestfish --rw -a __IMG__ -i copy-in __GUEST_FILES__ /root/

host	./qrap 5 kvm -M pc -m 1024 -nographic -serial stdio -nodefaults -no-reboot -nographic -vga none __IMG__ -net socket,fd=5 -net nic,model=virtio
host	PS1='$ '
sleep	2
host	yum -y install make gcc nmap-ncat

host	make clean
hout	RET CFLAGS="-Werror" make; echo $?
check	[ __RET__ -eq 0 ]

distro_quick_pasta_test

hint
sleep	1


test	Fedora 28, aarch64

temp	IMG
host	wget http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/28/Cloud/aarch64/images/Fedora-Cloud-Base-28-1.1.aarch64.qcow2 -O __IMG__
host	virt-edit -a __IMG__ /usr/lib/systemd/system/serial-getty@.service -e 's/ExecStart=.*/ExecStart=\/sbin\/agetty --autologin root -8 --keep-baud 115200,38400,9600 %I $TERM/g'
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-config.service
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-init.service
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-init-local.service
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-final.service
host	guestfish --rw -a __IMG__ -i copy-in __GUEST_FILES__ /root/

host	./qrap 5 qemu-system-aarch64 -m 2048 -cpu cortex-a57 -smp 2 -M virt -bios /usr/share/qemu-efi-aarch64/QEMU_EFI.fd -nodefaults -nographic -vga none -serial stdio __IMG__ -net socket,fd=5 -net nic,model=virtio -device virtio-rng-pci
host	PS1='$ '
sleep	2
host	yum -y install make gcc nmap-ncat

host	make clean
hout	RET CFLAGS="-Werror" make; echo $?
check	[ __RET__ -eq 0 ]

distro_quick_pasta_test

hint
sleep	1
hostb	reset
sleep	1
host	echo


test	Fedora 29, x86_64

temp	IMG
host	wget http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/29/Cloud/x86_64/images/Fedora-Cloud-Base-29-1.2.x86_64.qcow2 -O __IMG__
host	virt-edit -a __IMG__ /usr/lib/systemd/system/serial-getty@.service -e 's/ExecStart=.*/ExecStart=\/sbin\/agetty --autologin root -8 --keep-baud 115200,38400,9600 %I $TERM/g'
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-config.service
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-init.service
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-init-local.service
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-final.service
host	guestfish --rw -a __IMG__ -i copy-in __GUEST_FILES__ /root/

host	./qrap 5 kvm -M pc -m 1024 -nographic -serial stdio -nodefaults -no-reboot -nographic -vga none __IMG__ -net socket,fd=5 -net nic,model=virtio
host	PS1='$ '
sleep	2
host	yum -y install make gcc nmap-ncat

host	make clean
hout	RET CFLAGS="-Werror" make; echo $?
check	[ __RET__ -eq 0 ]

distro_quick_pasta_test

hint
sleep	1


test	Fedora 29, aarch64

temp	IMG
host	wget http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/29/Cloud/aarch64/images/Fedora-Cloud-Base-29-1.2.aarch64.qcow2 -O __IMG__
host	virt-edit -a __IMG__ /usr/lib/systemd/system/serial-getty@.service -e 's/ExecStart=.*/ExecStart=\/sbin\/agetty --autologin root -8 --keep-baud 115200,38400,9600 %I $TERM/g'
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-config.service
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-init.service
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-init-local.service
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-final.service
host	guestfish --rw -a __IMG__ -i copy-in __GUEST_FILES__ /root/

host	./qrap 5 qemu-system-aarch64 -m 2048 -cpu cortex-a57 -smp 2 -M virt -bios /usr/share/qemu-efi-aarch64/QEMU_EFI.fd -nodefaults -nographic -vga none -serial stdio __IMG__ -net socket,fd=5 -net nic,model=virtio -device virtio-rng-pci
host	PS1='$ '
sleep	2
host	yum -y install make gcc nmap-ncat

host	make clean
hout	RET CFLAGS="-Werror" make; echo $?
check	[ __RET__ -eq 0 ]

distro_quick_pasta_test

hint
sleep	1
hostb	reset
sleep	1
host	echo


test	Fedora 30, x86_64

temp	IMG
host	wget http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/30/Cloud/x86_64/images/Fedora-Cloud-Base-30-1.2.x86_64.qcow2 -O __IMG__
host	virt-edit -a __IMG__ /usr/lib/systemd/system/serial-getty@.service -e 's/ExecStart=.*/ExecStart=\/sbin\/agetty --autologin root -8 --keep-baud 115200,38400,9600 %I $TERM/g'
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-config.service
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-init.service
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-init-local.service
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-final.service
host	guestfish --rw -a __IMG__ -i copy-in __GUEST_FILES__ /root/

host	./qrap 5 kvm -M pc -m 1024 -nographic -serial stdio -nodefaults -no-reboot -nographic -vga none __IMG__ -net socket,fd=5 -net nic,model=virtio
host	PS1='$ '
sleep	2
host	yum -y install make gcc nmap-ncat

host	make clean
hout	RET CFLAGS="-Werror" make; echo $?
check	[ __RET__ -eq 0 ]

distro_quick_pasta_test

hint
sleep	1


test	Fedora 30, aarch64

temp	IMG
host	wget http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/30/Cloud/aarch64/images/Fedora-Cloud-Base-30-1.2.aarch64.qcow2 -O __IMG__
host	virt-edit -a __IMG__ /usr/lib/systemd/system/serial-getty@.service -e 's/ExecStart=.*/ExecStart=\/sbin\/agetty --autologin root -8 --keep-baud 115200,38400,9600 %I $TERM/g'
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-config.service
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-init.service
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-init-local.service
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-final.service
host	guestfish --rw -a __IMG__ -i copy-in __GUEST_FILES__ /root/

host	./qrap 5 qemu-system-aarch64 -m 2048 -cpu cortex-a57 -smp 2 -M virt -bios /usr/share/qemu-efi-aarch64/QEMU_EFI.fd -nodefaults -nographic -vga none -serial stdio __IMG__ -net socket,fd=5 -net nic,model=virtio -device virtio-rng-pci
host	PS1='$ '
sleep	2
host	yum -y install make gcc nmap-ncat

host	make clean
hout	RET CFLAGS="-Werror" make; echo $?
check	[ __RET__ -eq 0 ]

distro_quick_pasta_test

hint
sleep	1
hostb	reset
sleep	1
host	echo


test	Fedora 31, x86_64

temp	IMG
host	wget http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/31/Cloud/x86_64/images/Fedora-Cloud-Base-31-1.9.x86_64.qcow2 -O __IMG__
host	virt-edit -a __IMG__ /usr/lib/systemd/system/serial-getty@.service -e 's/ExecStart=.*/ExecStart=\/sbin\/agetty --autologin root -8 --keep-baud 115200,38400,9600 %I $TERM/g'
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-config.service
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-init.service
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-init-local.service
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-final.service
host	guestfish --rw -a __IMG__ -i copy-in __GUEST_FILES__ /root/

host	./qrap 5 kvm -M pc -m 1024 -nographic -serial stdio -nodefaults -no-reboot -nographic -vga none __IMG__ -net socket,fd=5 -net nic,model=virtio
host	PS1='$ '
sleep	2
host	yum -y install make gcc nmap-ncat

host	make clean
hout	RET CFLAGS="-Werror" make; echo $?
check	[ __RET__ -eq 0 ]

distro_quick_pasta_test

hint
sleep	1


test	Fedora 31, aarch64

temp	IMG
host	wget http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/31/Cloud/aarch64/images/Fedora-Cloud-Base-31-1.9.aarch64.qcow2 -O __IMG__
host	virt-edit -a __IMG__ /usr/lib/systemd/system/serial-getty@.service -e 's/ExecStart=.*/ExecStart=\/sbin\/agetty --autologin root -8 --keep-baud 115200,38400,9600 %I $TERM/g'
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-config.service
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-init.service
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-init-local.service
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-final.service
host	guestfish --rw -a __IMG__ -i copy-in __GUEST_FILES__ /root/

host	./qrap 5 qemu-system-aarch64 -m 2048 -cpu cortex-a57 -smp 2 -M virt -bios /usr/share/qemu-efi-aarch64/QEMU_EFI.fd -nodefaults -nographic -vga none -serial stdio __IMG__ -net socket,fd=5 -net nic,model=virtio -device virtio-rng-pci
host	PS1='$ '
sleep	2
host	yum -y install make gcc nmap-ncat

host	make clean
hout	RET CFLAGS="-Werror" make; echo $?
check	[ __RET__ -eq 0 ]

distro_quick_pasta_test

hint
sleep	1
hostb	reset
sleep	1
host	echo


test	Fedora 32, x86_64

temp	IMG
host	wget https://download.fedoraproject.org/pub/fedora/linux/releases/32/Cloud/x86_64/images/Fedora-Cloud-Base-32-1.6.x86_64.qcow2 -O __IMG__
host	virt-edit -a __IMG__ /usr/lib/systemd/system/serial-getty@.service -e 's/ExecStart=.*/ExecStart=\/sbin\/agetty --autologin root -8 --keep-baud 115200,38400,9600 %I $TERM/g'
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-config.service
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-init.service
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-init-local.service
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-final.service
host	guestfish --rw -a __IMG__ -i copy-in __GUEST_FILES__ /root/

host	./qrap 5 kvm -M pc -m 1024 -nographic -serial stdio -nodefaults -no-reboot -nographic -vga none __IMG__ -net socket,fd=5 -net nic,model=virtio
host	PS1='$ '
sleep	2
host	yum -y install make gcc nmap-ncat

host	make clean
hout	RET CFLAGS="-Werror" make; echo $?
check	[ __RET__ -eq 0 ]

distro_quick_pasta_test

hint
sleep	1


test	Fedora 32, aarch64

temp	IMG
host	wget https://download.fedoraproject.org/pub/fedora/linux/releases/32/Cloud/aarch64/images/Fedora-Cloud-Base-32-1.6.aarch64.qcow2 -O __IMG__
host	virt-edit -a __IMG__ /usr/lib/systemd/system/serial-getty@.service -e 's/ExecStart=.*/ExecStart=\/sbin\/agetty --autologin root -8 --keep-baud 115200,38400,9600 %I $TERM/g'
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-config.service
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-init.service
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-init-local.service
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-final.service
host	guestfish --rw -a __IMG__ -i copy-in __GUEST_FILES__ /root/

host	./qrap 5 qemu-system-aarch64 -m 2048 -cpu cortex-a57 -smp 2 -M virt -bios /usr/share/qemu-efi-aarch64/QEMU_EFI.fd -nodefaults -nographic -vga none -serial stdio __IMG__ -net socket,fd=5 -net nic,model=virtio -device virtio-rng-pci
host	PS1='$ '
sleep	2
host	yum -y install make gcc nmap-ncat

host	make clean
hout	RET CFLAGS="-Werror" make; echo $?
check	[ __RET__ -eq 0 ]

distro_quick_pasta_test

hint
sleep	1
hostb	reset
sleep	1
host	echo


test	Fedora 33, x86_64

temp	IMG
host	wget https://download.fedoraproject.org/pub/fedora/linux/releases/33/Cloud/x86_64/images/Fedora-Cloud-Base-33-1.2.x86_64.qcow2 -O __IMG__
host	virt-edit -a __IMG__ /usr/lib/systemd/system/serial-getty@.service -e 's/ExecStart=.*/ExecStart=\/sbin\/agetty --autologin root -8 --keep-baud 115200,38400,9600 %I $TERM/g'
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-config.service
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-init.service
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-init-local.service
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-final.service
host	guestfish --rw -a __IMG__ -i copy-in __GUEST_FILES__ /root/

host	./qrap 5 kvm -M pc -m 1024 -nographic -serial stdio -nodefaults -no-reboot -nographic -vga none __IMG__ -net socket,fd=5 -net nic,model=virtio
host	PS1='$ '
sleep	2
host	yum -y install make gcc nmap-ncat

host	make clean
hout	RET CFLAGS="-Werror" make; echo $?
check	[ __RET__ -eq 0 ]

distro_quick_pasta_test

hint
sleep	1


test	Fedora 33, aarch64

temp	IMG
host	wget https://download.fedoraproject.org/pub/fedora/linux/releases/33/Cloud/aarch64/images/Fedora-Cloud-Base-33-1.2.aarch64.qcow2 -O __IMG__
host	virt-edit -a __IMG__ /usr/lib/systemd/system/serial-getty@.service -e 's/ExecStart=.*/ExecStart=\/sbin\/agetty --autologin root -8 --keep-baud 115200,38400,9600 %I $TERM/g'
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-config.service
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-init.service
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-init-local.service
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-final.service
host	guestfish --rw -a __IMG__ -i copy-in __GUEST_FILES__ /root/

host	./qrap 5 qemu-system-aarch64 -m 2048 -cpu cortex-a57 -smp 2 -M virt -bios /usr/share/qemu-efi-aarch64/QEMU_EFI.fd -nodefaults -nographic -vga none -serial stdio __IMG__ -net socket,fd=5 -net nic,model=virtio -device virtio-rng-pci
host	PS1='$ '
sleep	2
host	yum -y install make gcc nmap-ncat

host	make clean
hout	RET CFLAGS="-Werror" make; echo $?
check	[ __RET__ -eq 0 ]

distro_quick_pasta_test

hint
sleep	1
hostb	reset
sleep	1
host	echo


test	Fedora 34, x86_64

temp	IMG
host	wget https://download.fedoraproject.org/pub/fedora/linux//releases/34/Cloud/x86_64/images/Fedora-Cloud-Base-34-1.2.x86_64.qcow2 -O __IMG__
host	virt-edit -a __IMG__ /usr/lib/systemd/system/serial-getty@.service -e 's/ExecStart=.*/ExecStart=\/sbin\/agetty --autologin root -8 --keep-baud 115200,38400,9600 %I $TERM/g'
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-config.service
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-init.service
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-init-local.service
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-final.service
host	guestfish --rw -a __IMG__ -i copy-in __GUEST_FILES__ /root/

host	./qrap 5 kvm -M pc -m 1024 -nographic -serial stdio -nodefaults -no-reboot -nographic -vga none __IMG__ -net socket,fd=5 -net nic,model=virtio
host	PS1='$ '
sleep	2
host	yum -y install make gcc nmap-ncat

host	make clean
hout	RET CFLAGS="-Werror" make; echo $?
check	[ __RET__ -eq 0 ]

distro_quick_pasta_test_fedora34

hint
sleep	1


test	Fedora 34, aarch64

temp	IMG
host	wget https://download.fedoraproject.org/pub/fedora/linux//releases/34/Cloud/aarch64/images/Fedora-Cloud-Base-34-1.2.aarch64.qcow2 -O __IMG__
host	virt-edit -a __IMG__ /usr/lib/systemd/system/serial-getty@.service -e 's/ExecStart=.*/ExecStart=\/sbin\/agetty --autologin root -8 --keep-baud 115200,38400,9600 %I $TERM/g'
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-config.service
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-init.service
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-init-local.service
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-final.service
host	guestfish --rw -a __IMG__ -i copy-in __GUEST_FILES__ /root/

host	./qrap 5 qemu-system-aarch64 -m 2048 -cpu cortex-a57 -smp 2 -M virt -bios /usr/share/qemu-efi-aarch64/QEMU_EFI.fd -nodefaults -nographic -vga none -serial stdio __IMG__ -net socket,fd=5 -net nic,model=virtio -device virtio-rng-pci
host	PS1='$ '
sleep	2
host	yum -y install make gcc nmap-ncat

host	make clean
hout	RET CFLAGS="-Werror" make; echo $?
check	[ __RET__ -eq 0 ]

distro_quick_pasta_test_fedora34

hint
sleep	1
hostb	reset
sleep	1
host	echo


test	Fedora 35, x86_64

temp	IMG
host	wget https://download.fedoraproject.org/pub/fedora/linux/releases/35/Cloud/x86_64/images/Fedora-Cloud-Base-35-1.2.x86_64.qcow2 -O __IMG__
host	virt-edit -a __IMG__ /usr/lib/systemd/system/serial-getty@.service -e 's/ExecStart=.*/ExecStart=\/sbin\/agetty --autologin root -8 --keep-baud 115200,38400,9600 %I $TERM/g'
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-config.service
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-init.service
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-init-local.service
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-final.service
host	guestfish --rw -a __IMG__ -i copy-in __GUEST_FILES__ /root/

host	./qrap 5 kvm -M pc -m 1024 -nographic -serial stdio -nodefaults -no-reboot -nographic -vga none __IMG__ -net socket,fd=5 -net nic,model=virtio
host	PS1='$ '
sleep	2
host	yum -y install make gcc nmap-ncat

host	make clean
hout	RET CFLAGS="-Werror" make; echo $?
check	[ __RET__ -eq 0 ]

distro_quick_pasta_test_fedora34

hint
sleep	1


test	Fedora 35, aarch64

temp	IMG
host	wget https://download.fedoraproject.org/pub/fedora/linux/releases/35/Cloud/aarch64/images/Fedora-Cloud-Base-35-1.2.aarch64.qcow2 -O __IMG__
host	virt-edit -a __IMG__ /usr/lib/systemd/system/serial-getty@.service -e 's/ExecStart=.*/ExecStart=\/sbin\/agetty --autologin root -8 --keep-baud 115200,38400,9600 %I $TERM/g'
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-config.service
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-init.service
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-init-local.service
host	guestfish --rw -a __IMG__ -i rm /usr/lib/systemd/system/cloud-final.service
host	guestfish --rw -a __IMG__ -i copy-in __GUEST_FILES__ /root/

host	./qrap 5 qemu-system-aarch64 -m 2048 -cpu cortex-a57 -smp 2 -M virt -bios /usr/share/qemu-efi-aarch64/QEMU_EFI.fd -nodefaults -nographic -vga none -serial stdio __IMG__ -net socket,fd=5 -net nic,model=virtio -device virtio-rng-pci
host	PS1='$ '
sleep	2
host	yum -y install make gcc nmap-ncat

host	make clean
hout	RET CFLAGS="-Werror" make; echo $?
check	[ __RET__ -eq 0 ]

distro_quick_pasta_test_fedora34

hint
sleep	1
hostb	reset
sleep	1
host	echo


host	kill __PID__

debug log:

solving b7f1e3b ...
found b7f1e3b in https://archives.passt.top/passt-dev/20220610023245.845652-2-david@gibson.dropbear.id.au/
found f2f8f27 in https://passt.top/passt
preparing index
index prepared:
100644 f2f8f279af2aeb6e166f68976b95ceabaed1853b	test/distro/fedora

applying [1/1] https://archives.passt.top/passt-dev/20220610023245.845652-2-david@gibson.dropbear.id.au/
diff --git a/test/distro/fedora b/test/distro/fedora
index f2f8f27..b7f1e3b 100644

Checking patch test/distro/fedora...
Applied patch test/distro/fedora cleanly.

index at:
100644 b7f1e3b1b3ab429cfb4f0e7ff4c024aa5d035f2d	test/distro/fedora

Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).