summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/Makefile.am2
-rw-r--r--tests/scripts/switch-to-users.conf67
-rwxr-xr-xtests/test-switch-to-users2
3 files changed, 71 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index cfce7bb0..8a3d9c89 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -50,6 +50,7 @@ TESTS = \
test-switch-to-greeter \
test-switch-to-guest \
test-switch-to-user \
+ test-switch-to-users \
test-switch-to-user-existing-session \
test-switch-to-user-no-password \
test-switch-to-user-logout \
@@ -141,6 +142,7 @@ EXTRA_DIST = \
scripts/switch-to-greeter.conf \
scripts/switch-to-guest.conf \
scripts/switch-to-user.conf \
+ scripts/switch-to-users.conf \
scripts/switch-to-user-existing-session.conf \
scripts/switch-to-user-logout.conf \
scripts/switch-to-user-no-password.conf \
diff --git a/tests/scripts/switch-to-users.conf b/tests/scripts/switch-to-users.conf
new file mode 100644
index 00000000..e7c5f4e2
--- /dev/null
+++ b/tests/scripts/switch-to-users.conf
@@ -0,0 +1,67 @@
+#
+# Check that switching to multiple users works
+#
+
+[LightDM]
+minimum-display-number=50
+
+[SeatDefaults]
+autologin-user=alice
+
+#?RUNNER DAEMON-START
+#?*WAIT
+
+# X server starts
+#?XSERVER :50 START
+#?XSERVER :50 INDICATE-READY
+
+# LightDM connects to X server
+#?XSERVER :50 ACCEPT-CONNECT
+
+# Session starts
+#?SESSION :50 START USER=alice
+#?XSERVER :50 ACCEPT-CONNECT
+#?SESSION :50 CONNECT-XSERVER
+
+# Switch to Bob's account
+#?*SWITCH-TO-USER USERNAME=bob
+#?RUNNER SWITCH-TO-USER USERNAME=bob
+
+# New X server starts
+#?XSERVER :51 START
+#?XSERVER :51 INDICATE-READY
+
+# LightDM connects to X server
+#?XSERVER :51 ACCEPT-CONNECT
+
+# New session starts
+#?SESSION :51 START USER=bob
+#?XSERVER :51 ACCEPT-CONNECT
+#?SESSION :51 CONNECT-XSERVER
+
+# Switch to Carol's account
+#?*SWITCH-TO-USER USERNAME=carol
+#?RUNNER SWITCH-TO-USER USERNAME=carol
+
+# New X server starts
+#?XSERVER :52 START
+#?XSERVER :52 INDICATE-READY
+
+# LightDM connects to X server
+#?XSERVER :52 ACCEPT-CONNECT
+
+# New session starts
+#?SESSION :52 START NAME=alternative USER=carol
+#?XSERVER :52 ACCEPT-CONNECT
+#?SESSION :52 CONNECT-XSERVER
+
+# Cleanup
+#?*STOP-DAEMON
+# Don't know what order they will terminate
+#?(SESSION :50 TERMINATE SIGNAL=15|XSERVER :50 TERMINATE SIGNAL=15|SESSION :51 TERMINATE SIGNAL=15|XSERVER :51 TERMINATE SIGNAL=15|SESSION :52 TERMINATE SIGNAL=15|XSERVER :52 TERMINATE SIGNAL=15)
+#?(SESSION :50 TERMINATE SIGNAL=15|XSERVER :50 TERMINATE SIGNAL=15|SESSION :51 TERMINATE SIGNAL=15|XSERVER :51 TERMINATE SIGNAL=15|SESSION :52 TERMINATE SIGNAL=15|XSERVER :52 TERMINATE SIGNAL=15)
+#?(SESSION :50 TERMINATE SIGNAL=15|XSERVER :50 TERMINATE SIGNAL=15|SESSION :51 TERMINATE SIGNAL=15|XSERVER :51 TERMINATE SIGNAL=15|SESSION :52 TERMINATE SIGNAL=15|XSERVER :52 TERMINATE SIGNAL=15)
+#?(SESSION :50 TERMINATE SIGNAL=15|XSERVER :50 TERMINATE SIGNAL=15|SESSION :51 TERMINATE SIGNAL=15|XSERVER :51 TERMINATE SIGNAL=15|SESSION :52 TERMINATE SIGNAL=15|XSERVER :52 TERMINATE SIGNAL=15)
+#?(SESSION :50 TERMINATE SIGNAL=15|XSERVER :50 TERMINATE SIGNAL=15|SESSION :51 TERMINATE SIGNAL=15|XSERVER :51 TERMINATE SIGNAL=15|SESSION :52 TERMINATE SIGNAL=15|XSERVER :52 TERMINATE SIGNAL=15)
+#?(SESSION :50 TERMINATE SIGNAL=15|XSERVER :50 TERMINATE SIGNAL=15|SESSION :51 TERMINATE SIGNAL=15|XSERVER :51 TERMINATE SIGNAL=15|SESSION :52 TERMINATE SIGNAL=15|XSERVER :52 TERMINATE SIGNAL=15)
+#?RUNNER DAEMON-EXIT STATUS=0
diff --git a/tests/test-switch-to-users b/tests/test-switch-to-users
new file mode 100755
index 00000000..913e7bbc
--- /dev/null
+++ b/tests/test-switch-to-users
@@ -0,0 +1,2 @@
+#!/bin/sh
+./src/dbus-env ./src/test-runner switch-to-users test-gobject-greeter