[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#11863: Building test plugins
From: |
Reuben Thomas |
Subject: |
bug#11863: Building test plugins |
Date: |
Wed, 4 Jul 2012 23:39:11 +0100 |
On 4 July 2012 23:35, Stefano Lattarini <address@hidden> 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