diff options
author | Phillip Cloud <417981+cpcloud@users.noreply.github.com> | 2022-05-01 10:19:26 -0400 |
---|---|---|
committer | Phillip Cloud <417981+cpcloud@users.noreply.github.com> | 2022-05-02 06:45:36 -0400 |
commit | 72698b35cec5ef8c00dd049df7970db4b43cadd1 (patch) | |
tree | 5b9cb566cd3619b82cdf7f670f0c0ea7c1dd1e20 | |
parent | a585b1c70900a1ecf0a782eb0f6f09d405e5e6e3 (diff) |
duckdb: run unit tests
-rw-r--r-- | pkgs/development/libraries/duckdb/default.nix | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/pkgs/development/libraries/duckdb/default.nix b/pkgs/development/libraries/duckdb/default.nix index d8cae867f4f22..2041a14bfcc5b 100644 --- a/pkgs/development/libraries/duckdb/default.nix +++ b/pkgs/development/libraries/duckdb/default.nix @@ -47,6 +47,22 @@ stdenv.mkDerivation rec { "-DJDBC_DRIVER=${enableFeature withJdbc}" ]; + doInstallCheck = true; + + installCheckPhase = '' + runHook preInstallCheck + + $PWD/test/unittest \ + 'exclude:[test_slow]' \ + 'exclude:*test_slow' \ + exclude:test/sql/copy/csv/test_csv_remote.test \ + exclude:test/sql/copy/parquet/test_parquet_remote.test \ + exclude:test/common/test_cast_hugeint.test \ + exclude:'Test file buffers for reading/writing to file' + + runHook postInstallCheck + ''; + nativeBuildInputs = [ cmake ninja ]; buildInputs = lib.optionals withHttpFs [ openssl ] ++ lib.optionals withJdbc [ openjdk11 ] |