summaryrefslogtreecommitdiff
path: root/tests/scripts/session-stderr-backup.conf
blob: 7f7a12a2676fcce68f64e5740d3a4ff4f10baa84 (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
#
# Check session log is backed up and restart on second login
#

[SeatDefaults]
autologin-user=no-password1
user-session=default

#?RUNNER DAEMON-START

# X server starts
#?XSERVER-0 START VT=7
#?XSERVER-0 INDICATE-READY

# LightDM connects to X server
#?XSERVER-0 ACCEPT-CONNECT

# Session starts
#?SESSION-X-0 START USER=no-password1
#?XSERVER-0 ACCEPT-CONNECT
#?SESSION-X-0 CONNECT-XSERVER

# Write to stderr and check it shows up in the log
#?*SESSION-X-0 WRITE-STDERR TEXT=FIRST-SESSION
#?*SESSION-X-0 READ FILE=.xsession-errors
#?SESSION-X-0 READ FILE=.xsession-errors TEXT=FIRST-SESSION

# Restart session
#?*SESSION-X-0 LOGOUT
#?XSERVER-0 TERMINATE SIGNAL=15
#?XSERVER-0 START VT=7
#?XSERVER-0 INDICATE-READY
#?XSERVER-0 ACCEPT-CONNECT
#?GREETER-X-0 START
#?XSERVER-0 ACCEPT-CONNECT
#?GREETER-X-0 CONNECT-XSERVER
#?GREETER-X-0 CONNECT-TO-DAEMON
#?GREETER-X-0 CONNECTED-TO-DAEMON
#?*GREETER-X-0 AUTHENTICATE USERNAME=no-password1
#?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=no-password1 AUTHENTICATED=TRUE
#?*GREETER-X-0 START-SESSION
#?GREETER-X-0 TERMINATE SIGNAL=15
#?SESSION-X-0 START USER=no-password1
#?XSERVER-0 ACCEPT-CONNECT
#?SESSION-X-0 CONNECT-XSERVER

# Write to stderr and check it shows up in the log
#?*SESSION-X-0 WRITE-STDERR TEXT=SECOND-SESSION
#?*SESSION-X-0 READ FILE=.xsession-errors
#?SESSION-X-0 READ FILE=.xsession-errors TEXT=SECOND-SESSION

# Check first log is backed up
#?*SESSION-X-0 READ FILE=.xsession-errors.old
#?SESSION-X-0 READ FILE=.xsession-errors.old TEXT=FIRST-SESSION

# Restart session
#?*SESSION-X-0 LOGOUT
#?XSERVER-0 TERMINATE SIGNAL=15
#?XSERVER-0 START VT=7
#?XSERVER-0 INDICATE-READY
#?XSERVER-0 ACCEPT-CONNECT
#?GREETER-X-0 START
#?XSERVER-0 ACCEPT-CONNECT
#?GREETER-X-0 CONNECT-XSERVER
#?GREETER-X-0 CONNECT-TO-DAEMON
#?GREETER-X-0 CONNECTED-TO-DAEMON
#?*GREETER-X-0 AUTHENTICATE USERNAME=no-password1
#?GREETER-X-0 AUTHENTICATION-COMPLETE USERNAME=no-password1 AUTHENTICATED=TRUE
#?*GREETER-X-0 START-SESSION
#?GREETER-X-0 TERMINATE SIGNAL=15
#?SESSION-X-0 START USER=no-password1
#?XSERVER-0 ACCEPT-CONNECT
#?SESSION-X-0 CONNECT-XSERVER

# Write to stderr and check it shows up in the log
#?*SESSION-X-0 WRITE-STDERR TEXT=THIRD-SESSION
#?*SESSION-X-0 READ FILE=.xsession-errors
#?SESSION-X-0 READ FILE=.xsession-errors TEXT=THIRD-SESSION

# Check second log is backed up
#?*SESSION-X-0 READ FILE=.xsession-errors.old
#?SESSION-X-0 READ FILE=.xsession-errors.old TEXT=SECOND-SESSION

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