You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to enable the tests in nixpkgs for this package (cf NixOS/nixpkgs#169293).
I am almost done but current tests fail with:
Success || sqlite.db :delete delete multiple keys with dict for each conditions. V2
Fail || sqlite.db :select .... pre
...-lua5.1-plenary.nvim-scm-1/share/lua/5.1/plenary/job.lua:106: curl: Executable not found
stack traceback:
...-lua5.1-plenary.nvim-scm-1/share/lua/5.1/plenary/job.lua:106: in function 'new'
...lua5.1-plenary.nvim-scm-1/share/lua/5.1/plenary/curl.lua:254: in function 'get'
/build/sqlite.lua-ade5bc2/test/auto/db_spec.lua:554: in function </build/sqlite.lua-ade5bc2/test/auto/db_spec.lua:552>
[C]: in function 'xpcall'
...a5.1-plenary.nvim-scm-1/share/lua/5.1/plenary/busted.lua:74: in function 'call_inner'
...a5.1-plenary.nvim-scm-1/share/lua/5.1/plenary/busted.lua:175: in function 'it'
/build/sqlite.lua-ade5bc2/test/auto/db_spec.lua:552: in function </build/sqlite.lua-ade5bc2/test/auto/db_spec.lua:548>
[C]: in function 'xpcall'
...a5.1-plenary.nvim-scm-1/share/lua/5.1/plenary/busted.lua:74: in function 'call_inner'
...a5.1-plenary.nvim-scm-1/share/lua/5.1/plenary/busted.lua:132: in function 'describe'
/build/sqlite.lua-ade5bc2/test/auto/db_spec.lua:548: in function </build/sqlite.lua-ade5bc2/test/auto/db_spec.lua:8>
[C]: in function 'xpcall'
...a5.1-plenary.nvim-scm-1/share/lua/5.1/plenary/busted.lua:74: in function 'call_inner'
...a5.1-plenary.nvim-scm-1/share/lua/5.1/plenary/busted.lua:120: in function 'describe'
/build/sqlite.lua-ade5bc2/test/auto/db_spec.lua:8: in main chunk
[builtin#25]: at 0x7ffff7dd7ad0
[C]: in function 'pcall'
...a5.1-plenary.nvim-scm-1/share/lua/5.1/plenary/busted.lua:221: in function 'run'
[string ":lua"]:1: in main chunk
stack traceback:
/build/sqlite.lua-ade5bc2/test/auto/db_spec.lua:554: in function </build/sqlite.lua-ade5bc2/test/auto/db_spec.lua:552>
Fail || sqlite.db :select return everything with no params
./lua/sqlite/assert.lua:28: sqlite.lua: can not execute select, posts doesn't exists.
indeed curl is not available because we dont want network access when building/testing from the nix sandbox. Is there a way to skip this test or just add these files to the repository ? It's not the download that is tested but the decoding capability if I understand correctly.
it(".... pre", function()
if luv.fs_stat "/tmp/posts" == nil then
curl.get("https://jsonplaceholder.typicode.com/posts", { output = "/tmp/posts" })
curl.get("https://jsonplaceholder.typicode.com/users", { output = "/tmp/users" })
end
Once I get the test passing in nixpkgs, maybe I can port it to the flake if that's of interest
The text was updated successfully, but these errors were encountered:
also note that I added it to NixOS/nixpkgs#169293 . The package seems to fail on darwin but I haven't looked why. Maybe because I hardcoded the .so extension of the sqlite library :o
I am trying to enable the tests in nixpkgs for this package (cf NixOS/nixpkgs#169293).
I am almost done but current tests fail with:
indeed
curl
is not available because we dont want network access when building/testing from the nix sandbox. Is there a way to skip this test or just add these files to the repository ? It's not the download that is tested but the decoding capability if I understand correctly.Once I get the test passing in nixpkgs, maybe I can port it to the flake if that's of interest
The text was updated successfully, but these errors were encountered: