diff options
author | Robert Ancell <robert.ancell@canonical.com> | 2014-10-02 19:51:36 +1300 |
---|---|---|
committer | Robert Ancell <robert.ancell@canonical.com> | 2014-10-02 19:51:36 +1300 |
commit | 5a19c7b681ff7f421936212d0bbdcc5143353830 (patch) | |
tree | 9f7d83ec3fb4ad2d972d8dba3e0a17acde7fea3d /tests | |
parent | 971e959a342a80f845fdc49a8f794bd1b51bde21 (diff) | |
parent | 35c190062e8db1ff6872e4073df86838dec8e061 (diff) | |
download | lightdm-5a19c7b681ff7f421936212d0bbdcc5143353830.tar.gz |
Match seat configuration using globbing
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Makefile.am | 2 | ||||
-rw-r--r-- | tests/scripts/multi-seat-globbing-config-sections.conf | 105 | ||||
-rwxr-xr-x | tests/test-multi-seat-globbing-config-sections | 2 |
3 files changed, 109 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index c28f1a51..2f0087d3 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -187,6 +187,7 @@ TESTS = \ test-multi-seat-non-graphical-disabled \ test-multi-seat-change-graphical \ test-multi-seat-change-graphical-disabled \ + test-multi-seat-globbing-config-sections \ test-mir-autologin \ test-mir-greeter \ test-mir-session \ @@ -460,6 +461,7 @@ EXTRA_DIST = \ scripts/multi-seat-non-graphical-disabled.conf \ scripts/multi-seat-seat0-non-graphical.conf \ scripts/multi-seat-seat0-non-graphical-disabled.conf \ + scripts/multi-seat-globbing-config-sections.conf \ scripts/no-accounts-service.conf \ scripts/no-config.conf \ scripts/no-console-kit.conf \ diff --git a/tests/scripts/multi-seat-globbing-config-sections.conf b/tests/scripts/multi-seat-globbing-config-sections.conf new file mode 100644 index 00000000..3109e649 --- /dev/null +++ b/tests/scripts/multi-seat-globbing-config-sections.conf @@ -0,0 +1,105 @@ +# +# Check can set globbing config sections matching different seats +# + +[Seat:*] +autologin-user=have-password1 +user-session=default + +[Seat:seat*Foo] +autologin-user-timeout=99 + +[Seat:seatAAAFoo] +autologin-user=have-password2 + +[Seat:seatBBB*] +autologin-user=have-password3 + +#?*START-DAEMON +#?RUNNER DAEMON-START + +# seat0 starts +#?XSERVER-0 START VT=7 SEAT=seat0 +#?*XSERVER-0 INDICATE-READY +#?XSERVER-0 INDICATE-READY +#?XSERVER-0 ACCEPT-CONNECT + +# Session starts for configured user +#?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password1 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password1 +#?LOGIN1 ACTIVATE-SESSION SESSION=c0 +#?XSERVER-0 ACCEPT-CONNECT +#?SESSION-X-0 CONNECT-XSERVER + +# Add seatAAAFoo +#?*ADD-SEAT ID=seatAAAFoo + +# seatAAAFoo starts +#?XSERVER-1 START SEAT=seatAAAFoo SHAREVTS=TRUE +#?*XSERVER-1 INDICATE-READY +#?XSERVER-1 INDICATE-READY +#?XSERVER-1 ACCEPT-CONNECT + +# Greeter starts +#?GREETER-X-1 START XDG_SEAT=seatAAAFoo XDG_SESSION_CLASS=greeter +#?LOGIN1 ACTIVATE-SESSION SESSION=c1 +#?XSERVER-1 ACCEPT-CONNECT +#?GREETER-X-1 CONNECT-XSERVER +#?GREETER-X-1 CONNECT-TO-DAEMON +#?GREETER-X-1 CONNECTED-TO-DAEMON + +# Greeter is requested to timeout +#?GREETER-X-1 AUTOLOGIN-USER USERNAME=have-password2 TIMEOUT=99 + +# Trigger autologin +#?*GREETER-X-1 AUTHENTICATE-AUTOLOGIN +#?GREETER-X-1 AUTHENTICATION-COMPLETE USERNAME=have-password2 AUTHENTICATED=TRUE +#?*GREETER-X-1 START-SESSION +#?GREETER-X-1 TERMINATE SIGNAL=15 + +# Session starts for configured user +#?SESSION-X-1 START XDG_SEAT=seatAAAFoo XDG_GREETER_DATA_DIR=.*/have-password2 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password2 +#?LOGIN1 ACTIVATE-SESSION SESSION=c2 +#?XSERVER-1 ACCEPT-CONNECT +#?SESSION-X-1 CONNECT-XSERVER + +# Add seatBBBFoo +#?*ADD-SEAT ID=seatBBBFoo + +# seatBBBFoo starts +#?XSERVER-2 START SEAT=seatBBBFoo SHAREVTS=TRUE +#?*XSERVER-2 INDICATE-READY +#?XSERVER-2 INDICATE-READY +#?XSERVER-2 ACCEPT-CONNECT + +# Greeter starts +#?GREETER-X-2 START XDG_SEAT=seatBBBFoo XDG_SESSION_CLASS=greeter +#?LOGIN1 ACTIVATE-SESSION SESSION=c3 +#?XSERVER-2 ACCEPT-CONNECT +#?GREETER-X-2 CONNECT-XSERVER +#?GREETER-X-2 CONNECT-TO-DAEMON +#?GREETER-X-2 CONNECTED-TO-DAEMON + +# Greeter is requested to timeout +#?GREETER-X-2 AUTOLOGIN-USER USERNAME=have-password3 TIMEOUT=99 + +# Trigger autologin +#?*GREETER-X-2 AUTHENTICATE-AUTOLOGIN +#?GREETER-X-2 AUTHENTICATION-COMPLETE USERNAME=have-password3 AUTHENTICATED=TRUE +#?*GREETER-X-2 START-SESSION +#?GREETER-X-2 TERMINATE SIGNAL=15 + +# Session starts for configured user +#?SESSION-X-2 START XDG_SEAT=seatBBBFoo XDG_GREETER_DATA_DIR=.*/have-password3 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password3 +#?LOGIN1 ACTIVATE-SESSION SESSION=c4 +#?XSERVER-2 ACCEPT-CONNECT +#?SESSION-X-2 CONNECT-XSERVER + +# Cleanup +#?*STOP-DAEMON +#?XSERVER-0 TERMINATE SIGNAL=15 +#?SESSION-X-0 TERMINATE SIGNAL=15 +#?XSERVER-1 TERMINATE SIGNAL=15 +#?SESSION-X-1 TERMINATE SIGNAL=15 +#?XSERVER-2 TERMINATE SIGNAL=15 +#?SESSION-X-2 TERMINATE SIGNAL=15 +#?RUNNER DAEMON-EXIT STATUS=0 diff --git a/tests/test-multi-seat-globbing-config-sections b/tests/test-multi-seat-globbing-config-sections new file mode 100755 index 00000000..674dbdfc --- /dev/null +++ b/tests/test-multi-seat-globbing-config-sections @@ -0,0 +1,2 @@ +#!/bin/sh +./src/dbus-env ./src/test-runner multi-seat-globbing-config-sections test-gobject-greeter |