remote: rename testsuite to remote-io, move to tests-io

This commit is contained in:
Richard Marko 2023-11-14 16:38:19 +01:00
parent fe33fba30b
commit b98fb44d7f
5 changed files with 4 additions and 17 deletions

View File

@ -97,7 +97,7 @@ executable remote-readme
main-is: README.lhs
ghc-options: -pgmL markdown-unlit -Wall
test-suite hnix-store-remote-tests
test-suite remote-io
import: commons
if !flag(io-testsuite) || os(darwin)
@ -110,10 +110,7 @@ test-suite hnix-store-remote-tests
other-modules:
NixDaemon
, Spec
, Util
hs-source-dirs: tests
build-tool-depends:
tasty-discover:tasty-discover
hs-source-dirs: tests-io
build-depends:
base
, bytestring
@ -135,6 +132,8 @@ test-suite hnix-store-remote-tests
, temporary
, unix
, unordered-containers
build-tool-depends:
tasty-discover:tasty-discover
mixins:
base hiding (Prelude)
, relude (Relude as Prelude)

View File

@ -1,12 +0,0 @@
module Util where
import Data.Text.Arbitrary ()
import System.Nix.Store.Remote.Util
import Test.Tasty.QuickCheck
prop_TextToBSLRoundtrip :: Text -> Property
prop_TextToBSLRoundtrip x = bslToText (textToBSL x) === x
prop_TextToBSRoundtrip :: Text -> Property
prop_TextToBSRoundtrip x = bsToText (textToBS x) === x