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 697644 - Support --disable-tests
Support --disable-tests
Status: RESOLVED OBSOLETE
Product: gobject-introspection
Classification: Platform
Component: build
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gobject-introspection Maintainer(s)
gobject-introspection Maintainer(s)
Depends on:
Blocks: 697669
 
 
Reported: 2013-04-09 14:50 UTC by Kouhei Sutou
Modified: 2018-02-08 12:21 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Support --disable-tests (3.60 KB, patch)
2013-04-09 14:50 UTC, Kouhei Sutou
reviewed Details | Review

Description Kouhei Sutou 2013-04-09 14:50:40 UTC
Created attachment 241061 [details] [review]
Support --disable-tests

I noticed that configure reports "tests: " like

    gobject-introspection 1.36.0
    ===============

    tests: 

at the end.

I confirmed configure.ac but I don't find --enable-tests nor --disable-tests configuration.

I assume that developers wanted to support --enable-tests/--disable-tests but they are busy. So I've implemented it. See the attached patch for details. The default behavior is "--enable-tests". It is the same behavior as the current behavior.
Comment 1 Colin Walters 2013-04-09 16:21:16 UTC
Review of attachment 241061 [details] [review]:

Thanks for the patch!  You're right the developers are busy =)

Wouldn't it be simpler to just do in Makefile.am:

if ENABLE_TESTS
SUBDIRS += tests
endif

?
Comment 2 Dieter Verfaillie 2013-04-10 08:37:48 UTC
(In reply to comment #1)
> if ENABLE_TESTS
> SUBDIRS += tests
> endif

Wouldn't that break the installation of test sources
into "$(datadir)/gobject-introspection-1.0/tests" ?

afaik at least pygobject and gjs expect gimarshallingtests.[c|h]
and regress.[c|h] to live there unconditionally, gjs also wants
warnlib.[c|h]
Comment 3 Matthias Clasen 2013-04-10 10:48:41 UTC
That sounds really suboptimal. If pygobject and gjs want to use innards of glib tests, the should ship a copy.
Comment 4 Colin Walters 2013-04-10 11:58:46 UTC
(In reply to comment #3)
> That sounds really suboptimal. If pygobject and gjs want to use innards of glib
> tests, the should ship a copy.

Yeah, the current situation is...awkward.  Hmm.  Honestly I'd rather work on installed tests than try to incrementally improve the current situation, so...let's go with dieterv's patch from bug 697669.
Comment 5 Kouhei Sutou 2013-04-10 13:42:59 UTC
(In reply to comment #1)
> Review of attachment 241061 [details] [review]:
> 
> Thanks for the patch!  You're right the developers are busy =)

OK. :-)

> Wouldn't it be simpler to just do in Makefile.am:
> 
> if ENABLE_TESTS
> SUBDIRS += tests
> endif

We can implement --disable-tests by the approach.
Different between the approach and the attached patch approach is occurred in "make dist". The approach doesn't put tests directory into tar.xz. The attached patch approach puts tests directory into tar.xz. You can run "make check" with tar.xz that is created by "./configure --disable-tests --enable-gtk-doc && make && make dist".

If we require "--enable-tests" (it is the default) for "make dist", the approach is reasonable.
Comment 6 Emmanuele Bassi (:ebassi) 2013-04-10 14:11:58 UTC
(In reply to comment #5)
> (In reply to comment #1)
> > Review of attachment 241061 [details] [review] [details]:
> > 
> > Thanks for the patch!  You're right the developers are busy =)
> 
> OK. :-)
> 
> > Wouldn't it be simpler to just do in Makefile.am:
> > 
> > if ENABLE_TESTS
> > SUBDIRS += tests
> > endif
> 
> We can implement --disable-tests by the approach.
> Different between the approach and the attached patch approach is occurred in
> "make dist". The approach doesn't put tests directory into tar.xz. The attached
> patch approach puts tests directory into tar.xz.

you can use DIST_SUBDIRS for that, e.g.:

  if ENABLE_TESTS
  SUBDIRS += tests
  endif

  DIST_SUBDIRS += tests
Comment 7 André Klapper 2015-02-07 17:17:48 UTC
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]
Comment 8 GNOME Infrastructure Team 2018-02-08 12:21:29 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/gobject-introspection/issues/84.