]> rtime.felk.cvut.cz Git - sojka/lightdm.git/commitdiff
Add a test for Plymouth working in Unity seat
authorRobert Ancell <robert.ancell@canonical.com>
Fri, 19 Jul 2013 11:03:29 +0000 (23:03 +1200)
committerRobert Ancell <robert.ancell@canonical.com>
Fri, 19 Jul 2013 11:03:29 +0000 (23:03 +1200)
tests/Makefile.am
tests/scripts/unity-plymouth.conf [new file with mode: 0644]
tests/test-unity-plymouth [new file with mode: 0755]

index b24f3bca066f6de1530e4641797b7a243c4ef02a..232a24b073744b7580bfaf723a4a7f4439c0fec5 100644 (file)
@@ -161,7 +161,8 @@ TESTS = \
        test-unity-compositor-fail-ready \
        test-unity-autologin \
        test-unity-login \
-       test-unity-switch
+       test-unity-switch \
+       test-unity-plymouth
 
 #      test-session-exit-error
 #      test-greeter-no-exit
@@ -368,6 +369,7 @@ EXTRA_DIST = \
        scripts/unity-compositor-fail-ready.conf \
        scripts/unity-compositor-fail-start.conf \
        scripts/unity-login.conf \
+       scripts/unity-plymouth.conf \
        scripts/unity-switch.conf \
        scripts/users.conf \
        scripts/util-path.conf \
diff --git a/tests/scripts/unity-plymouth.conf b/tests/scripts/unity-plymouth.conf
new file mode 100644 (file)
index 0000000..879785e
--- /dev/null
@@ -0,0 +1,49 @@
+#
+# Check Plymouth quits when Unity System compositor server is started.  Plymouth is on an active VT so it handshakes with u-s-c.
+#
+
+[SeatDefaults]
+type=unity
+autologin-user=have-password1
+user-session=default
+
+[test-plymouth-config]
+enabled=true
+has-active-vt=true
+active=true
+
+#?RUNNER DAEMON-START
+
+# Check if Plymouth is running
+#?PLYMOUTH PING ACTIVE=TRUE
+#?PLYMOUTH HAS-ACTIVE-VT=TRUE
+#?PLYMOUTH DEACTIVATE
+
+# System compositor starts
+#?UNITY-SYSTEM-COMPOSITOR START VT=7
+#?*UNITY-SYSTEM-COMPOSITOR READY
+
+# Plymouth quits but keeps image in framebuffer
+#?PLYMOUTH QUIT RETAIN-SPLASH=TRUE
+
+# X server starts
+#?XSERVER-0 START MIR-ID=0
+#?XSERVER-0 INDICATE-READY
+   
+# LightDM connects to X server
+#?XSERVER-0 ACCEPT-CONNECT
+
+# Session starts
+#?SESSION-X-0 START USER=have-password1
+#?XSERVER-0 ACCEPT-CONNECT
+#?SESSION-X-0 CONNECT-XSERVER
+
+# System compositor switches to session
+#?UNITY-SYSTEM-COMPOSITOR SET-ACTIVE-SESSION ID=0
+
+# Cleanup
+#?*STOP-DAEMON
+#?SESSION-X-0 TERMINATE SIGNAL=15
+#?XSERVER-0 TERMINATE SIGNAL=15
+#?UNITY-SYSTEM-COMPOSITOR TERMINATE SIGNAL=15
+#?RUNNER DAEMON-EXIT STATUS=0
diff --git a/tests/test-unity-plymouth b/tests/test-unity-plymouth
new file mode 100755 (executable)
index 0000000..a6fd8ed
--- /dev/null
@@ -0,0 +1,2 @@
+#!/bin/sh
+./src/dbus-env ./src/test-runner unity-plymouth test-gobject-greeter