Skip to content

Commit 142fc8e

Browse files
committed
Add a basic test to confirm multi-seat works
1 parent 90de1bc commit 142fc8e

File tree

3 files changed

+46
-0
lines changed

3 files changed

+46
-0
lines changed

tests/Makefile.am

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ TESTS = \
164164
test-gobject-power-no-services \
165165
test-open-file-descriptors \
166166
test-xdmcp-server-open-file-descriptors \
167+
test-multi-seat \
167168
test-mir-autologin \
168169
test-mir-greeter \
169170
test-mir-session \
@@ -418,6 +419,7 @@ EXTRA_DIST = \
418419
scripts/mir-session.conf \
419420
scripts/mir-session-compositor-crash.conf \
420421
scripts/mir-session-crash.conf \
422+
scripts/multi-seat.conf \
421423
scripts/no-accounts-service.conf \
422424
scripts/no-config.conf \
423425
scripts/no-console-kit.conf \

tests/scripts/multi-seat.conf

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
#
2+
# Check can run two seats at once
3+
#
4+
5+
[Seat:0]
6+
xdg-seat=seat0
7+
8+
[Seat:1]
9+
xdg-seat=seat1
10+
11+
#?*START-DAEMON
12+
#?RUNNER DAEMON-START
13+
14+
# Seat0 starts
15+
#?XSERVER-0 START VT=7 SEAT=seat0
16+
#?*XSERVER-0 INDICATE-READY
17+
#?XSERVER-0 INDICATE-READY
18+
#?XSERVER-0 ACCEPT-CONNECT
19+
#?GREETER-X-0 START XDG_SEAT=seat0 XDG_VTNR=7 XDG_SESSION_CLASS=greeter
20+
#?XSERVER-0 ACCEPT-CONNECT
21+
#?GREETER-X-0 CONNECT-XSERVER
22+
#?GREETER-X-0 CONNECT-TO-DAEMON
23+
#?GREETER-X-0 CONNECTED-TO-DAEMON
24+
25+
# Seat1 starts (can't use VTs)
26+
#?XSERVER-1 START SEAT=seat1
27+
#?*XSERVER-1 INDICATE-READY
28+
#?XSERVER-1 INDICATE-READY
29+
#?XSERVER-1 ACCEPT-CONNECT
30+
#?GREETER-X-1 START XDG_SEAT=seat1 XDG_SESSION_CLASS=greeter
31+
#?XSERVER-1 ACCEPT-CONNECT
32+
#?GREETER-X-1 CONNECT-XSERVER
33+
#?GREETER-X-1 CONNECT-TO-DAEMON
34+
#?GREETER-X-1 CONNECTED-TO-DAEMON
35+
36+
# Cleanup
37+
#?*STOP-DAEMON
38+
#?GREETER-X-0 TERMINATE SIGNAL=15
39+
#?GREETER-X-1 TERMINATE SIGNAL=15
40+
#?XSERVER-0 TERMINATE SIGNAL=15
41+
#?XSERVER-1 TERMINATE SIGNAL=15
42+
#?RUNNER DAEMON-EXIT STATUS=0

tests/test-multi-seat

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 multi-seat test-gobject-greeter

0 commit comments

Comments
 (0)