Skip to content

Commit

Permalink
remote: tests-io cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sorki committed Dec 7, 2023
1 parent b7a9f91 commit e5c1492
Show file tree
Hide file tree
Showing 5 changed files with 176 additions and 112 deletions.
9 changes: 2 additions & 7 deletions hnix-store-remote/hnix-store-remote.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -193,15 +193,12 @@ test-suite remote-io
buildable: False

type: exitcode-stdio-1.0
main-is: Driver.hs
main-is: Main.hs
hs-source-dirs: tests-io
-- See https://github.com/redneb/hs-linux-namespaces/issues/3
ghc-options: -rtsopts -fprof-auto "-with-rtsopts -V0"
other-modules:
NixDaemon
, Spec
build-tool-depends:
tasty-discover:tasty-discover
NixDaemonSpec
build-depends:
base >=4.12 && <5
, hnix-store-core
Expand All @@ -218,8 +215,6 @@ test-suite remote-io
, linux-namespaces
, process
, some
, tasty
, tasty-hspec
, temporary
, text
, unix
Expand Down
9 changes: 0 additions & 9 deletions hnix-store-remote/tests-io/Driver.hs

This file was deleted.

12 changes: 12 additions & 0 deletions hnix-store-remote/tests-io/Main.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module Main where

import qualified Test.Hspec
import qualified NixDaemonSpec

-- we run remote tests in
-- Linux namespaces to avoid interacting with systems store
main :: IO ()
main = do
NixDaemonSpec.enterNamespaces
Test.Hspec.hspec
NixDaemonSpec.spec
Loading

0 comments on commit e5c1492

Please sign in to comment.