test-plymouth-inactive-vt \
test-plymouth-no-seat \
test-script-hooks \
- test-script-hook-fail-display-setup \
- test-script-hook-fail-greeter-setup \
- test-script-hook-fail-session-setup \
+ test-script-hook-display-setup-fail \
+ test-script-hook-display-setup-missing \
+ test-script-hook-greeter-setup-fail \
+ test-script-hook-greeter-setup-missing \
+ test-script-hook-session-setup-fail \
+ test-script-hook-session-setup-missing \
test-shared-data-greeter-to-session \
test-shared-data-session-to-greeter \
test-shared-data-session-to-greeter-autologin \
scripts/shared-data-session-to-greeter.conf \
scripts/shared-data-session-to-greeter-autologin.conf \
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/script-hook-display-setup-fail.conf \
+ scripts/script-hook-display-setup-missing.conf \
+ scripts/script-hook-greeter-setup-fail.conf \
+ scripts/script-hook-greeter-setup-missing.conf \
+ scripts/script-hook-session-setup-fail.conf \
+ scripts/script-hook-session-setup-missing.conf \
scripts/session-stdout.conf \
scripts/session-stderr.conf \
scripts/session-stderr-multi-write.conf \
#
-# Check LightDM stops the display if the display setup script returns an error
+# Check LightDM stops if the display setup script returns an error
#
[SeatDefaults]
--- /dev/null
+#
+# Check LightDM stops if the display setup script is missing
+#
+
+[SeatDefaults]
+display-setup-script=test-script-hook-INVALID
+
+#?*START-DAEMON
+#?RUNNER DAEMON-START
+
+# One X server should start by default
+#?XSERVER-0 START VT=7 SEAT=seat0
+
+# Daemon connects when X server is ready
+#?*XSERVER-0 INDICATE-READY
+#?XSERVER-0 INDICATE-READY
+#?XSERVER-0 ACCEPT-CONNECT
+
+# Setup script fails
+
+#?XSERVER-0 TERMINATE SIGNAL=15
+
+# Cleanup
+#?RUNNER DAEMON-EXIT STATUS=1
#
-# Check LightDM stops the display if the display setup script returns an error
+# Check LightDM stops if the greeter setup script returns an error
#
[SeatDefaults]
--- /dev/null
+#
+# Check LightDM stops if the greeter setup script is missing
+#
+
+[SeatDefaults]
+greeter-setup-script=test-script-hook-INVALID
+
+#?*START-DAEMON
+#?RUNNER DAEMON-START
+
+# One X server should start by default
+#?XSERVER-0 START VT=7 SEAT=seat0
+
+# Daemon connects when X server is ready
+#?*XSERVER-0 INDICATE-READY
+#?XSERVER-0 INDICATE-READY
+#?XSERVER-0 ACCEPT-CONNECT
+
+# Setup script fails
+
+#?XSERVER-0 TERMINATE SIGNAL=15
+
+# Cleanup
+#?RUNNER DAEMON-EXIT STATUS=1
#
-# Check LightDM stops returns to the greeter if the session setup script fails
+# Check LightDM returns to the greeter if the session setup script fails
#
[SeatDefaults]
--- /dev/null
+#
+# Check LightDM returns to the greeter if the session setup script is missing
+#
+
+[SeatDefaults]
+session-setup-script=test-script-hook-INVALID
+autologin-user=have-password1
+user-session=default
+
+#?*START-DAEMON
+#?RUNNER DAEMON-START
+
+# One X server should start by default
+#?XSERVER-0 START VT=7 SEAT=seat0
+
+# Daemon connects when X server is ready
+#?*XSERVER-0 INDICATE-READY
+#?XSERVER-0 INDICATE-READY
+#?XSERVER-0 ACCEPT-CONNECT
+
+# Setup script fails
+
+# Greeter starts
+#?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter
+#?XSERVER-0 ACCEPT-CONNECT
+#?GREETER-X-0 CONNECT-XSERVER
+#?GREETER-X-0 CONNECT-TO-DAEMON
+#?GREETER-X-0 CONNECTED-TO-DAEMON
+#?GREETER-X-0 SELECT-USER-HINT USERNAME=have-password1
+
+# Cleanup
+#?*STOP-DAEMON
+#?GREETER-X-0 TERMINATE SIGNAL=15
+#?XSERVER-0 TERMINATE SIGNAL=15
+#?RUNNER DAEMON-EXIT STATUS=0
--- /dev/null
+#!/bin/sh
+./src/dbus-env ./src/test-runner script-hook-display-setup-fail test-gobject-greeter
--- /dev/null
+#!/bin/sh
+./src/dbus-env ./src/test-runner script-hook-display-setup-missing test-gobject-greeter
+++ /dev/null
-#!/bin/sh
-./src/dbus-env ./src/test-runner script-hook-fail-display-setup test-gobject-greeter
+++ /dev/null
-#!/bin/sh
-./src/dbus-env ./src/test-runner script-hook-fail-greeter-setup test-gobject-greeter
+++ /dev/null
-#!/bin/sh
-./src/dbus-env ./src/test-runner script-hook-fail-session-setup test-gobject-greeter
--- /dev/null
+#!/bin/sh
+./src/dbus-env ./src/test-runner script-hook-greeter-setup-fail test-gobject-greeter
--- /dev/null
+#!/bin/sh
+./src/dbus-env ./src/test-runner script-hook-greeter-setup-missing test-gobject-greeter
--- /dev/null
+#!/bin/sh
+./src/dbus-env ./src/test-runner script-hook-session-setup-fail test-gobject-greeter
--- /dev/null
+#!/bin/sh
+./src/dbus-env ./src/test-runner script-hook-session-setup-missing test-gobject-greeter