After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 754694 - Disable just gdk-pixbuf test when unavailable
Disable just gdk-pixbuf test when unavailable
Status: RESOLVED OBSOLETE
Product: gom
Classification: Other
Component: general
unspecified
Other Mac OS
: Normal normal
: ---
Assigned To: Gom Maintainers
Gom Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-09-07 16:06 UTC by Tom Schoonjans
Modified: 2019-03-20 10:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (1.16 KB, patch)
2015-09-07 16:06 UTC, Tom Schoonjans
committed Details | Review
patch (2.23 KB, patch)
2015-09-08 15:12 UTC, Tom Schoonjans
needs-work Details | Review

Description Tom Schoonjans 2015-09-07 16:06:27 UTC
When compiling gom on a system without gdk-pixbuf I noticed that configure
should have automatically disabled the testsuite but didn't, which
resulted in a compile-time error due to a missing gdk-pixbuf header.
This patch introduces ENABLE_GLIB_TEST in tests/Makefile.include, fixing
the aforementioned issue.
Comment 1 Tom Schoonjans 2015-09-07 16:06:59 UTC
Created attachment 310840 [details] [review]
patch
Comment 2 Bastien Nocera 2015-09-08 14:49:34 UTC
Review of attachment 310840 [details] [review]:

::: tests/Makefile.include
@@ +1,1 @@
+if ENABLE_GLIB_TEST

No, we should run all the tests but the one that requires gdk-pixbuf, and not none of them.
Comment 3 Tom Schoonjans 2015-09-08 15:12:41 UTC
Created attachment 310912 [details] [review]
patch

fair enough

I created a new patch that puts the automake conditional around the lines involving test-gom-transform, which appears to be the only test relying on gdk-pixbuf.
Comment 4 Bastien Nocera 2015-09-08 15:22:14 UTC
Actually, your first patch was right. We should have a separate conditional for whether gdk-pixbuf is available or not.
Comment 5 Bastien Nocera 2015-09-08 15:25:09 UTC
Comment on attachment 310840 [details] [review]
patch

commit 51eeff0ce27e2762c889fd106c4cd1bfb39e9fff
Author: Tom Schoonjans <Tom.Schoonjans@bam.de>
Date:   Mon Sep 7 18:03:48 2015 +0200

    build: Don't build tests when tests are disabled
    
    --disable-glibtest should disable all the tests. As we do the equivalent
    of passing that flag when gdk-pixbuf is not available, make sure not to
    try and build tests when gdk-pixbuf is unavailable.
    
    In the future, we should just disable the gdk-pixbuf requiring test when
    it's not available, instead of disabling all the tests.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=754694
Comment 6 Bastien Nocera 2015-09-08 15:25:37 UTC
Retitling and leaving open.
Comment 7 GNOME Infrastructure Team 2019-03-20 10:40:19 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gom/issues/18.