From 36d17853cfa1ee90f2f9d2a15ec53bd2310da82d Mon Sep 17 00:00:00 2001 From: Robert Ancell Date: Wed, 14 Oct 2015 18:18:06 +0100 Subject: Add xremote tests --- tests/Makefile.am | 4 ++++ tests/scripts/xremote-autologin.conf | 30 ++++++++++++++++++++++++ tests/scripts/xremote-login.conf | 45 ++++++++++++++++++++++++++++++++++++ tests/test-xremote-autologin | 2 ++ tests/test-xremote-login | 2 ++ 5 files changed, 83 insertions(+) create mode 100644 tests/scripts/xremote-autologin.conf create mode 100644 tests/scripts/xremote-login.conf create mode 100755 tests/test-xremote-autologin create mode 100755 tests/test-xremote-login diff --git a/tests/Makefile.am b/tests/Makefile.am index 08a15aa2..b4d73c65 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -169,6 +169,8 @@ TESTS = \ test-vnc-dimensions \ test-vnc-open-file-descriptors \ test-vnc-guest \ + test-xremote-autologin \ + test-xremote-login \ test-xdmcp-client \ test-xdmcp-server-autologin \ test-xdmcp-server-login \ @@ -591,6 +593,8 @@ EXTRA_DIST = \ scripts/xdmcp-server-guest.conf \ scripts/xdmcp-server-login.conf \ scripts/xdmcp-server-open-file-descriptors.conf \ + scripts/xremote-autologin.conf \ + scripts/xremote-login.conf \ scripts/xserver-config.conf \ scripts/xserver-fail-start.conf \ scripts/xserver-no-share.conf \ diff --git a/tests/scripts/xremote-autologin.conf b/tests/scripts/xremote-autologin.conf new file mode 100644 index 00000000..251a418c --- /dev/null +++ b/tests/scripts/xremote-autologin.conf @@ -0,0 +1,30 @@ +# +# Check can automatically log into a remote X server +# + +[Seat:*] +type=xremote +autologin-user=have-password1 +user-session=default +xserver-display-number=98 + +# Start a remote X server to use +#?*START-XSERVER ARGS=":98" +#?XSERVER-98 START LISTEN-TCP + +#?*START-DAEMON +#?RUNNER DAEMON-START + +# LightDM connects to X server +#?XSERVER-98 ACCEPT-CONNECT + +# Session starts +#?SESSION-X-127.0.0.1:98 START XDG_SEAT=seat0 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 +#?LOGIN1 ACTIVATE-SESSION SESSION=c0 +#?XSERVER-98 ACCEPT-CONNECT +#?SESSION-X-127.0.0.1:98 CONNECT-XSERVER + +# Cleanup +#?*STOP-DAEMON +#?SESSION-X-127.0.0.1:98 TERMINATE SIGNAL=15 +#?RUNNER DAEMON-EXIT STATUS=0 diff --git a/tests/scripts/xremote-login.conf b/tests/scripts/xremote-login.conf new file mode 100644 index 00000000..bdc81a91 --- /dev/null +++ b/tests/scripts/xremote-login.conf @@ -0,0 +1,45 @@ +# +# Check can log into a remote X server +# + +[Seat:*] +type=xremote +user-session=default +xserver-display-number=98 + +# Start a remote X server to use +#?*START-XSERVER ARGS=":98" +#?XSERVER-98 START LISTEN-TCP + +#?*START-DAEMON +#?RUNNER DAEMON-START + +# LightDM connects to X server +#?XSERVER-98 ACCEPT-CONNECT + +# Greeter starts +#?GREETER-X-127.0.0.1:98 START XDG_SEAT=seat0 XDG_SESSION_CLASS=greeter +#?LOGIN1 ACTIVATE-SESSION SESSION=c0 +#?XSERVER-98 ACCEPT-CONNECT +#?GREETER-X-127.0.0.1:98 CONNECT-XSERVER +#?GREETER-X-127.0.0.1:98 CONNECT-TO-DAEMON +#?GREETER-X-127.0.0.1:98 CONNECTED-TO-DAEMON + +# Log into account with a password +#?*GREETER-X-127.0.0.1:98 AUTHENTICATE USERNAME=have-password1 +#?GREETER-X-127.0.0.1:98 SHOW-PROMPT TEXT="Password:" +#?*GREETER-X-127.0.0.1:98 RESPOND TEXT="password" +#?GREETER-X-127.0.0.1:98 AUTHENTICATION-COMPLETE USERNAME=have-password1 AUTHENTICATED=TRUE +#?*GREETER-X-127.0.0.1:98 START-SESSION +#?GREETER-X-127.0.0.1:98 TERMINATE SIGNAL=15 + +# Session starts +#?SESSION-X-127.0.0.1:98 START XDG_SEAT=seat0 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 +#?LOGIN1 ACTIVATE-SESSION SESSION=c1 +#?XSERVER-98 ACCEPT-CONNECT +#?SESSION-X-127.0.0.1:98 CONNECT-XSERVER + +# Cleanup +#?*STOP-DAEMON +#?SESSION-X-127.0.0.1:98 TERMINATE SIGNAL=15 +#?RUNNER DAEMON-EXIT STATUS=0 diff --git a/tests/test-xremote-autologin b/tests/test-xremote-autologin new file mode 100755 index 00000000..4cf9f4cf --- /dev/null +++ b/tests/test-xremote-autologin @@ -0,0 +1,2 @@ +#!/bin/sh +./src/dbus-env ./src/test-runner xremote-autologin test-gobject-greeter diff --git a/tests/test-xremote-login b/tests/test-xremote-login new file mode 100755 index 00000000..cab0b5bd --- /dev/null +++ b/tests/test-xremote-login @@ -0,0 +1,2 @@ +#!/bin/sh +./src/dbus-env ./src/test-runner xremote-login test-gobject-greeter -- cgit v1.2.1