nsncd: Skip some tests on big-endian (#426747)

Félix a0a2a495 5d4fd2fd

Changed files
+20 -12
pkgs
by-name
ns
nsncd
+20 -12
pkgs/by-name/ns/nsncd/package.nix
···
useFetchCargoVendor = true;
cargoHash = "sha256-9M8Y0WwXFlrpRleSQPYDpnjNnxKGvrtO6Istl9qM30M=";
-
checkFlags = [
-
# Relies on the test environment to be able to resolve "localhost"
-
# on IPv4. That's not the case in the Nix sandbox somehow. Works
-
# when running cargo test impurely on a (NixOS|Debian) machine.
-
"--skip=ffi::test_gethostbyname2_r"
+
checkFlags =
+
[
+
# Relies on the test environment to be able to resolve "localhost"
+
# on IPv4. That's not the case in the Nix sandbox somehow. Works
+
# when running cargo test impurely on a (NixOS|Debian) machine.
+
"--skip=ffi::test_gethostbyname2_r"
-
# Relies on /etc/services to be present?
-
"--skip=handlers::test::test_handle_getservbyname_name"
-
"--skip=handlers::test::test_handle_getservbyname_name_proto"
-
"--skip=handlers::test::test_handle_getservbyport_port"
-
"--skip=handlers::test::test_handle_getservbyport_port_proto"
-
"--skip=handlers::test::test_handle_getservbyport_port_proto_aliases"
-
];
+
# Relies on /etc/services to be present?
+
"--skip=handlers::test::test_handle_getservbyname_name"
+
"--skip=handlers::test::test_handle_getservbyname_name_proto"
+
"--skip=handlers::test::test_handle_getservbyport_port"
+
"--skip=handlers::test::test_handle_getservbyport_port_proto"
+
"--skip=handlers::test::test_handle_getservbyport_port_proto_aliases"
+
]
+
++ lib.optionals stdenv.hostPlatform.isBigEndian [
+
# Expected serialisation output in tests doesn't account for endianness differences
+
# https://github.com/twosigma/nsncd/issues/160
+
"--skip=handlers::test::test_hostent_serialization"
+
"--skip=handlers::test::test_innetgroup_serialization_in_group"
+
"--skip=handlers::test::test_netgroup_serialization"
+
];
meta = with lib; {
description = "Name service non-caching daemon";