summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2015-10-14 18:18:06 +0100
committerRobert Ancell <robert.ancell@canonical.com>2015-10-14 18:18:06 +0100
commit36d17853cfa1ee90f2f9d2a15ec53bd2310da82d (patch)
treee67f16869e76628f80c96e8a4db60ba7c0106ae6
parentca760030892392ffb499f13b502da713b5a74ad6 (diff)
downloadlightdm-36d17853cfa1ee90f2f9d2a15ec53bd2310da82d.tar.gz
Add xremote tests
-rw-r--r--tests/Makefile.am4
-rw-r--r--tests/scripts/xremote-autologin.conf30
-rw-r--r--tests/scripts/xremote-login.conf45
-rwxr-xr-xtests/test-xremote-autologin2
-rwxr-xr-xtests/test-xremote-login2
5 files changed, 83 insertions, 0 deletions
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