mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-15 11:08:28 +00:00
Merge pull request #192962 from risicle/ris-bind-unit-tests
bind: enable unit tests
This commit is contained in:
commit
6fa6198586
@ -4,6 +4,7 @@
|
|||||||
, enablePython ? false, python3
|
, enablePython ? false, python3
|
||||||
, enableGSSAPI ? true, libkrb5
|
, enableGSSAPI ? true, libkrb5
|
||||||
, buildPackages, nixosTests
|
, buildPackages, nixosTests
|
||||||
|
, cmocka, tzdata
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -59,8 +60,18 @@ stdenv.mkDerivation rec {
|
|||||||
EOF
|
EOF
|
||||||
'';
|
'';
|
||||||
|
|
||||||
doCheck = false; # requires root and the net
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
doCheck = !stdenv.hostPlatform.isStatic;
|
||||||
|
checkTarget = "unit";
|
||||||
|
checkInputs = [
|
||||||
|
cmocka
|
||||||
|
] ++ lib.optionals (!stdenv.hostPlatform.isMusl) [
|
||||||
|
tzdata
|
||||||
|
];
|
||||||
|
preCheck = lib.optionalString stdenv.hostPlatform.isMusl ''
|
||||||
|
# musl doesn't respect TZDIR, skip timezone-related tests
|
||||||
|
sed -i '/^ISC_TEST_ENTRY(isc_time_formatISO8601L/d' tests/isc/time_test.c
|
||||||
|
'';
|
||||||
|
|
||||||
passthru.tests = {
|
passthru.tests = {
|
||||||
inherit (nixosTests) bind;
|
inherit (nixosTests) bind;
|
||||||
|
Loading…
Reference in New Issue
Block a user