t2sde/tests/110-xvfb-xev.cmd
René Rebe 307cadbae9 * imported unit tests from int repo
git-svn-id: https://svn.exactcode.de/t2/trunk@69305 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc
2024-06-04 14:42:09 +00:00

14 lines
263 B
Batchfile

#!/bin/bash
[ "$QEMU" ] || exit 42
# TODO: uniq DISPLAY, timing?
export DISPLAY=:667
Xvfb $DISPLAY -screen 0 640x480x16 &
$QEMU -chroot $SYSROOT usr/X11/bin/xev >/dev/null 2>&1 &
sleep 1
import -window root -crop 24x24-0+0 -compress none pnm:-
kill %2
kill %1