arrow-cpp: fix/disable some plasma tests on darwin

This commit is contained in:
Dmitry Kalinkin 2019-10-08 03:23:07 -04:00 committed by Tobias Mayer
parent bf09368bf5
commit 8c86e54a25

View file

@ -80,12 +80,21 @@ in stdenv.mkDerivation rec {
if doInstallCheck then "${parquet-testing}/data" else null;
installCheckInputs = [ perl which ];
installCheckPhase = (stdenv.lib.optionalString stdenv.isDarwin ''
for f in release/*test; do
for f in release/*test{,s}; do
install_name_tool -add_rpath "$out"/lib "$f"
done
'') + ''
ctest -L unittest -V
'';
'')
+ (let
excludedTests = stdenv.lib.optionals stdenv.isDarwin [
# Some plasma tests need to be patched to use a shorter AF_UNIX socket
# path on Darwin. See https://github.com/NixOS/nix/pull/1085
"plasma-external-store-tests"
"plasma-client-tests"
];
in ''
ctest -L unittest -V \
--exclude-regex '(${builtins.concatStringsSep "|" excludedTests})'
'');
meta = {
description = "A cross-language development platform for in-memory data";