libffi: Run test suite

This commit is contained in:
Zhaofeng Li 2021-12-16 20:44:56 -08:00
parent 7599020b21
commit cb955555df
3 changed files with 10 additions and 0 deletions

View file

@ -219,6 +219,7 @@ in {
sqlite = null;
configd = null;
tzdata = null;
libffi = pkgs.libffiBoot; # without test suite
stripConfig = true;
stripIdlelib = true;
stripTests = true;

View file

@ -1,6 +1,8 @@
{ lib, stdenv, fetchurl, fetchpatch
, autoreconfHook
, doCheck ? true # test suite depends on dejagnu which cannot be used during bootstrapping
, dejagnu
}:
# Note: this package is used for bootstrapping fetchurl, and thus
@ -39,6 +41,10 @@ stdenv.mkDerivation rec {
dontStrip = stdenv.hostPlatform != stdenv.buildPlatform; # Don't run the native `strip' when cross-compiling.
inherit doCheck;
checkInputs = [ dejagnu ];
meta = with lib; {
description = "A foreign function call interface library";
longDescription = ''

View file

@ -17805,6 +17805,9 @@ with pkgs;
libffcall = callPackage ../development/libraries/libffcall { };
libffi = callPackage ../development/libraries/libffi { };
libffiBoot = libffi.override {
doCheck = false;
};
libfreeaptx = callPackage ../development/libraries/libfreeaptx { };