~lightdm-team/lightdm/1.2

« back to all changes in this revision

Viewing changes to tests/scripts/corrupt-xauthority.conf

  • Committer: Robert Ancell
  • Date: 2013-10-07 22:11:29 UTC
  • Revision ID: robert.ancell@canonical.com-20131007221129-s9k58mh46nr1od6h
Add regression test for corrupt X authority files

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# Check can login if existing corrupt authority present
 
3
#
 
4
 
 
5
[SeatDefaults]
 
6
autologin-user=corrupt-xauth
 
7
user-session=default
 
8
 
 
9
#?RUNNER DAEMON-START
 
10
 
 
11
# X server starts
 
12
#?XSERVER-0 START VT=7
 
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
# Session starts
 
20
#?SESSION-X-0 START XDG_SESSION_COOKIE=ck-cookie-x:0 USER=corrupt-xauth
 
21
#?XSERVER-0 ACCEPT-CONNECT
 
22
#?SESSION-X-0 CONNECT-XSERVER
 
23
 
 
24
# Check where the X authority is
 
25
#?*SESSION-X-0 READ-ENV NAME=XAUTHORITY
 
26
#?SESSION-X-0 READ-ENV NAME=XAUTHORITY VALUE=.*/home/corrupt-xauth/.Xauthority
 
27
 
 
28
# Check has correct permissions
 
29
#?*SESSION-X-0 CHECK-X-AUTHORITY
 
30
#?SESSION-X-0 CHECK-X-AUTHORITY MODE=rw-------
 
31
 
 
32
# Cleanup
 
33
#?*STOP-DAEMON
 
34
#?SESSION-X-0 TERMINATE SIGNAL=15
 
35
#?XSERVER-0 TERMINATE SIGNAL=15
 
36
#?RUNNER DAEMON-EXIT STATUS=0