From 1d974525bff380e48c57bf8f10046cbad8801ae0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Georges=20Dup=C3=A9ron?= <georges.duperon@gmail.com>
Date: Sun, 15 Jul 2018 13:21:18 +0200
Subject: [PATCH] macos: trying gui stuff

---
 .travis.yml | 2 +-
 Makefile    | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/.travis.yml b/.travis.yml
index b5ec50a..1e48245 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -98,7 +98,7 @@ matrix:
             - dosbox
     - os: osx
       env: MODE=osx-test # Ensure that the Makefile works. Check that the generated os.bat works in sh mode
-      install: make all
+      install: make all test/noemu test/macos
       # TODO: install sikulix
       # TODO: test in SH mode
 
diff --git a/Makefile b/Makefile
index ad5945b..a69b194 100644
--- a/Makefile
+++ b/Makefile
@@ -390,4 +390,8 @@ build/test_pass/sudo_iso_mount: ${os_filename} build/check_makefile | build/mnt_
 	sudo umount build/mnt_iso
 	touch $@
 
+.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"
+
 # See https://wiki.osdev.org/EFI#Emulation to emulate an UEFI system with qemu, to test the EFI boot from hdd / cd / fd (?).