Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

Commit

Permalink
Fix Tests
Browse files Browse the repository at this point in the history
- Mark some additional tests with `withTH`, which should provide
  the test-wrapper logic.

- Improve the test drop logic.
  • Loading branch information
angerman committed Dec 7, 2018
1 parent d26da09 commit 040d850
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
3 changes: 3 additions & 0 deletions nix/pkgs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,9 @@ let
packages.cardano-sl-binary = withTH;
packages.cardano-sl-node = withTH;
packages.cardano-sl-explorer = withTH;
packages.cardano-sl-cluster = withTH;
packages.cardano-sl-x509 = withTH;
packages.cardano-sl-mnemonic = withTH;
packages.math-functions = withTH;
packages.servant-swagger-ui = withTH;
packages.servant-swagger-ui-redoc = withTH;
Expand Down
22 changes: 13 additions & 9 deletions release.nix
Original file line number Diff line number Diff line change
Expand Up @@ -106,23 +106,27 @@ let
cardano-wallet = supportedSystems;
} skipPackages;
# nix-tools toolchain: Tests
nix-tools.tests = lib.recursiveUpdate
(removeAttrs
nix-tools.tests =
removeAttrs
(lib.mapAttrs (_: lib.mapAttrs (_: _: supportedSystems))
(lib.filterAttrs (n: v: builtins.match ".*cardano-sl.*" n != null && v != null)
iohkPkgs.nix-tools.tests))
skipPackages)
{
skipPackages;
};

# tests that are either broken or broken on some arch
broken-tests = {
# these two tests are broken on darwin and take forever.
# thus we only test them on linux
cardano-sl-chain.chain-test = [ "x86_64-linux" ];
cardano-wallet.unit = [ "x86_64-linux" ];
};

};

mapped-nix-tools = mapTestOn nix-tools-toolchain;
mapped-nix-tools-cross = mapTestOnCross lib.systems.examples.mingwW64 nix-tools-toolchain;
broken-tests-cross = {
# This one does not complete on wine.
cardano-sl-db.db-test = [];
};
mapped-nix-tools = mapTestOn (lib.recursiveUpdate nix-tools-toolchain { nix-tools.tests = broken-tests; });
mapped-nix-tools-cross = mapTestOnCross lib.systems.examples.mingwW64 (lib.recursiveUpdate nix-tools-toolchain { nix-tools.tests = broken-tests-cross; });

mapped-nix-tools'
= lib.recursiveUpdate
Expand Down

0 comments on commit 040d850

Please sign in to comment.