diff options
author | Robert Ancell <robert.ancell@canonical.com> | 2013-10-15 17:11:32 +1300 |
---|---|---|
committer | Robert Ancell <robert.ancell@canonical.com> | 2013-10-15 17:11:32 +1300 |
commit | 4b345e1fb5472343ad3ed5ae67b9b54e50f46df2 (patch) | |
tree | ca82a464cdfa18c9a5602b51405e2396d619769b /tests | |
parent | ee1617190bd951d1973c2b7f3f20d408d1bbff06 (diff) | |
download | lightdm-4b345e1fb5472343ad3ed5ae67b9b54e50f46df2.tar.gz |
Add a test to check manual logins remember the last session chosen
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Makefile.am | 5 | ||||
-rw-r--r-- | tests/scripts/login-manual-remember-session.conf | 73 |
2 files changed, 78 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index 03c0a54f..c5cbe85a 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -80,6 +80,7 @@ TESTS = \ test-login-gobject-multi-prompt \ test-login-gobject-pick-session \ test-login-gobject-remember-session \ + test-login-gobject-manual-remember-session \ test-login-gobject-previous-session \ test-login-gobject-wrong-password \ test-login-gobject-invalid-user \ @@ -187,6 +188,7 @@ TESTS += \ test-login-python-logout \ test-login-python-pick-session \ test-login-python-remember-session \ + test-login-python-manual-remember-session \ test-login-python-guest \ test-login-python-guest-disabled \ test-login-python-guest-no-setup-script \ @@ -222,6 +224,7 @@ TESTS += \ test-login-qt4-logout \ test-login-qt4-pick-session \ test-login-qt4-remember-session \ + test-login-qt4-manual-remember-session \ test-login-qt4-guest \ test-login-qt4-guest-disabled \ test-login-qt4-guest-no-setup-script \ @@ -257,6 +260,7 @@ TESTS += \ test-login-qt5-logout \ test-login-qt5-pick-session \ test-login-qt5-remember-session \ + test-login-qt5-manual-remember-session \ test-login-qt5-guest \ test-login-qt5-guest-disabled \ test-login-qt5-guest-no-setup-script \ @@ -359,6 +363,7 @@ EXTRA_DIST = \ scripts/login-long-password.conf \ scripts/login-manual.conf \ scripts/login-manual-previous-session.conf \ + scripts/login-manual-remember-session.conf \ scripts/login-multi-info-prompt.conf \ scripts/login-multi-prompt.conf \ scripts/login-new-authtok.conf \ diff --git a/tests/scripts/login-manual-remember-session.conf b/tests/scripts/login-manual-remember-session.conf new file mode 100644 index 00000000..4efaa7f0 --- /dev/null +++ b/tests/scripts/login-manual-remember-session.conf @@ -0,0 +1,73 @@ +# +# Check when logging in manually the session logged in as is remembered the second time a login occurs +# + +#?RUNNER DAEMON-START + +# X server starts +#?XSERVER-0 START VT=7 + +# Daemon connects when X server is ready +#?*XSERVER-0 INDICATE-READY +#?XSERVER-0 INDICATE-READY +#?XSERVER-0 ACCEPT-CONNECT + +# Greeter starts +#?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 +#?XSERVER-0 ACCEPT-CONNECT +#?GREETER-X-0 CONNECT-XSERVER +#?GREETER-X-0 CONNECT-TO-DAEMON +#?GREETER-X-0 CONNECTED-TO-DAEMON + +# Login and pick a session +#?*GREETER-X-0 AUTHENTICATE +#?GREETER-X-0 SHOW-PROMPT TEXT="login:" +#?*GREETER-X-0 RESPOND TEXT="no-password1" +#?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=no-password1 AUTHENTICATED=TRUE +#?*GREETER-X-0 START-SESSION SESSION=alternative +#?GREETER-X-0 TERMINATE SIGNAL=15 + +# Session starts +#?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 DESKTOP_SESSION=alternative NAME=alternative USER=no-password1 +#?XSERVER-0 ACCEPT-CONNECT +#?SESSION-X-0 CONNECT-XSERVER + +# Logout session +#?*SESSION-X-0 LOGOUT + +# X server stops +#?XSERVER-0 TERMINATE SIGNAL=15 + +# X server starts +#?XSERVER-0 START VT=7 + +# Daemon connects when X server is ready +#?*XSERVER-0 INDICATE-READY +#?XSERVER-0 INDICATE-READY +#?XSERVER-0 ACCEPT-CONNECT + +# Greeter starts +#?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 +#?XSERVER-0 ACCEPT-CONNECT +#?GREETER-X-0 CONNECT-XSERVER +#?GREETER-X-0 CONNECT-TO-DAEMON +#?GREETER-X-0 CONNECTED-TO-DAEMON + +# Log into account without specifying a session +#?*GREETER-X-0 AUTHENTICATE +#?GREETER-X-0 SHOW-PROMPT TEXT="login:" +#?*GREETER-X-0 RESPOND TEXT="no-password1" +#?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=no-password1 AUTHENTICATED=TRUE +#?*GREETER-X-0 START-SESSION +#?GREETER-X-0 TERMINATE SIGNAL=15 + +# Session starts +#?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 DESKTOP_SESSION=alternative NAME=alternative USER=no-password1 +#?XSERVER-0 ACCEPT-CONNECT +#?SESSION-X-0 CONNECT-XSERVER + +# Cleanup +#?*STOP-DAEMON +#?SESSION-X-0 TERMINATE SIGNAL=15 +#?XSERVER-0 TERMINATE SIGNAL=15 +#?RUNNER DAEMON-EXIT STATUS=0 |