summaryrefslogtreecommitdiff
path: root/tests/scripts/user-logged-in.conf
blob: 1f9a8b6bef03a26cd9eb217aa6485ef8c31b2935 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#
# Check user marked as logged in
#

[Seat:*]
user-session=default

[test-greeter-config]
log-user-changes=true

#?*START-DAEMON
#?RUNNER DAEMON-START

# X server starts
#?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

# Greeter starts
#?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter
#?LOGIN1 ACTIVATE-SESSION SESSION=c0
#?XSERVER-0 ACCEPT-CONNECT
#?GREETER-X-0 CONNECT-XSERVER
#?GREETER-X-0 CONNECT-TO-DAEMON
#?GREETER-X-0 CONNECTED-TO-DAEMON

# Check not marked as logged in
#?*GREETER-X-0 LOG-USER USERNAME=prop-user FIELDS=LOGGED-IN
#?GREETER-X-0 LOG-USER USERNAME=prop-user LOGGED-IN=FALSE

# Log into account
#?*GREETER-X-0 AUTHENTICATE USERNAME=prop-user
#?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=prop-user 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 XDG_GREETER_DATA_DIR=.*/prop-user XDG_SESSION_TYPE=x11 XDG_SESSION_DESKTOP=default USER=prop-user
#?LOGIN1 ACTIVATE-SESSION SESSION=c1
#?XSERVER-0 ACCEPT-CONNECT
#?SESSION-X-0 CONNECT-XSERVER

# Switch to greeter
#?*SWITCH-TO-GREETER
#?RUNNER SWITCH-TO-GREETER

# New X server starts
#?XSERVER-1 START VT=8 SEAT=seat0

# Daemon connects when X server is ready
#?*XSERVER-1 INDICATE-READY
#?XSERVER-1 INDICATE-READY
#?XSERVER-1 ACCEPT-CONNECT

# Session is locked
#?LOGIN1 LOCK-SESSION SESSION=c1

# Greeter starts
#?GREETER-X-1 START XDG_SEAT=seat0 XDG_VTNR=8 XDG_SESSION_CLASS=greeter
#?XSERVER-1 ACCEPT-CONNECT
#?GREETER-X-1 CONNECT-XSERVER
#?GREETER-X-1 CONNECT-TO-DAEMON
#?GREETER-X-1 CONNECTED-TO-DAEMON

# Switch to greeter
#?LOGIN1 ACTIVATE-SESSION SESSION=c2
#?VT ACTIVATE VT=8

# Watch a user for properties changes
#?*GREETER-X-1 WATCH-USER USERNAME=prop-user
#?GREETER-X-1 WATCH-USER USERNAME=prop-user

# Check marked as logged in
#?*GREETER-X-1 LOG-USER USERNAME=prop-user FIELDS=LOGGED-IN
#?GREETER-X-1 LOG-USER USERNAME=prop-user LOGGED-IN=TRUE

# Logout session
#?*SESSION-X-0 LOGOUT
#?XSERVER-0 TERMINATE SIGNAL=15

# Check not marked as logged in
#?GREETER-X-1 USER-CHANGED USERNAME=prop-user
#?*GREETER-X-1 LOG-USER USERNAME=prop-user FIELDS=LOGGED-IN
#?GREETER-X-1 LOG-USER USERNAME=prop-user LOGGED-IN=FALSE

# Cleanup
#?*STOP-DAEMON
#?GREETER-X-1 TERMINATE SIGNAL=15
#?XSERVER-1 TERMINATE SIGNAL=15
#?RUNNER DAEMON-EXIT STATUS=0