lua51Packages.libluv: cross-test with lua51Packages.luv
Update bot creates PRs for `lua51Packages.libluv` even though the main package is luv. This commit adds luv to libluv's tests to ensure that both are tested during automatic updates.
This commit is contained in:
@@ -68,18 +68,23 @@ buildLuarocksPackage rec {
|
||||
disabled = luaOlder "5.1";
|
||||
|
||||
passthru = {
|
||||
tests.test =
|
||||
runCommand "luv-${version}-test"
|
||||
{
|
||||
nativeBuildInputs = [ (lua.withPackages (ps: [ ps.luv ])) ];
|
||||
}
|
||||
''
|
||||
lua <<EOF
|
||||
local uv = require("luv")
|
||||
assert(uv.fs_mkdir(assert(uv.os_getenv("out")), 493))
|
||||
print(uv.version_string())
|
||||
EOF
|
||||
'';
|
||||
tests = {
|
||||
test =
|
||||
runCommand "luv-${version}-test"
|
||||
{
|
||||
nativeBuildInputs = [ (lua.withPackages (ps: [ ps.luv ])) ];
|
||||
}
|
||||
''
|
||||
lua <<EOF
|
||||
local uv = require("luv")
|
||||
assert(uv.fs_mkdir(assert(uv.os_getenv("out")), 493))
|
||||
print(uv.version_string())
|
||||
EOF
|
||||
'';
|
||||
|
||||
# Test libluv too
|
||||
inherit (lua.pkgs) libluv;
|
||||
};
|
||||
|
||||
updateScript = nix-update-script { };
|
||||
};
|
||||
|
||||
@@ -34,4 +34,9 @@ stdenv.mkDerivation {
|
||||
cmake
|
||||
]
|
||||
++ lib.optionals stdenv.hostPlatform.isDarwin [ fixDarwinDylibNames ];
|
||||
|
||||
passthru.tests = {
|
||||
# Test luv too
|
||||
luv = lua.pkgs.luv.passthru.tests.test;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user