From 4ba39234909c3c1c44a100c1612a7abb4499d6c9 Mon Sep 17 00:00:00 2001 From: Michael Roitzsch Date: Thu, 2 May 2019 12:03:46 +0200 Subject: [PATCH] swift: enable tests (WIP) add check phase for running some of the Swift test suite A small number of tests is failing, which needs investigation, so the check phase remains disabled by default. --- pkgs/development/compilers/swift/default.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/pkgs/development/compilers/swift/default.nix b/pkgs/development/compilers/swift/default.nix index 8ae011cfcc6..31e2e806fbc 100644 --- a/pkgs/development/compilers/swift/default.nix +++ b/pkgs/development/compilers/swift/default.nix @@ -250,9 +250,19 @@ stdenv.mkDerivation rec { --replace usr/lib "$PREFIX/lib" ''; + buildPhase = builder; + doCheck = false; - buildPhase = builder; + checkInputs = [ file ]; + + # TODO: investigate the non-working tests + checkPhase = '' + checkTarget=check-swift-all + ninjaFlags='-C buildbot_linux/swift-${stdenv.hostPlatform.parsed.kernel.name}-${stdenv.hostPlatform.parsed.cpu.name}' + + ninjaCheckPhase + ''; installPhase = '' mkdir -p $out