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


View this message in rfc822 format

From: Reuben Thomas <rrt <at> sc3d.org>
To: Stefano Lattarini <stefano.lattarini <at> gmail.com>
Cc: 11863 <at> debbugs.gnu.org
Subject: bug#11863: Building test plugins
Date: Wed, 4 Jul 2012 23:39:11 +0100
On 4 July 2012 23:35, Stefano Lattarini <stefano.lattarini <at> gmail.com> wrote:
> 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"?

The library is built, but no .so.

Maybe some traces will help show the difference.

With libalientest.la in pkglib_LTLIBRARIES:

$ make check
  CC     tests/alientest.lo
  CC     src/alien.lo
  CCLD   tests/libalientest.la
  CCLD   src/alien_c.la
make
make[1]: Entering directory `/home/rrt/repo/alien'
make  all-am
make[2]: Entering directory `/home/rrt/repo/alien'
make[2]: Leaving directory `/home/rrt/repo/alien'
make[1]: Leaving directory `/home/rrt/repo/alien'
make  check-local
make[1]: Entering directory `/home/rrt/repo/alien'
cp src/.libs/alien_c.so src/
cd tests && LUA_INIT= LUA_PATH="/home/rrt/repo/alien/src/?.lua;;"
LUA_CPATH="/home/rrt/repo/alien/src/?.so;;"
LD_LIBRARY_PATH="/home/rrt/repo/alien/tests/.libs"
/home/rrt/local/x86_64/bin/lua test_alien.lua
/home/rrt/repo/alien/tests
................................................
tests completed OK!
rm -f src/alien_c.so

With libalientest.la in check_LTLIBRARIES:

$ make check
  CC     src/alien.lo
  CCLD   src/alien_c.la
make  tests/libalientest.la
make[1]: Entering directory `/home/rrt/repo/alien'
  CC     tests/alientest.lo
  CCLD   tests/libalientest.la
make[1]: Leaving directory `/home/rrt/repo/alien'
make  check-local
make[1]: Entering directory `/home/rrt/repo/alien'
cp src/.libs/alien_c.so src/
cd tests && LUA_INIT= LUA_PATH="/home/rrt/repo/alien/src/?.lua;;"
LUA_CPATH="/home/rrt/repo/alien/src/?.so;;"
LD_LIBRARY_PATH="/home/rrt/repo/alien/tests/.libs"
/home/rrt/local/x86_64/bin/lua test_alien.lua
/home/rrt/repo/alien/tests
/home/rrt/local/x86_64/bin/lua: /home/rrt/repo/alien/src/alien.lua:73:
library alientest not found
stack traceback:
	[C]: in function 'error'
	/home/rrt/repo/alien/src/alien.lua:73: in function '?'
	/home/rrt/repo/alien/src/alien.lua:93: in function
</home/rrt/repo/alien/src/alien.lua:92>
	/home/rrt/repo/alien/src/alien.lua:99: in function 'load'
	test_alien.lua:3: in main chunk
	[C]: ?
make[1]: *** [check-local] Error 1
make[1]: Leaving directory `/home/rrt/repo/alien'
make: *** [check-am] Error 2

-- 
http://rrt.sc3d.org




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.