diff options
author | Robert Ancell <robert.ancell@canonical.com> | 2012-03-01 09:23:45 +1100 |
---|---|---|
committer | Robert Ancell <robert.ancell@canonical.com> | 2012-03-01 09:23:45 +1100 |
commit | cf181582bced69d8ce0ebf4b8e983486da7e8bb8 (patch) | |
tree | a818cbf19fac485597b7d2ab05b33a895daede0d /tests | |
parent | 1d2018779aba3f22029a9de0ecb5ee43f47c4cb8 (diff) | |
download | lightdm-cf181582bced69d8ce0ebf4b8e983486da7e8bb8.tar.gz |
Add missing test files
Diffstat (limited to 'tests')
-rw-r--r-- | tests/scripts/autologin-crash-authenticate.conf | 34 | ||||
-rw-r--r-- | tests/scripts/login-crash-authenticate.conf | 34 | ||||
-rwxr-xr-x | tests/test-autologin-crash-authenticate | 2 | ||||
-rwxr-xr-x | tests/test-login-crash-authenticate | 2 |
4 files changed, 72 insertions, 0 deletions
diff --git a/tests/scripts/autologin-crash-authenticate.conf b/tests/scripts/autologin-crash-authenticate.conf new file mode 100644 index 00000000..259d7265 --- /dev/null +++ b/tests/scripts/autologin-crash-authenticate.conf @@ -0,0 +1,34 @@ +# +# Check authentication crash on autologin is handled +# + +[LightDM] +minimum-display-number=50 + +[SeatDefaults] +autologin-user=crash-authenticate + +#?RUNNER DAEMON-START + +# X server starts +#?XSERVER :50 START +#?XSERVER :50 INDICATE-READY + +# LightDM connects to X server +#?XSERVER :50 ACCEPT-CONNECT + +# (authentication crashes) + +# Greeter starts +#?GREETER :50 START +#?XSERVER :50 ACCEPT-CONNECT +#?GREETER :50 CONNECT-XSERVER +#?GREETER :50 CONNECT-TO-DAEMON +#?GREETER :50 CONNECTED-TO-DAEMON + +# Cleanup +#?*STOP-DAEMON +# Don't know what order they will terminate +#?(GREETER :50 TERMINATE SIGNAL=15|XSERVER :50 TERMINATE SIGNAL=15) +#?(GREETER :50 TERMINATE SIGNAL=15|XSERVER :50 TERMINATE SIGNAL=15) +#?RUNNER DAEMON-EXIT STATUS=0 diff --git a/tests/scripts/login-crash-authenticate.conf b/tests/scripts/login-crash-authenticate.conf new file mode 100644 index 00000000..2673a4a9 --- /dev/null +++ b/tests/scripts/login-crash-authenticate.conf @@ -0,0 +1,34 @@ +# +# Check returned to greeter when authentication crashes +# + +[LightDM] +minimum-display-number=50 + +#?RUNNER DAEMON-START + +# X server starts +#?XSERVER :50 START +#?XSERVER :50 INDICATE-READY + +# LightDM connects to X server +#?XSERVER :50 ACCEPT-CONNECT + +# Greeter starts +#?GREETER :50 START +#?XSERVER :50 ACCEPT-CONNECT +#?GREETER :50 CONNECT-XSERVER +#?GREETER :50 CONNECT-TO-DAEMON +#?GREETER :50 CONNECTED-TO-DAEMON + +# Attempt to login, but authentication crashes +#?*GREETER :50 AUTHENTICATE USERNAME=crash-authenticate +#?GREETER :50 AUTHENTICATION-COMPLETE USERNAME=crash-authenticate AUTHENTICATED=FALSE + +# Cleanup +#?*STOP-DAEMON +# Don't know what order they will terminate +#?(GREETER :50 TERMINATE SIGNAL=15|XSERVER :50 TERMINATE SIGNAL=15) +#?(GREETER :50 TERMINATE SIGNAL=15|XSERVER :50 TERMINATE SIGNAL=15) +#?RUNNER DAEMON-EXIT STATUS=0 + diff --git a/tests/test-autologin-crash-authenticate b/tests/test-autologin-crash-authenticate new file mode 100755 index 00000000..57f537bc --- /dev/null +++ b/tests/test-autologin-crash-authenticate @@ -0,0 +1,2 @@ +#!/bin/sh +./src/dbus-env ./src/test-runner autologin-crash-authenticate test-gobject-greeter diff --git a/tests/test-login-crash-authenticate b/tests/test-login-crash-authenticate new file mode 100755 index 00000000..c81dd596 --- /dev/null +++ b/tests/test-login-crash-authenticate @@ -0,0 +1,2 @@ +#!/bin/sh +./src/dbus-env ./src/test-runner login-crash-authenticate test-gobject-greeter |