Skip to content

Commit

Permalink
Build all tasty tests with the threaded runtime and some capabilities (
Browse files Browse the repository at this point in the history
…#5740)

This ensures that tasty actually runs tests in parallel.
  • Loading branch information
michaelpj committed Jan 25, 2024
1 parent 022595e commit c62d4ce
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 0 deletions.
6 changes: 6 additions & 0 deletions plutus-benchmark/plutus-benchmark.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ test-suite plutus-benchmark-nofib-tests
type: exitcode-stdio-1.0
main-is: Spec.hs
hs-source-dirs: nofib/test
ghc-options: -threaded -rtsopts -with-rtsopts=-N
build-depends:
, base >=4.9 && <5
, nofib-internal
Expand Down Expand Up @@ -226,6 +227,7 @@ test-suite plutus-benchmark-lists-tests
import: lang, ghc-version-support
type: exitcode-stdio-1.0
main-is: Spec.hs
ghc-options: -threaded -rtsopts -with-rtsopts=-N
hs-source-dirs: lists/test
other-modules:
Lookup.Spec
Expand Down Expand Up @@ -352,6 +354,7 @@ test-suite ed25519-costs-test
import: lang, ghc-version-support
type: exitcode-stdio-1.0
ghc-options: -Wno-unused-packages
ghc-options: -threaded -rtsopts -with-rtsopts=-N
hs-source-dirs: ed25519-costs/test ed25519-costs/src
main-is: Spec.hs
other-modules: PlutusBenchmark.Ed25519.Common
Expand Down Expand Up @@ -409,6 +412,7 @@ test-suite bls12-381-costs-test
import: lang, ghc-version-support
type: exitcode-stdio-1.0
main-is: Spec.hs
ghc-options: -threaded -rtsopts -with-rtsopts=-N
hs-source-dirs: bls12-381-costs/test
build-depends:
, base >=4.9 && <5
Expand Down Expand Up @@ -450,6 +454,7 @@ test-suite plutus-benchmark-script-contexts-tests
import: lang, ghc-version-support
type: exitcode-stdio-1.0
main-is: Spec.hs
ghc-options: -threaded -rtsopts -with-rtsopts=-N
hs-source-dirs: script-contexts/test
other-modules:
build-depends:
Expand Down Expand Up @@ -530,6 +535,7 @@ test-suite plutus-benchmark-marlowe-tests
import: lang, ghc-version-support
type: exitcode-stdio-1.0
main-is: Spec.hs
ghc-options: -threaded -rtsopts -with-rtsopts=-N
hs-source-dirs: marlowe/test
other-modules:
build-depends:
Expand Down
3 changes: 3 additions & 0 deletions plutus-conformance/plutus-conformance.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ test-suite haskell-conformance
import: lang
type: exitcode-stdio-1.0
main-is: Spec.hs
ghc-options: -threaded -rtsopts -with-rtsopts=-N
hs-source-dirs: haskell test-cases
other-modules:
build-depends:
Expand All @@ -99,6 +100,7 @@ test-suite haskell-steppable-conformance
import: lang
type: exitcode-stdio-1.0
main-is: Spec.hs
ghc-options: -threaded -rtsopts -with-rtsopts=-N
hs-source-dirs: haskell-steppable test-cases
other-modules:
build-depends:
Expand All @@ -111,6 +113,7 @@ test-suite agda-conformance
import: lang
type: exitcode-stdio-1.0
main-is: Spec.hs
ghc-options: -threaded -rtsopts -with-rtsopts=-N
hs-source-dirs: agda test-cases
other-modules:
build-depends:
Expand Down
3 changes: 3 additions & 0 deletions plutus-core/plutus-core.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,7 @@ test-suite plutus-ir-test
type: exitcode-stdio-1.0
main-is: Driver.hs
hs-source-dirs: plutus-ir/test
ghc-options: -threaded -rtsopts -with-rtsopts=-N
other-modules:
PlutusCore.Generators.QuickCheck.BuiltinsTests
PlutusCore.Generators.QuickCheck.SubstitutionTests
Expand Down Expand Up @@ -839,6 +840,7 @@ test-suite traceToStacks-test
type: exitcode-stdio-1.0
hs-source-dirs: executables/traceToStacks
default-language: Haskell2010
ghc-options: -threaded -rtsopts -with-rtsopts=-N
main-is: TestGetStacks.hs
other-modules: Common
build-depends:
Expand Down Expand Up @@ -1064,6 +1066,7 @@ test-suite index-envs-test
default-language: Haskell2010
main-is: Spec.hs
other-modules: RAList.Spec
ghc-options: -threaded -rtsopts -with-rtsopts=-N
build-depends:
, base >=4.9 && <5
, index-envs
Expand Down
2 changes: 2 additions & 0 deletions plutus-ledger-api/plutus-ledger-api.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ test-suite plutus-ledger-api-test
type: exitcode-stdio-1.0
main-is: Spec.hs
hs-source-dirs: test
ghc-options: -threaded -rtsopts -with-rtsopts=-N
other-modules:
Spec.CBOR.DeserialiseFailureInfo
Spec.ContextDecoding
Expand Down Expand Up @@ -181,6 +182,7 @@ test-suite plutus-ledger-api-plugin-test
type: exitcode-stdio-1.0
main-is: Spec.hs
hs-source-dirs: test-plugin
ghc-options: -threaded -rtsopts -with-rtsopts=-N
other-modules:
Spec.Budget
Spec.Value
Expand Down
1 change: 1 addition & 0 deletions plutus-metatheory/plutus-metatheory.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,7 @@ test-suite test3
hs-source-dirs: test
type: exitcode-stdio-1.0
main-is: TestNEAT.hs
ghc-options: -threaded -rtsopts -with-rtsopts=-N
build-depends:
, base
, lazy-search
Expand Down
2 changes: 2 additions & 0 deletions plutus-tx-plugin/plutus-tx-plugin.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ test-suite plutus-tx-plugin-tests
, text

default-extensions: Strict
ghc-options: -threaded -rtsopts -with-rtsopts=-N

-- NOTE: -g makes the plugin give better errors
-- See Note [-fno-full-laziness in Plutus Tx]
Expand All @@ -202,6 +203,7 @@ test-suite size
, tasty

default-extensions: Strict
ghc-options: -threaded -rtsopts -with-rtsopts=-N

-- See Note [-fno-full-laziness in Plutus Tx]
ghc-options:
Expand Down
2 changes: 2 additions & 0 deletions plutus-tx/plutus-tx.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ library plutus-tx-testlib
import: lang
visibility: public
hs-source-dirs: testlib
ghc-options: -threaded -rtsopts -with-rtsopts=-N
exposed-modules:
Hedgehog.Laws.Common
Hedgehog.Laws.Eq
Expand Down Expand Up @@ -157,6 +158,7 @@ test-suite plutus-tx-test

type: exitcode-stdio-1.0
main-is: Spec.hs
ghc-options: -threaded -rtsopts -with-rtsopts=-N
other-modules:
List.Spec
Rational.Laws
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ test-suite prettyprinter-configurable-test
import: lang
type: exitcode-stdio-1.0
main-is: Main.hs
ghc-options: -threaded -rtsopts -with-rtsopts=-N
hs-source-dirs: test
other-modules:
Default
Expand Down

1 comment on commit c62d4ce

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'Plutus Benchmarks'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.05.

Benchmark suite Current: c62d4ce Previous: 022595e Ratio
nofib-primetest/05digits 9402 μs 8936 μs 1.05
nofib-primetest/08digits 15100 μs 14260 μs 1.06
nofib-primetest/10digits 18010 μs 17020 μs 1.06

This comment was automatically generated by workflow using github-action-benchmark.

CC: @input-output-hk/plutus-core

Please sign in to comment.