Merge pull request #30883 from bgamari/ben-cross-no-check

Don't run tests when cross-compiling
This commit is contained in:
John Ericson 2017-11-05 19:32:56 +00:00 committed by GitHub
commit 4a3e7564b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 11 additions and 10 deletions

View file

@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
[ "--enable-cplusplus" ]
++ lib.optional enableLargeConfig "--enable-large-config";
doCheck = true;
doCheck = stdenv.buildPlatform == stdenv.hostPlatform;
# Don't run the native `strip' when cross-compiling.
dontStrip = hostPlatform != buildPlatform;

View file

@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
outputMan = "dev"; # tiny page for a dev tool
doCheck = true;
doCheck = stdenv.hostPlatform == stdenv.buildPlatform;
preCheck = ''
patchShebangs ./run.sh

View file

@ -8,7 +8,7 @@ stdenv.mkDerivation rec {
sha256 = "0lx201q20dvc70f8a3c9s7s18z15inlxvbffph97ngvrgnyjq9cx";
};
doCheck = true;
doCheck = stdenv.buildPlatform == stdenv.hostPlatform;
# Linking static stubs on cygwin requires correct ordering.
# Consider upstreaming this.

View file

@ -12,7 +12,8 @@ assert guileBindings -> guile != null;
let
# XXX: Gnulib's `test-select' fails on FreeBSD:
# http://hydra.nixos.org/build/2962084/nixlog/1/raw .
doCheck = !stdenv.isFreeBSD && !stdenv.isDarwin && lib.versionAtLeast version "3.4";
doCheck = !stdenv.isFreeBSD && !stdenv.isDarwin && lib.versionAtLeast version "3.4"
&& stdenv.buildPlatform == stdenv.hostPlatform;
in
stdenv.mkDerivation {
name = "gnutls-${version}";

View file

@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
outputs = [ "bin" "dev" "out" "info" "devdoc" ];
doCheck = ! stdenv.isDarwin;
doCheck = (stdenv.buildPlatform == stdenv.hostPlatform) && !stdenv.isDarwin;
hardeningDisable = [ "format" ];

View file

@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
doCheck = true;
doCheck = stdenv.buildPlatform == stdenv.hostPlatform;
checkTarget = "test";
meta = with stdenv.lib; {

View file

@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
doCheck = true;
doCheck = stdenv.buildPlatform == stdenv.hostPlatform;
meta = with stdenv.lib; {
description = "Library and utilities for working with the TIFF image file format";

View file

@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
# XXX: There are test failures on non-GNU systems, see
# http://lists.gnu.org/archive/html/bug-libunistring/2010-02/msg00004.html .
doCheck = stdenv ? glibc;
doCheck = (stdenv ? glibc) && (stdenv.hostPlatform == stdenv.buildPlatform);
meta = {
homepage = http://www.gnu.org/software/libunistring/;

View file

@ -36,7 +36,7 @@ in stdenv.mkDerivation rec {
enableParallelBuilding = true;
doCheck = !stdenv.isDarwin;
doCheck = (stdenv.hostPlatform == stdenv.buildPlatform) && !stdenv.isDarwin;
crossAttrs = lib.optionalAttrs (hostPlatform.libc == "msvcrt") {
# creating the DLL is broken ATM

View file

@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
doCheck = true;
doCheck = stdenv.hostPlatform == stdenv.buildPlatform;
meta = with stdenv.lib; {
description = "Real-time data (de)compression library";