2024-05-26 16:27:10 +02:00
|
|
|
{ depot, pkgs, lib, ... }:
|
2023-09-21 21:32:44 +02:00
|
|
|
|
2024-05-02 23:09:46 +02:00
|
|
|
(depot.tvix.crates.workspaceMembers.tvix-castore.build.override {
|
2023-09-21 21:32:44 +02:00
|
|
|
runTests = true;
|
2024-03-03 16:46:20 +01:00
|
|
|
testPreRun = ''
|
|
|
|
export SSL_CERT_FILE=${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt;
|
|
|
|
'';
|
2024-05-26 16:27:10 +02:00
|
|
|
}).overrideAttrs (old: rec {
|
|
|
|
meta.ci.targets = [ "integration-tests" ] ++ lib.filter (x: lib.hasPrefix "with-features" x || x == "no-features") (lib.attrNames passthru);
|
|
|
|
passthru = (depot.tvix.utils.mkFeaturePowerset {
|
|
|
|
inherit (old) crateName;
|
|
|
|
features = ([ "cloud" "fuse" "tonic-reflection" ]
|
|
|
|
# virtiofs feature currently fails to build on Darwin
|
|
|
|
++ lib.optional pkgs.stdenv.isLinux "virtiofs");
|
|
|
|
override.testPreRun = ''
|
|
|
|
export SSL_CERT_FILE=${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt
|
2024-05-02 23:09:46 +02:00
|
|
|
'';
|
2024-05-26 16:27:10 +02:00
|
|
|
}) // {
|
|
|
|
integration-tests = depot.tvix.crates.workspaceMembers.${old.crateName}.build.override (old: {
|
|
|
|
runTests = true;
|
|
|
|
testPreRun = ''
|
|
|
|
export SSL_CERT_FILE=${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt;
|
|
|
|
export PATH="$PATH:${pkgs.lib.makeBinPath [ pkgs.cbtemulator pkgs.google-cloud-bigtable-tool ]}"
|
|
|
|
'';
|
|
|
|
features = old.features ++ [ "integration" ];
|
|
|
|
});
|
2024-05-02 23:09:46 +02:00
|
|
|
};
|
|
|
|
})
|