Merge pull request #136490 from NixOS/backport-123011-to-staging-21.05

[Backport staging-21.05] bluez: Disable kernel-dependent test test-mesh-crypto
This commit is contained in:
adisbladis 2021-09-02 14:10:33 -05:00 committed by GitHub
commit edf806cf27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -48,6 +48,11 @@ in stdenv.mkDerivation rec {
substituteInPlace tools/hid2hci.rules \
--replace /sbin/udevadm ${systemd}/bin/udevadm \
--replace "hid2hci " "$out/lib/udev/hid2hci "
# Disable some tests:
# - test-mesh-crypto depends on the following kernel settings:
# CONFIG_CRYPTO_[USER|USER_API|USER_API_AEAD|USER_API_HASH|AES|CCM|AEAD|CMAC]
if [[ ! -f unit/test-mesh-crypto.c ]]; then echo "unit/test-mesh-crypto.c no longer exists"; false; fi
echo 'int main() { return 77; }' > unit/test-mesh-crypto.c
'';
configureFlags = [