New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to set up and/or use Busted properly? #286
Comments
Yes, I stumbled upon that, too. Even tried to fix it for busted v.2, but something wasn't quite working. |
I was thinking of doing something like that, but I figured I'd ask first. The only alternative I could think of is to compile/set up LuaRocks itself in place with some custom buildflags. A quick look at the configure script suggests something like |
Do you have libssl1.0.0 installed? Zyre depends on libssl. We build libssl.so.1.0.0 and libcrypto.so.1.0.0 in koreader-base but use system installed ones at running time because we assume they are installed on regular system. Probably my assumption is wrong then we need to install these two lib into the koreader/libs directory. |
I have both libssl 0.9.8 and 1.0.0 installed on that (X)ubuntu laptop. |
The error in the screen shot that is relevant is mainly this: |
Huh, there's an interesting difference. My desktop, Debian Jessie:
My laptop, Xubuntu 14.10:
Sticking
Anyway, busted itself is now running okay on my laptop. I now get three "proper" test failures.
PS On my much faster desktop I'm still stuck, unfortunately. Although I removed busted and then installed v1.10 it doesn't seem to like flags |
Oh, yes, the JPEG errors. Will check those. They are the result from reworking the pic module for JPEGs. I had the same error, and I got it off by removing even the last trace of busted-2. In vain, I must have tried a bit too much, and I just killed luarocks and all its packages completely, then reinstalled luarocks and busted (v.1.10). |
This will stop linking and (trying to) using mupdf in libk2pdfopt. We didn't use the functionality anyway, and it produced funny error messages (see koreader#288, koreader#286). Needs koreader/libk2pdfopt#24 Fixes koreader#288
This will stop linking and (trying to) using mupdf in libk2pdfopt. We didn't use the functionality anyway, and it produced funny error messages (see koreader#288, koreader#286). Needs koreader/libk2pdfopt#24 Fixes koreader#288
I'm still getting the same error after running I tried to succinctly compile the information in https://github.com/koreader/koreader-base/wiki/Unit-testing |
I suggest you check twice what busted (and busted_bootstrap) executable is there. IIRC, the uninstall via luarocks left some things, and I really made sure to remove any traces of busted and other luarocks stuff by hand ("rm", that is). |
I think the error must be related to luarocks 2.2.0 in Debian Jessie vs 2.0.9 in Ubuntu 14.10. It would appear that the newer luarocks ties in more closely with whatever Lua it was "installed" with or something. I'd already double-checked that everything was removed, but as it turns out #!/bin/sh
exec '/usr/bin/lua5.1' -e 'package.path="/root/.luarocks/share/lua/5.1/?.lua;/root/.luarocks/share/lua/5.1/?/init.lua;/usr/local/share/lua/5.1/?.lua;/usr/local/share/lua/5.1/?/init.lua;"..package.path; package.cpath="/root/.luarocks/lib/lua/5.1/?.so;/usr/local/lib/lua/5.1/?.so;"..package.cpath' -e 'local k,l,_=pcall(require,"luarocks.loader") _=k and l.add_context("busted","1.11.1-0")' '/usr/local/lib/luarocks/rocks/busted/1.11.1-0/bin/busted_bootstrap' "$@" So I fixed the problem manually with My desktop runs the tests significantly faster. 9 seconds for Edit: oh, 2.0.9 does the same thing for the main Edit 2: also see lunarmodules/busted#290 |
Okay, so I found a solution. In the rockspec, add these lines:
For v2 that allows for the slightly roundabout |
Oh, great! Maybe we should fork busted, even if just for the sake of updating the rockspec or the wrapper, respectively? |
It looks like besides through individual rockspecs, wrappers can also be disabled in luarock's global config file (see at the bottom here). Whatever's the most convenient. If you wanted to use busted v2 in the Travis VM it'd probably suffice to stick in something like |
Please refer to the ci scripts. |
make test
uses the-l
flag which seems to have been removed. I winged it for util_spec.lua by defining the function in my test file itself, but for more complicated stuff that won't do. Besides, I imagine this will affect the automated builds as well at some point in the future.The text was updated successfully, but these errors were encountered: