Skip to content

Commit ca194ab

Browse files
committed
Add a test to check multiple authentication in greeters works
1 parent d2d70b2 commit ca194ab

File tree

3 files changed

+59
-0
lines changed

3 files changed

+59
-0
lines changed

tests/Makefile.am

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ TESTS = \
113113
test-login-remote-session-gobject \
114114
test-login-session-crash \
115115
test-login-xserver-crash \
116+
test-multiple-authenticate \
116117
test-xserver-no-share \
117118
test-home-dir-on-authenticate \
118119
test-home-dir-on-session \
@@ -510,6 +511,7 @@ EXTRA_DIST = \
510511
scripts/mir-session.conf \
511512
scripts/mir-session-compositor-crash.conf \
512513
scripts/mir-session-crash.conf \
514+
scripts/multiple-authenticate.conf \
513515
scripts/multi-seat.conf \
514516
scripts/multi-seat-change-graphical.conf \
515517
scripts/multi-seat-change-graphical-disabled.conf \
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
#
2+
# Check can do many authentications from a greeter
3+
#
4+
5+
[Seat:*]
6+
user-session=default
7+
8+
#?*START-DAEMON
9+
#?RUNNER DAEMON-START
10+
11+
# X server starts
12+
#?XSERVER-0 START VT=7 SEAT=seat0
13+
14+
# Daemon connects when X server is ready
15+
#?*XSERVER-0 INDICATE-READY
16+
#?XSERVER-0 INDICATE-READY
17+
#?XSERVER-0 ACCEPT-CONNECT
18+
19+
# Greeter starts
20+
#?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter
21+
#?LOGIN1 ACTIVATE-SESSION SESSION=c0
22+
#?XSERVER-0 ACCEPT-CONNECT
23+
#?GREETER-X-0 CONNECT-XSERVER
24+
#?GREETER-X-0 CONNECT-TO-DAEMON
25+
#?GREETER-X-0 CONNECTED-TO-DAEMON
26+
27+
# Start authentication, but switch user before it is complete
28+
#?*GREETER-X-0 AUTHENTICATE USERNAME=have-password1
29+
#?GREETER-X-0 SHOW-PROMPT TEXT="Password:"
30+
31+
# Authenticate and complete, but don't start session
32+
#?*GREETER-X-0 AUTHENTICATE USERNAME=have-password2
33+
#?GREETER-X-0 SHOW-PROMPT TEXT="Password:"
34+
#?*GREETER-X-0 RESPOND TEXT="password"
35+
#?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=have-password2 AUTHENTICATED=TRUE
36+
37+
# Authenticate and login
38+
#?*GREETER-X-0 AUTHENTICATE USERNAME=have-password3
39+
#?GREETER-X-0 SHOW-PROMPT TEXT="Password:"
40+
#?*GREETER-X-0 RESPOND TEXT="password"
41+
#?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=have-password3 AUTHENTICATED=TRUE
42+
#?*GREETER-X-0 START-SESSION
43+
#?GREETER-X-0 TERMINATE SIGNAL=15
44+
45+
# Session starts
46+
#?SESSION-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_GREETER_DATA_DIR=.*/have-password3 XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=have-password3
47+
#?LOGIN1 ACTIVATE-SESSION SESSION=c1
48+
#?XSERVER-0 ACCEPT-CONNECT
49+
#?SESSION-X-0 CONNECT-XSERVER
50+
51+
# Cleanup
52+
#?*STOP-DAEMON
53+
#?SESSION-X-0 TERMINATE SIGNAL=15
54+
#?XSERVER-0 TERMINATE SIGNAL=15
55+
#?RUNNER DAEMON-EXIT STATUS=0

tests/test-multiple-authenticate

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
./src/dbus-env ./src/test-runner multiple-authenticate test-gobject-greeter

0 commit comments

Comments
 (0)