GNU bug report logs - #11863
Building test plugins

Previous Next

Package: automake;

Reported by: Reuben Thomas <rrt <at> sc3d.org>

Date: Wed, 4 Jul 2012 20:49:02 UTC

Severity: normal

Tags: confirmed, help

Full log


Message #8 received at 11863 <at> debbugs.gnu.org (full text, mbox):

From: Stefano Lattarini <stefano.lattarini <at> gmail.com>
To: Reuben Thomas <rrt <at> sc3d.org>
Cc: 11863 <at> debbugs.gnu.org
Subject: Re: bug#11863: Building test plugins
Date: Thu, 05 Jul 2012 00:35:13 +0200
tags 11863 + moreinfo
thanks

On 07/04/2012 10:43 PM, Reuben Thomas wrote:
> I have a library that I want to build just for tests. Hence, I add it
> to check_LTLIBRARIES. It's a plugin, so I want the .so (or .dll or
> whatever) to be built, but it isn't!
>
It isn't built when you run "make check"?  That is a bug.
It isn't built when you run "make all"?  That is a expected.

As the documentation says:

   The special prefix 'check_' indicates that the objects in question
   should not be built until the "make check" command is run.  Those
   objects are not installed either.

> If I instead add the library to pkglib_LTLIBRARIES, then the shared
> object is built, but the test library is installed, which is not what
> I want.
> 
> Reading the automake & libtool manuals, I can't see anything about
> what exactly triggers building of the shared object; can someone tell
> me what I should do in this instance to get a shared object for tests
> only?
> 

HTH,
  Stefano




This bug report was last modified 4 years and 207 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.