~lightdm-team/lightdm/1.10

« back to all changes in this revision

Viewing changes to tests/test-power-no-login1-or-console-kit

  • Committer: Robert Ancell
  • Date: 2017-01-12 02:34:24 UTC
  • Revision ID: robert.ancell@canonical.com-20170112023424-sa0gtyqw7qganpk7
Use power management functions from ConsoleKit2 if available.

Suspend and hibernate functionality was removed from upower 0.99.0, so systems
not using systemd had now suspend/hibernate functionality. Support for this
was added into ConsoleKit2.

Most systems will either be systemd or ConsoleKit2 now, so we try the following:
1. Power management in logind
2. Power management in ConsoleKit
3. upower for suspend/resume (really only here to not break backwards
   compatibility)

Based on a patch for Gentoo by Fitzcarraldo.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
./src/dbus-env ./src/test-runner power-no-login1-or-console-kit test-gobject-greeter