Skip to content

Commit

Permalink
Revert "Change test-suites to executable and include in nix flake check"
Browse files Browse the repository at this point in the history
This reverts commit 9c57c78.
  • Loading branch information
locallycompact committed May 29, 2024
1 parent 6243021 commit 504ca9b
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 34 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/ci-nix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,8 @@ jobs:
name: cardano-scaling
authToken: '${{ secrets.CACHIX_CARDANO_SCALING_AUTH_TOKEN }}'

- name: ❓ Test (Pure)
if: ${{ matrix.package == 'hydra-plutus'
|| matrix.package == 'plutus-cbor'
|| matrix.package == 'plutus-merkle-tree' }}
run: |
nix build .#checks.x86_64-linux.${{ matrix.package }}
- name: ❓ Test (Impure)
if: ${{ matrix.package == 'hydra-cluster'
|| matrix.package == 'hydra-node' }}
- name: ❓ Test
if: ${{ matrix.package != 'hydra-tui' }}
run: |
cd ${{ matrix.package }}
nix build .#${{ matrix.package }}-tests
Expand Down
18 changes: 1 addition & 17 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -135,21 +135,6 @@
];
treefmt = pkgs.treefmt;
};
hydra-plutus = lu.tee-check {
name = "hydra-plutus";
src = self;
exe = "${packages.hydra-plutus-tests}/bin/tests";
};
plutus-cbor = lu.tee-check {
name = "plutus-cbor";
src = self;
exe = "${packages.plutus-cbor-tests}/bin/tests";
};
plutus-merkle-tree = lu.tee-check {
name = "plutus-merkle-tree";
src = self;
exe = "${packages.plutus-merkle-tree-tests}/bin/tests";
};
} // lib.attrsets.mergeAttrsList (map (x: componentsToWerrors x hsPkgs.${x}) [
"cardano-api-classy"
"hydra-cardano-api"
Expand All @@ -176,8 +161,7 @@
devShells = import ./nix/hydra/shell.nix {
inherit inputs pkgs hsPkgs system compiler;
};

};
};
};

nixConfig = {
Expand Down
2 changes: 1 addition & 1 deletion hydra-plutus/hydra-plutus.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ library
, template-haskell
, time

executable tests
test-suite tests
import: project-config
ghc-options: -threaded -rtsopts -with-rtsopts=-N
hs-source-dirs: test
Expand Down
16 changes: 12 additions & 4 deletions nix/hydra/packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,18 @@ rec {

hydraw-static = musl64Pkgs.hydraw.components.exes.hydraw;

plutus-cbor-tests = nativePkgs.plutus-cbor.components.exes.tests;

plutus-merkle-tree-tests = nativePkgs.plutus-merkle-tree.components.exes.tests;
hydra-plutus-tests = nativePkgs.hydra-plutus.components.exes.tests;
plutus-cbor-tests = pkgs.mkShellNoCC {
name = "plutus-cbor-tests";
buildInputs = [ nativePkgs.plutus-cbor.components.tests.tests ];
};
plutus-merkle-tree-tests = pkgs.mkShellNoCC {
name = "plutus-merkle-tree-tests";
buildInputs = [ nativePkgs.plutus-merkle-tree.components.tests.tests ];
};
hydra-plutus-tests = pkgs.mkShellNoCC {
name = "hydra-plutus-tests";
buildInputs = [ nativePkgs.hydra-plutus.components.tests.tests ];
};
hydra-node-tests = pkgs.mkShellNoCC {
name = "hydra-node-tests";
buildInputs = [
Expand Down
2 changes: 1 addition & 1 deletion plutus-cbor/plutus-cbor.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ library

exposed-modules: Plutus.Codec.CBOR.Encoding

executable tests
test-suite tests
import: project-config
type: exitcode-stdio-1.0
hs-source-dirs: test
Expand Down
2 changes: 1 addition & 1 deletion plutus-merkle-tree/plutus-merkle-tree.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ library
, plutus-tx
, text

executable tests
test-suite tests
import: project-config
type: exitcode-stdio-1.0
hs-source-dirs: test
Expand Down

0 comments on commit 504ca9b

Please sign in to comment.