Skip to content

Commit

Permalink
Github Actions: execute tests with -N flag
Browse files Browse the repository at this point in the history
  • Loading branch information
coot committed Aug 4, 2023
1 parent f2061c9 commit 820d126
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,26 +102,27 @@ jobs:
# Test network packages

- name: ntp-client [test]
run: cabal run ntp-client:test
run: cabal run ntp-client:test -- +RTS -N -RTS

- name: network-mux [test]
# TODO: issue #4635 to enable `+RTS -N`
run: cabal run network-mux:test

- name: ourobors-network-testing [test]
run: cabal run ouroboros-network-testing:test
run: cabal run ouroboros-network-testing:test -- +RTS -N -RTS

- name: ourobors-network-framework [test]
run: cabal run ouroboros-network-framework:test
run: cabal run ouroboros-network-framework:test -- +RTS -N -RTS

- name: ouroboros-network-protocols [test]
run: cabal run ouroboros-network-protocols:test
run: cabal run ouroboros-network-protocols:test -- +RTS -N -RTS

# We don't run cddl in GitHub actions (only on Hydra).
# - name: ouroboros-network-protocols [cddl]
# run: cabal run ouroboros-network-protocols-test:cddl

- name: ouroboros-network [test]
run: cabal run ouroboros-network:test
run: cabal run ouroboros-network:test -- +RTS -N -RTS

# Uncomment the following back in for debugging. Remember to launch a `pwsh` from
# the tmux session to debug `pwsh` issues. And be reminded that the `/msys2` and
Expand Down
1 change: 1 addition & 0 deletions ntp-client/ntp-client.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ test-suite test
default-language: Haskell2010
ghc-options: -Wall
-Wunused-packages
-threaded

executable demo-ntp-client
hs-source-dirs: demo
Expand Down
6 changes: 4 additions & 2 deletions ouroboros-network-protocols/ouroboros-network-protocols.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,8 @@ test-suite test
ouroboros-network-protocols:testlib,
ouroboros-network-testing ^>= 0.3

ghc-options: -Wall
ghc-options: -threaded
-Wall
-Wunused-packages

test-suite cddl
Expand Down Expand Up @@ -243,7 +244,8 @@ test-suite cddl
ouroboros-network-protocols,
ouroboros-network-protocols:testlib

ghc-options: -Wall
ghc-options: -threaded
-Wall
-Wno-unticked-promoted-constructors
-Wcompat
-Wunused-packages

0 comments on commit 820d126

Please sign in to comment.