Merge pull request #171142 from cpcloud/duckdb-run-unittests
duckdb: run unit tests
This commit is contained in:
commit
1dec0eb2b1
1 changed files with 29 additions and 0 deletions
|
@ -47,6 +47,35 @@ stdenv.mkDerivation rec {
|
||||||
"-DJDBC_DRIVER=${enableFeature withJdbc}"
|
"-DJDBC_DRIVER=${enableFeature withJdbc}"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
doInstallCheck = true;
|
||||||
|
|
||||||
|
preInstallCheck = lib.optionalString stdenv.isDarwin ''
|
||||||
|
export DYLD_LIBRARY_PATH="$out/lib''${DYLD_LIBRARY_PATH:+:}''${DYLD_LIBRARY_PATH}"
|
||||||
|
'';
|
||||||
|
|
||||||
|
installCheckPhase =
|
||||||
|
let
|
||||||
|
excludes = map (pattern: "exclude:'${pattern}'") [
|
||||||
|
"*test_slow"
|
||||||
|
"Test file buffers for reading/writing to file"
|
||||||
|
"[test_slow]"
|
||||||
|
"test/common/test_cast_hugeint.test"
|
||||||
|
"test/sql/copy/csv/test_csv_remote.test"
|
||||||
|
"test/sql/copy/parquet/test_parquet_remote.test"
|
||||||
|
] ++ lib.optionals stdenv.isAarch64 [
|
||||||
|
"test/sql/aggregate/aggregates/test_kurtosis.test"
|
||||||
|
"test/sql/aggregate/aggregates/test_skewness.test"
|
||||||
|
"test/sql/function/list/aggregates/skewness.test"
|
||||||
|
];
|
||||||
|
in
|
||||||
|
''
|
||||||
|
runHook preInstallCheck
|
||||||
|
|
||||||
|
$PWD/test/unittest ${lib.concatStringsSep " " excludes}
|
||||||
|
|
||||||
|
runHook postInstallCheck
|
||||||
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake ninja ];
|
nativeBuildInputs = [ cmake ninja ];
|
||||||
buildInputs = lib.optionals withHttpFs [ openssl ]
|
buildInputs = lib.optionals withHttpFs [ openssl ]
|
||||||
++ lib.optionals withJdbc [ openjdk11 ]
|
++ lib.optionals withJdbc [ openjdk11 ]
|
||||||
|
|
Loading…
Reference in a new issue