Public bug reported:

The issue of the tests not being run was raised at both MIRs for this
package LP: #1282372 and LP: #1685411

I tried to enable the test using dh_auto_test but I still couldn't get
it to work. I'm attaching the patch I used for the packaging and the
full build log.

https://github.com/hughsie/colord-gtk/blob/master/libcolord-gtk/cd-self-
test.c

Build Log Excerpt
=================
make[5]: Entering directory '/<<PKGBUILDDIR>>/libcolord-gtk'
Activating service name='org.a11y.Bus'

(process:11432): dconf-CRITICAL **: unable to create directory
'/run/user/1000/dconf': Permission denied.  dconf will not work
properly.

(process:11432): dconf-CRITICAL **: unable to create directory
'/run/user/1000/dconf': Permission denied.  dconf will not work
properly.

(process:11432): dconf-CRITICAL **: unable to create directory
'/run/user/1000/dconf': Permission denied.  dconf will not work
properly.

(process:11432): dconf-CRITICAL **: unable to create directory
'/run/user/1000/dconf': Permission denied.  dconf will not work
properly.

(process:11432): dconf-CRITICAL **: unable to create directory 
'/run/user/1000/dconf': Permission denied.  dconf will not work properly.
Successfully activated service 'org.a11y.Bus'

(process:11432): dconf-CRITICAL **: unable to create directory 
'/run/user/1000/dconf': Permission denied.  dconf will not work properly.
Activating service name='org.a11y.atspi.Registry'
Successfully activated service 'org.a11y.atspi.Registry'
SpiRegistry daemon is running with well-known name - org.a11y.atspi.Registry
../test-driver: line 107: 11413 Aborted                 (core dumped) "$@" > 
$log_file 2>&1
FAIL: cd-self-test
=====================================================
   colord-gtk 0.1.26: libcolord-gtk/test-suite.log
=====================================================

# TOTAL: 1
# PASS:  0
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: cd-self-test
==================

/colord/window: Gtk-Message: GtkDialog mapped without a transient parent. This 
is discouraged.
**
libcolord-gtk:ERROR:cd-self-test.c:45:cd_window_get_profile_cb: assertion 
failed (error == NULL): failed to connect to colord: Could not connect: No such 
file or directory (cd_window_error, 0)
FAIL cd-self-test (exit status: 134)

** Affects: colord-gtk (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: patch

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to colord-gtk in Ubuntu.
https://bugs.launchpad.net/bugs/1690706

Title:
  Tests are not being run

Status in colord-gtk package in Ubuntu:
  New

Bug description:
  The issue of the tests not being run was raised at both MIRs for this
  package LP: #1282372 and LP: #1685411

  I tried to enable the test using dh_auto_test but I still couldn't get
  it to work. I'm attaching the patch I used for the packaging and the
  full build log.

  https://github.com/hughsie/colord-gtk/blob/master/libcolord-gtk/cd-
  self-test.c

  Build Log Excerpt
  =================
  make[5]: Entering directory '/<<PKGBUILDDIR>>/libcolord-gtk'
  Activating service name='org.a11y.Bus'

  (process:11432): dconf-CRITICAL **: unable to create directory
  '/run/user/1000/dconf': Permission denied.  dconf will not work
  properly.

  (process:11432): dconf-CRITICAL **: unable to create directory
  '/run/user/1000/dconf': Permission denied.  dconf will not work
  properly.

  (process:11432): dconf-CRITICAL **: unable to create directory
  '/run/user/1000/dconf': Permission denied.  dconf will not work
  properly.

  (process:11432): dconf-CRITICAL **: unable to create directory
  '/run/user/1000/dconf': Permission denied.  dconf will not work
  properly.

  (process:11432): dconf-CRITICAL **: unable to create directory 
'/run/user/1000/dconf': Permission denied.  dconf will not work properly.
  Successfully activated service 'org.a11y.Bus'

  (process:11432): dconf-CRITICAL **: unable to create directory 
'/run/user/1000/dconf': Permission denied.  dconf will not work properly.
  Activating service name='org.a11y.atspi.Registry'
  Successfully activated service 'org.a11y.atspi.Registry'
  SpiRegistry daemon is running with well-known name - org.a11y.atspi.Registry
  ../test-driver: line 107: 11413 Aborted                 (core dumped) "$@" > 
$log_file 2>&1
  FAIL: cd-self-test
  =====================================================
     colord-gtk 0.1.26: libcolord-gtk/test-suite.log
  =====================================================

  # TOTAL: 1
  # PASS:  0
  # SKIP:  0
  # XFAIL: 0
  # FAIL:  1
  # XPASS: 0
  # ERROR: 0

  .. contents:: :depth: 2

  FAIL: cd-self-test
  ==================

  /colord/window: Gtk-Message: GtkDialog mapped without a transient parent. 
This is discouraged.
  **
  libcolord-gtk:ERROR:cd-self-test.c:45:cd_window_get_profile_cb: assertion 
failed (error == NULL): failed to connect to colord: Could not connect: No such 
file or directory (cd_window_error, 0)
  FAIL cd-self-test (exit status: 134)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/colord-gtk/+bug/1690706/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to