#!/bin/bash # The manual walk of a display's window on macOS: every entry of # crates/reims-vgpu-window/features.md up to "On Linux", plus the refresh # rate on a ProMotion screen, on vmapple boots, at the Mac, in an unlocked # session. About 15 minutes. It walks SDL3's window by default; IMPL=appkit # walks AppKit's, to compare. # # scripts/internal/walk_window_macos.sh [VM_DIR] # # VM_DIR is a vmapple guest that logs in by itself (default # ~/Projects/macos-gpu-re/guest-26). Each boot runs on a fresh APFS clone of # it under OUT, so the guest itself is never written; each clone is deleted # when its boot ends, and OUT (the logs) at the end unless KEEP=1. # # Each step says what to do and what should happen; answer with Enter or p # (as described), f (not as described: a note is asked for), or s (skipped: # a reason is asked for). Steps a unit test already holds say so, and only # need a look. The script measures what it can itself: the window's and the # guest's frame rates (REIMS_VGPU_STATS), the screen's refresh rate, # screendump, and QEMU's exit. The results go to RESULTS, printed at the # end; send that file. # # Environment: # QEMU qemu-system-aarch64 linked with this checkout's library # (default build/qemu's: make qemu) # IMPL sdl (default) or appkit: REIMS_VGPU_WINDOW_IMPL # OUT the clones, logs and results (default /tmp/rvg-walk-