I don't think we can integrate this with make check, and I'd rather
work on a modesetting-driver-as-headless-testing-environment series
for long term testing of glamor on hardware drivers.  Until then, this
should help driver developers get testing done of glamor on their
chip.

On my Skylake, this takes 12 minutes to run the test suite.

Signed-off-by: Eric Anholt <[email protected]>
---

This is a followup patch to my previous testing series.

 test/Makefile.am                      |  1 +
 test/scripts/xephyr-glamor-on-host.sh | 12 ++++++++++++
 2 files changed, 13 insertions(+)
 create mode 100755 test/scripts/xephyr-glamor-on-host.sh

diff --git a/test/Makefile.am b/test/Makefile.am
index c89915c41348..ae6595050b37 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -170,6 +170,7 @@ EXTRA_DIST = \
        $(SCRIPT_TESTS) \
        scripts/xinit-piglit-session.sh \
        scripts/run-piglit.sh \
+       scripts/xephyr-glamor-on-host.sh \
        ddxstubs.c \
        $(NULL)
 
diff --git a/test/scripts/xephyr-glamor-on-host.sh 
b/test/scripts/xephyr-glamor-on-host.sh
new file mode 100755
index 000000000000..f3669bebfd79
--- /dev/null
+++ b/test/scripts/xephyr-glamor-on-host.sh
@@ -0,0 +1,12 @@
+# Start a Xephyr server using glamor.  This assumes that you have an
+# existing X Server to host the Xephyr -glamor instance.
+export 
PIGLIT_RESULTS_DIR=$XSERVER_BUILDDIR/test/piglit-results/host-xephyr-glamor
+
+export SERVER_COMMAND="$XSERVER_BUILDDIR/hw/kdrive/ephyr/Xephyr \
+        -glamor \
+        -glamor-skip-present \
+        -noreset \
+        -schedMax 2000 \
+        -screen 1280x1024"
+
+exec $XSERVER_DIR/test/scripts/run-piglit.sh
-- 
2.9.3

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: https://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to