Commit 104637b3 authored by Jeremy White's avatar Jeremy White Committed by Frediano Ziglio
Browse files

Add a very basic test for our OpenGL enabled driver.

Acked-by: Frediano Ziglio's avatarFrediano Ziglio <>
parent 45481c52
......@@ -37,6 +37,10 @@ int main(int argc, char *argv[])
g_test_add("/x11spice/x11perf1", xdummy_t, "x11perf1", start_server, test_script, stop_server);
#if defined(SPICEDUMMY)
g_test_add("/x11spice/piglit1", xdummy_t, "piglit1", start_server, test_script, stop_server);
return g_test_run();
# x11spice test script
# This will receive 4 arguments:
# $1 - Test X display, with a spice server attached
# $2 - Client X display, upon which we can run spicy
# $3 - Spice URI to connect to the spice server on $1
# $4 - Directory we can use for logs and scratch info
# Note that it's also important that this script monitor itself;
# there is no external timeout mechanism
which piglit 2>/dev/null
if [ $? -ne 0 ] ; then
echo piglit not available, skipping
exit 77
echo Running piglit to see how we perform
spicy --display $2 --uri=$3 &
DISPLAY=:1 piglit run sanity $4/piglit
ps -p $spid >/dev/null 2>&1
if [ $? -ne 0 ] ; then
echo Spice client not running. That is an error.
exit 1
kill $spid
exit $rc
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment