Skip to content

Commit c62d4ce

Browse files
authored
Build all tasty tests with the threaded runtime and some capabilities (#5740)
This ensures that tasty actually runs tests in parallel.
1 parent 022595e commit c62d4ce

File tree

8 files changed

+20
-0
lines changed

8 files changed

+20
-0
lines changed

plutus-benchmark/plutus-benchmark.cabal

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ test-suite plutus-benchmark-nofib-tests
161161
type: exitcode-stdio-1.0
162162
main-is: Spec.hs
163163
hs-source-dirs: nofib/test
164+
ghc-options: -threaded -rtsopts -with-rtsopts=-N
164165
build-depends:
165166
, base >=4.9 && <5
166167
, nofib-internal
@@ -226,6 +227,7 @@ test-suite plutus-benchmark-lists-tests
226227
import: lang, ghc-version-support
227228
type: exitcode-stdio-1.0
228229
main-is: Spec.hs
230+
ghc-options: -threaded -rtsopts -with-rtsopts=-N
229231
hs-source-dirs: lists/test
230232
other-modules:
231233
Lookup.Spec
@@ -352,6 +354,7 @@ test-suite ed25519-costs-test
352354
import: lang, ghc-version-support
353355
type: exitcode-stdio-1.0
354356
ghc-options: -Wno-unused-packages
357+
ghc-options: -threaded -rtsopts -with-rtsopts=-N
355358
hs-source-dirs: ed25519-costs/test ed25519-costs/src
356359
main-is: Spec.hs
357360
other-modules: PlutusBenchmark.Ed25519.Common
@@ -409,6 +412,7 @@ test-suite bls12-381-costs-test
409412
import: lang, ghc-version-support
410413
type: exitcode-stdio-1.0
411414
main-is: Spec.hs
415+
ghc-options: -threaded -rtsopts -with-rtsopts=-N
412416
hs-source-dirs: bls12-381-costs/test
413417
build-depends:
414418
, base >=4.9 && <5
@@ -450,6 +454,7 @@ test-suite plutus-benchmark-script-contexts-tests
450454
import: lang, ghc-version-support
451455
type: exitcode-stdio-1.0
452456
main-is: Spec.hs
457+
ghc-options: -threaded -rtsopts -with-rtsopts=-N
453458
hs-source-dirs: script-contexts/test
454459
other-modules:
455460
build-depends:
@@ -530,6 +535,7 @@ test-suite plutus-benchmark-marlowe-tests
530535
import: lang, ghc-version-support
531536
type: exitcode-stdio-1.0
532537
main-is: Spec.hs
538+
ghc-options: -threaded -rtsopts -with-rtsopts=-N
533539
hs-source-dirs: marlowe/test
534540
other-modules:
535541
build-depends:

plutus-conformance/plutus-conformance.cabal

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ test-suite haskell-conformance
8989
import: lang
9090
type: exitcode-stdio-1.0
9191
main-is: Spec.hs
92+
ghc-options: -threaded -rtsopts -with-rtsopts=-N
9293
hs-source-dirs: haskell test-cases
9394
other-modules:
9495
build-depends:
@@ -99,6 +100,7 @@ test-suite haskell-steppable-conformance
99100
import: lang
100101
type: exitcode-stdio-1.0
101102
main-is: Spec.hs
103+
ghc-options: -threaded -rtsopts -with-rtsopts=-N
102104
hs-source-dirs: haskell-steppable test-cases
103105
other-modules:
104106
build-depends:
@@ -111,6 +113,7 @@ test-suite agda-conformance
111113
import: lang
112114
type: exitcode-stdio-1.0
113115
main-is: Spec.hs
116+
ghc-options: -threaded -rtsopts -with-rtsopts=-N
114117
hs-source-dirs: agda test-cases
115118
other-modules:
116119
build-depends:

plutus-core/plutus-core.cabal

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,7 @@ test-suite plutus-ir-test
584584
type: exitcode-stdio-1.0
585585
main-is: Driver.hs
586586
hs-source-dirs: plutus-ir/test
587+
ghc-options: -threaded -rtsopts -with-rtsopts=-N
587588
other-modules:
588589
PlutusCore.Generators.QuickCheck.BuiltinsTests
589590
PlutusCore.Generators.QuickCheck.SubstitutionTests
@@ -839,6 +840,7 @@ test-suite traceToStacks-test
839840
type: exitcode-stdio-1.0
840841
hs-source-dirs: executables/traceToStacks
841842
default-language: Haskell2010
843+
ghc-options: -threaded -rtsopts -with-rtsopts=-N
842844
main-is: TestGetStacks.hs
843845
other-modules: Common
844846
build-depends:
@@ -1064,6 +1066,7 @@ test-suite index-envs-test
10641066
default-language: Haskell2010
10651067
main-is: Spec.hs
10661068
other-modules: RAList.Spec
1069+
ghc-options: -threaded -rtsopts -with-rtsopts=-N
10671070
build-depends:
10681071
, base >=4.9 && <5
10691072
, index-envs

plutus-ledger-api/plutus-ledger-api.cabal

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ test-suite plutus-ledger-api-test
143143
type: exitcode-stdio-1.0
144144
main-is: Spec.hs
145145
hs-source-dirs: test
146+
ghc-options: -threaded -rtsopts -with-rtsopts=-N
146147
other-modules:
147148
Spec.CBOR.DeserialiseFailureInfo
148149
Spec.ContextDecoding
@@ -181,6 +182,7 @@ test-suite plutus-ledger-api-plugin-test
181182
type: exitcode-stdio-1.0
182183
main-is: Spec.hs
183184
hs-source-dirs: test-plugin
185+
ghc-options: -threaded -rtsopts -with-rtsopts=-N
184186
other-modules:
185187
Spec.Budget
186188
Spec.Value

plutus-metatheory/plutus-metatheory.cabal

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,7 @@ test-suite test3
583583
hs-source-dirs: test
584584
type: exitcode-stdio-1.0
585585
main-is: TestNEAT.hs
586+
ghc-options: -threaded -rtsopts -with-rtsopts=-N
586587
build-depends:
587588
, base
588589
, lazy-search

plutus-tx-plugin/plutus-tx-plugin.cabal

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ test-suite plutus-tx-plugin-tests
178178
, text
179179

180180
default-extensions: Strict
181+
ghc-options: -threaded -rtsopts -with-rtsopts=-N
181182

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

204205
default-extensions: Strict
206+
ghc-options: -threaded -rtsopts -with-rtsopts=-N
205207

206208
-- See Note [-fno-full-laziness in Plutus Tx]
207209
ghc-options:

plutus-tx/plutus-tx.cabal

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ library plutus-tx-testlib
128128
import: lang
129129
visibility: public
130130
hs-source-dirs: testlib
131+
ghc-options: -threaded -rtsopts -with-rtsopts=-N
131132
exposed-modules:
132133
Hedgehog.Laws.Common
133134
Hedgehog.Laws.Eq
@@ -157,6 +158,7 @@ test-suite plutus-tx-test
157158

158159
type: exitcode-stdio-1.0
159160
main-is: Spec.hs
161+
ghc-options: -threaded -rtsopts -with-rtsopts=-N
160162
other-modules:
161163
List.Spec
162164
Rational.Laws

prettyprinter-configurable/prettyprinter-configurable.cabal

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ test-suite prettyprinter-configurable-test
7171
import: lang
7272
type: exitcode-stdio-1.0
7373
main-is: Main.hs
74+
ghc-options: -threaded -rtsopts -with-rtsopts=-N
7475
hs-source-dirs: test
7576
other-modules:
7677
Default

0 commit comments

Comments
 (0)