From aae809550c33e7d401254ff344b62895f3d71105 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Georges=20Dup=C3=A9ron?= Date: Sun, 15 Jul 2018 16:45:04 +0200 Subject: [PATCH] macos: setup /tmp/.X11-unix and take screenshots in Xvfb --- Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a69b194..00d9668 100644 --- a/Makefile +++ b/Makefile @@ -392,6 +392,14 @@ build/test_pass/sudo_iso_mount: ${os_filename} build/check_makefile | build/mnt_ .PHONY: test/macos test/macos: build/check_makefile | deploy-screenshots - xvfb-run sh -c "dterm -e 'echo hello; sleep 30' & sleep 5; import -window root deploy-screenshots/macos.png" + sudo mkdir /tmp/.X11-unix + sudo chmod 1777 /tmp/.X11-unix + xvfb :42 & \ + sleep 10; \ + DISPLAY=:42 xterm -e 'sh -c "echo hello; sleep 30"' & \ + sleep 5; \ + DISPLAY=:42 import -window root deploy-screenshots/macos.png + ls -l deploy-screenshots/ + identify deploy-screenshots/* || true # See https://wiki.osdev.org/EFI#Emulation to emulate an UEFI system with qemu, to test the EFI boot from hdd / cd / fd (?).