test-script-hooks \
test-script-hook-fail-display-setup \
test-script-hook-fail-greeter-setup \
+ test-script-hook-fail-session-setup \
test-switch-to-greeter \
test-switch-to-guest \
test-switch-to-user \
scripts/script-hooks.conf \
scripts/script-hook-fail-display-setup.conf \
scripts/script-hook-fail-greeter-setup.conf \
+ scripts/script-hook-fail-session-setup.conf \
scripts/switch-to-greeter.conf \
scripts/switch-to-guest.conf \
scripts/switch-to-user.conf \
--- /dev/null
+#
+# Check LightDM stops returns to the greeter if the session setup script fails
+#
+
+[SeatDefaults]
+session-setup-script=test-script-hook SESSION-SETUP 1
+autologin-user=alice
+
+#?RUNNER DAEMON-START
+
+# One X server should start by default
+#?XSERVER :50 START
+#?XSERVER :50 INDICATE-READY
+
+# LightDM connects to X server
+#?XSERVER :50 ACCEPT-CONNECT
+
+# Setup script fails
+#?SCRIPT-HOOK SESSION-SETUP
+
+# Greeter starts
+#?GREETER START
+#?XSERVER :50 ACCEPT-CONNECT
+#?GREETER CONNECT-XSERVER :50
+#?GREETER CONNECT-TO-DAEMON
+#?GREETER CONNECTED-TO-DAEMON
+
+# Cleanup
+#?*STOP-DAEMON
+# Don't know what order they will terminate
+#?(GREETER TERMINATE SIGNAL=15|XSERVER :50 TERMINATE SIGNAL=15)
+#?(GREETER TERMINATE SIGNAL=15|XSERVER :50 TERMINATE SIGNAL=15)
+#?RUNNER DAEMON-EXIT STATUS=0