2020-12-12 08:55:53 +03:00
|
|
|
cabal-version: 2.2
|
|
|
|
name: streamly-tests
|
|
|
|
version: 0.0.0
|
|
|
|
synopsis: Tests for streamly
|
|
|
|
description: See streamly-benchmarks for the reason why we use a separate
|
|
|
|
package for tests.
|
|
|
|
|
|
|
|
flag fusion-plugin
|
|
|
|
description: Use fusion plugin for benchmarks and executables
|
|
|
|
manual: True
|
|
|
|
default: False
|
|
|
|
|
2021-03-22 22:22:08 +03:00
|
|
|
flag limit-build-mem
|
|
|
|
description: Limits memory when building the executables
|
|
|
|
manual: True
|
|
|
|
default: False
|
|
|
|
|
2021-09-14 20:01:55 +03:00
|
|
|
flag use-large-mem
|
|
|
|
description: Include tests that require large amount of memory
|
|
|
|
manual: True
|
|
|
|
default: False
|
|
|
|
|
2021-09-14 20:49:54 +03:00
|
|
|
flag include-flaky-tests
|
|
|
|
description: Include tests that are unpredictable
|
|
|
|
manual: True
|
|
|
|
default: False
|
|
|
|
|
2020-12-12 08:55:53 +03:00
|
|
|
flag dev
|
|
|
|
description: Development build
|
|
|
|
manual: True
|
|
|
|
default: False
|
|
|
|
|
|
|
|
flag has-llvm
|
|
|
|
description: Use llvm backend for better performance
|
|
|
|
manual: True
|
|
|
|
default: False
|
|
|
|
|
|
|
|
flag opt
|
|
|
|
description: off=-O0 (faster builds), on=-O2
|
|
|
|
manual: True
|
|
|
|
default: True
|
|
|
|
|
2022-08-23 09:17:20 +03:00
|
|
|
flag use-streamly-core
|
2022-08-19 22:15:57 +03:00
|
|
|
description: Test only core package
|
|
|
|
manual: True
|
|
|
|
default: False
|
|
|
|
|
2020-12-12 08:55:53 +03:00
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
-- Common stanzas
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
common compile-options
|
|
|
|
default-language: Haskell2010
|
|
|
|
|
|
|
|
if os(darwin)
|
|
|
|
cpp-options: -DCABAL_OS_DARWIN
|
|
|
|
|
|
|
|
if os(linux)
|
|
|
|
cpp-options: -DCABAL_OS_LINUX
|
|
|
|
|
|
|
|
if os(windows)
|
|
|
|
cpp-options: -DCABAL_OS_WINDOWS
|
|
|
|
|
|
|
|
if flag(dev)
|
|
|
|
cpp-options: -DDEVBUILD
|
|
|
|
|
|
|
|
ghc-options: -Wall
|
|
|
|
-Wcompat
|
|
|
|
-Wunrecognised-warning-flags
|
|
|
|
-Widentities
|
|
|
|
-Wincomplete-record-updates
|
|
|
|
-Wincomplete-uni-patterns
|
|
|
|
-Wredundant-constraints
|
|
|
|
-Wnoncanonical-monad-instances
|
2022-02-11 08:27:39 +03:00
|
|
|
-Wmissing-export-lists
|
2020-12-12 08:55:53 +03:00
|
|
|
-Rghc-timing
|
2024-02-17 23:50:08 +03:00
|
|
|
-with-rtsopts "-t"
|
2020-12-12 08:55:53 +03:00
|
|
|
|
|
|
|
if flag(has-llvm)
|
|
|
|
ghc-options: -fllvm
|
|
|
|
|
|
|
|
if flag(dev)
|
|
|
|
ghc-options: -Wmissed-specialisations
|
|
|
|
-Wall-missed-specialisations
|
|
|
|
|
2021-03-22 22:22:08 +03:00
|
|
|
if flag(limit-build-mem)
|
|
|
|
ghc-options: +RTS -M512M -RTS
|
2020-12-12 08:55:53 +03:00
|
|
|
|
2021-09-14 20:01:55 +03:00
|
|
|
if flag(use-large-mem)
|
|
|
|
cpp-options: -DUSE_LARGE_MEMORY
|
|
|
|
|
2021-09-14 20:49:54 +03:00
|
|
|
if flag(include-flaky-tests)
|
|
|
|
cpp-options: -DINCLUDE_FLAKY_TESTS
|
|
|
|
|
2020-12-12 08:55:53 +03:00
|
|
|
common default-extensions
|
|
|
|
default-extensions:
|
|
|
|
BangPatterns
|
|
|
|
CApiFFI
|
|
|
|
CPP
|
|
|
|
ConstraintKinds
|
|
|
|
DeriveDataTypeable
|
|
|
|
DeriveGeneric
|
|
|
|
DeriveTraversable
|
|
|
|
ExistentialQuantification
|
|
|
|
FlexibleContexts
|
|
|
|
FlexibleInstances
|
|
|
|
GeneralizedNewtypeDeriving
|
|
|
|
InstanceSigs
|
|
|
|
KindSignatures
|
|
|
|
LambdaCase
|
|
|
|
MagicHash
|
|
|
|
MultiParamTypeClasses
|
|
|
|
PatternSynonyms
|
|
|
|
RankNTypes
|
|
|
|
RecordWildCards
|
|
|
|
ScopedTypeVariables
|
|
|
|
TupleSections
|
|
|
|
TypeFamilies
|
|
|
|
ViewPatterns
|
|
|
|
|
|
|
|
-- MonoLocalBinds, enabled by TypeFamilies, causes performance
|
|
|
|
-- regressions. Disable it. This must come after TypeFamilies,
|
|
|
|
-- otherwise TypeFamilies will enable it again.
|
|
|
|
NoMonoLocalBinds
|
|
|
|
|
|
|
|
-- UndecidableInstances -- Does not show any perf impact
|
|
|
|
-- UnboxedTuples -- interferes with (#.)
|
|
|
|
|
|
|
|
common threading-options
|
|
|
|
ghc-options: -threaded
|
|
|
|
-with-rtsopts=-N
|
|
|
|
|
|
|
|
common optimization-options
|
2021-02-08 16:13:36 +03:00
|
|
|
if flag(opt) || flag(fusion-plugin)
|
2020-12-12 08:55:53 +03:00
|
|
|
ghc-options: -O2
|
|
|
|
-fdicts-strict
|
|
|
|
-fmax-worker-args=16
|
|
|
|
-fspec-constr-recursive=16
|
2021-10-05 20:27:40 +03:00
|
|
|
-- This must come after -O2
|
|
|
|
-fno-ignore-asserts
|
2020-12-12 08:55:53 +03:00
|
|
|
if flag(fusion-plugin) && !impl(ghcjs) && !impl(ghc < 8.6)
|
|
|
|
ghc-options: -fplugin Fusion.Plugin
|
|
|
|
else
|
|
|
|
ghc-options: -O0
|
|
|
|
|
|
|
|
common test-dependencies
|
|
|
|
build-depends:
|
2022-08-19 22:15:57 +03:00
|
|
|
streamly-core
|
2023-10-29 11:19:35 +03:00
|
|
|
, base >= 4.9 && < 4.20
|
|
|
|
, containers >= 0.5 && < 0.8
|
2022-08-19 22:15:57 +03:00
|
|
|
, exceptions >= 0.8 && < 0.11
|
|
|
|
, ghc
|
2023-10-29 11:19:35 +03:00
|
|
|
, hspec >= 2.0 && < 2.12
|
2023-06-05 09:56:42 +03:00
|
|
|
, mtl >= 2.2 && < 2.3.2
|
2022-08-19 22:15:57 +03:00
|
|
|
, random >= 1.0.0 && < 1.3
|
|
|
|
, transformers >= 0.4 && < 0.7
|
|
|
|
, QuickCheck >= 2.13 && < 2.15
|
|
|
|
, directory >= 1.2.2 && < 1.4
|
|
|
|
, filepath >= 1.4.1 && < 1.5
|
|
|
|
, temporary >= 1.3 && < 1.4
|
2024-06-26 14:40:28 +03:00
|
|
|
, network >= 3.1 && < 3.3
|
2023-07-25 13:36:47 +03:00
|
|
|
, scientific >= 0.0 && < 0.4
|
2023-10-29 11:19:35 +03:00
|
|
|
, template-haskell >= 2.12 && < 2.22
|
2022-08-19 22:15:57 +03:00
|
|
|
|
2022-08-23 09:17:20 +03:00
|
|
|
if !flag(use-streamly-core)
|
2022-08-19 22:15:57 +03:00
|
|
|
build-depends: streamly
|
2020-12-12 08:55:53 +03:00
|
|
|
|
|
|
|
if flag(fusion-plugin) && !impl(ghcjs) && !impl(ghc < 8.6)
|
|
|
|
build-depends:
|
|
|
|
fusion-plugin >= 0.2 && < 0.3
|
|
|
|
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
-- Library
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
common lib-options
|
|
|
|
import: compile-options
|
|
|
|
, optimization-options
|
|
|
|
, default-extensions
|
|
|
|
, test-dependencies
|
|
|
|
|
|
|
|
library
|
|
|
|
import: lib-options, test-dependencies
|
|
|
|
hs-source-dirs: lib
|
|
|
|
exposed-modules: Streamly.Test.Common
|
2023-06-30 11:24:53 +03:00
|
|
|
if !flag(use-streamly-core)
|
2022-08-19 22:15:57 +03:00
|
|
|
exposed-modules: Streamly.Test.Prelude.Common
|
2021-03-22 22:22:08 +03:00
|
|
|
if flag(limit-build-mem)
|
|
|
|
ghc-options: +RTS -M1500M -RTS
|
|
|
|
|
2020-12-12 08:55:53 +03:00
|
|
|
-------------------------------------------------------------------------------
|
2021-01-04 00:09:38 +03:00
|
|
|
-- Test suite options
|
2020-12-12 08:55:53 +03:00
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
common test-options
|
|
|
|
import: lib-options
|
2020-12-25 19:11:58 +03:00
|
|
|
, threading-options
|
2021-10-05 20:27:40 +03:00
|
|
|
ghc-options: -rtsopts -fno-ignore-asserts
|
2020-12-12 08:55:53 +03:00
|
|
|
include-dirs: .
|
|
|
|
build-depends: streamly-tests
|
|
|
|
|
|
|
|
common always-optimized
|
|
|
|
import: compile-options
|
|
|
|
, threading-options
|
|
|
|
, default-extensions
|
|
|
|
, test-dependencies
|
|
|
|
ghc-options: -O2
|
|
|
|
-fdicts-strict
|
|
|
|
-fmax-worker-args=16
|
|
|
|
-fspec-constr-recursive=16
|
2021-04-05 16:34:23 +03:00
|
|
|
-rtsopts
|
2021-10-05 20:27:40 +03:00
|
|
|
-fno-ignore-asserts
|
2020-12-12 08:55:53 +03:00
|
|
|
if flag(fusion-plugin) && !impl(ghcjs) && !impl(ghc < 8.6)
|
|
|
|
ghc-options: -fplugin Fusion.Plugin
|
|
|
|
|
2021-01-04 00:09:38 +03:00
|
|
|
-------------------------------------------------------------------------------
|
2024-02-19 06:07:44 +03:00
|
|
|
-- Test suites in alphabetical order
|
2021-01-04 00:09:38 +03:00
|
|
|
-------------------------------------------------------------------------------
|
2020-12-12 08:55:53 +03:00
|
|
|
|
2024-02-19 06:07:44 +03:00
|
|
|
test-suite Data.Array
|
2020-12-12 08:55:53 +03:00
|
|
|
import: test-options
|
|
|
|
type: exitcode-stdio-1.0
|
2024-02-19 06:07:44 +03:00
|
|
|
main-is: Streamly/Test/Data/Array.hs
|
|
|
|
ghc-options: -main-is Streamly.Test.Data.Array.main
|
2020-12-12 08:55:53 +03:00
|
|
|
|
2022-11-03 11:12:03 +03:00
|
|
|
test-suite Data.Array.Generic
|
2020-12-12 08:55:53 +03:00
|
|
|
import: test-options
|
|
|
|
type: exitcode-stdio-1.0
|
2022-11-03 11:12:03 +03:00
|
|
|
main-is: Streamly/Test/Data/Array/Generic.hs
|
|
|
|
ghc-options: -main-is Streamly.Test.Data.Array.Generic.main
|
2022-08-23 09:17:20 +03:00
|
|
|
if flag(use-streamly-core)
|
2022-08-19 22:15:57 +03:00
|
|
|
buildable: False
|
2020-12-12 08:55:53 +03:00
|
|
|
|
2024-02-19 06:07:44 +03:00
|
|
|
test-suite Data.Array.Stream
|
2020-12-12 08:55:53 +03:00
|
|
|
import: test-options
|
|
|
|
type: exitcode-stdio-1.0
|
2024-02-19 06:07:44 +03:00
|
|
|
main-is: Streamly/Test/Data/Array/Stream.hs
|
|
|
|
if flag(use-streamly-core)
|
|
|
|
buildable: False
|
2022-08-19 22:15:57 +03:00
|
|
|
|
2024-02-19 06:07:44 +03:00
|
|
|
test-suite Data.Binary
|
2023-07-04 20:37:43 +03:00
|
|
|
import: test-options
|
|
|
|
type: exitcode-stdio-1.0
|
2024-02-19 06:07:44 +03:00
|
|
|
main-is: Streamly/Test/Serialize/Serializable.hs
|
2023-07-04 20:37:43 +03:00
|
|
|
|
2024-02-19 06:07:44 +03:00
|
|
|
test-suite Data.Fold
|
2024-02-15 09:16:43 +03:00
|
|
|
import: test-options
|
|
|
|
type: exitcode-stdio-1.0
|
2024-02-19 06:07:44 +03:00
|
|
|
main-is: Streamly/Test/Data/Fold.hs
|
2024-02-15 09:16:43 +03:00
|
|
|
|
2024-02-19 06:07:44 +03:00
|
|
|
test-suite Data.Fold.Window
|
2022-08-19 22:15:57 +03:00
|
|
|
import: test-options
|
|
|
|
type: exitcode-stdio-1.0
|
2024-02-19 06:07:44 +03:00
|
|
|
main-is: Streamly/Test/Data/Fold/Window.hs
|
|
|
|
ghc-options: -main-is Streamly.Test.Data.Fold.Window.main
|
2020-12-12 08:55:53 +03:00
|
|
|
|
2024-02-19 06:07:44 +03:00
|
|
|
-- The Streamly.Data.List needs to be fixed to enable this
|
|
|
|
-- test-suite Data.List
|
|
|
|
-- import: test-options
|
|
|
|
-- type: exitcode-stdio-1.0
|
|
|
|
-- main-is: Streamly/Test/Data/List.hs
|
|
|
|
-- cpp-options: -DUSE_STREAMLY_LIST
|
|
|
|
-- if !flag(dev)
|
|
|
|
-- buildable: False
|
|
|
|
|
|
|
|
test-suite Data.List.Base
|
2022-07-11 09:09:28 +03:00
|
|
|
import: test-options
|
|
|
|
type: exitcode-stdio-1.0
|
2024-02-19 06:07:44 +03:00
|
|
|
main-is: Streamly/Test/Data/List.hs
|
2022-07-11 09:09:28 +03:00
|
|
|
|
2024-02-19 06:07:44 +03:00
|
|
|
test-suite Data.MutArray
|
2023-01-07 16:35:30 +03:00
|
|
|
import: test-options
|
|
|
|
type: exitcode-stdio-1.0
|
2024-02-19 06:07:44 +03:00
|
|
|
main-is: Streamly/Test/Data/MutArray.hs
|
|
|
|
ghc-options: -main-is Streamly.Test.Data.MutArray.main
|
2023-01-07 16:35:30 +03:00
|
|
|
|
2024-02-19 06:07:44 +03:00
|
|
|
test-suite Data.Parser
|
2023-07-28 21:35:17 +03:00
|
|
|
import: test-options
|
|
|
|
type: exitcode-stdio-1.0
|
2024-02-19 06:07:44 +03:00
|
|
|
main-is: Streamly/Test/Data/Parser.hs
|
|
|
|
if flag(limit-build-mem)
|
|
|
|
ghc-options: +RTS -M4000M -RTS
|
2023-07-28 21:35:17 +03:00
|
|
|
|
2024-02-19 06:07:44 +03:00
|
|
|
test-suite Data.ParserK
|
2023-08-02 18:14:06 +03:00
|
|
|
import: test-options
|
|
|
|
type: exitcode-stdio-1.0
|
2024-02-19 06:07:44 +03:00
|
|
|
main-is: Streamly/Test/Data/ParserK.hs
|
|
|
|
if flag(limit-build-mem)
|
|
|
|
ghc-options: +RTS -M1500M -RTS
|
2023-08-02 18:14:06 +03:00
|
|
|
|
2024-02-19 06:07:44 +03:00
|
|
|
test-suite Data.Ring.Unboxed
|
2023-07-28 20:57:14 +03:00
|
|
|
import: test-options
|
|
|
|
type: exitcode-stdio-1.0
|
2024-02-19 06:07:44 +03:00
|
|
|
main-is: Streamly/Test/Data/Ring/Unboxed.hs
|
|
|
|
ghc-options: -main-is Streamly.Test.Data.Ring.Unboxed.main
|
|
|
|
if flag(use-streamly-core)
|
|
|
|
buildable: False
|
2023-07-28 20:57:14 +03:00
|
|
|
|
2024-02-19 06:07:44 +03:00
|
|
|
-- XXX Rename to MutByteArray
|
2023-07-28 17:00:47 +03:00
|
|
|
test-suite Data.Serialize
|
|
|
|
import: test-options
|
|
|
|
type: exitcode-stdio-1.0
|
|
|
|
main-is: Streamly/Test/Data/Serialize.hs
|
2023-09-13 13:06:55 +03:00
|
|
|
other-modules:
|
|
|
|
Streamly.Test.Data.Serialize.TH
|
|
|
|
Streamly.Test.Data.Serialize.CompatV0
|
|
|
|
Streamly.Test.Data.Serialize.CompatV1
|
2023-07-28 17:00:47 +03:00
|
|
|
ghc-options: -main-is Streamly.Test.Data.Serialize.main
|
2023-08-18 11:52:06 +03:00
|
|
|
if flag(limit-build-mem)
|
|
|
|
ghc-options: +RTS -M1500M -RTS
|
2023-07-28 17:00:47 +03:00
|
|
|
|
2024-02-19 06:07:44 +03:00
|
|
|
test-suite Data.Serialize.Derive.TH
|
|
|
|
import: test-options
|
|
|
|
type: exitcode-stdio-1.0
|
|
|
|
cpp-options: -DUSE_SERIALIZE
|
|
|
|
main-is: Streamly/Test/Data/Unbox.hs
|
|
|
|
ghc-options: -main-is Streamly.Test.Data.Unbox.main
|
|
|
|
|
2023-09-06 20:46:11 +03:00
|
|
|
test-suite Data.Serialize.ENABLE_constructorTagAsString
|
|
|
|
import: test-options
|
|
|
|
type: exitcode-stdio-1.0
|
|
|
|
main-is: Streamly/Test/Data/Serialize.hs
|
2023-09-13 13:06:55 +03:00
|
|
|
other-modules:
|
|
|
|
Streamly.Test.Data.Serialize.TH
|
|
|
|
Streamly.Test.Data.Serialize.CompatV0
|
|
|
|
Streamly.Test.Data.Serialize.CompatV1
|
2023-09-06 20:46:11 +03:00
|
|
|
cpp-options: -DENABLE_constructorTagAsString
|
|
|
|
ghc-options: -main-is Streamly.Test.Data.Serialize.main
|
|
|
|
if flag(limit-build-mem)
|
|
|
|
ghc-options: +RTS -M1500M -RTS
|
|
|
|
|
2024-02-19 06:07:44 +03:00
|
|
|
test-suite Data.SmallArray
|
2021-04-27 00:07:14 +03:00
|
|
|
import: test-options
|
|
|
|
type: exitcode-stdio-1.0
|
2024-02-19 06:07:44 +03:00
|
|
|
main-is: Streamly/Test/Data/SmallArray.hs
|
|
|
|
ghc-options: -main-is Streamly.Test.Data.SmallArray.main
|
|
|
|
if !flag(dev) || flag(use-streamly-core)
|
2022-08-19 22:15:57 +03:00
|
|
|
buildable: False
|
2021-04-27 00:07:14 +03:00
|
|
|
|
2024-02-19 06:07:44 +03:00
|
|
|
test-suite Data.Stream
|
2020-12-12 08:55:53 +03:00
|
|
|
import: test-options
|
|
|
|
type: exitcode-stdio-1.0
|
2024-02-19 06:07:44 +03:00
|
|
|
main-is: Streamly/Test/Data/Stream.hs
|
|
|
|
ghc-options: -main-is Streamly.Test.Data.Stream.main
|
2020-12-12 08:55:53 +03:00
|
|
|
|
2024-02-19 06:07:44 +03:00
|
|
|
test-suite Data.Stream.Concurrent
|
2022-03-15 12:33:33 +03:00
|
|
|
import: test-options
|
|
|
|
type: exitcode-stdio-1.0
|
2024-02-19 06:07:44 +03:00
|
|
|
main-is: Streamly/Test/Data/Stream/Concurrent.hs
|
|
|
|
ghc-options: -main-is Streamly.Test.Data.Stream.Concurrent.main
|
|
|
|
if flag(use-streamly-core)
|
|
|
|
buildable: False
|
2022-03-15 12:33:33 +03:00
|
|
|
|
2024-02-19 06:07:44 +03:00
|
|
|
test-suite Data.Stream.Rate
|
|
|
|
import:always-optimized
|
|
|
|
type: exitcode-stdio-1.0
|
|
|
|
main-is: Streamly/Test/Data/Stream/Rate.hs
|
|
|
|
ghc-options: -main-is Streamly.Test.Data.Stream.Rate.main
|
|
|
|
if flag(dev)
|
|
|
|
buildable: True
|
|
|
|
else
|
|
|
|
buildable: False
|
|
|
|
if flag(use-streamly-core)
|
|
|
|
buildable: False
|
|
|
|
|
|
|
|
-- XXX Rename to MutByteArray.Unbox
|
|
|
|
test-suite Data.Unbox.Derive.Generic
|
2020-12-12 08:55:53 +03:00
|
|
|
import: test-options
|
|
|
|
type: exitcode-stdio-1.0
|
2024-02-19 06:07:44 +03:00
|
|
|
main-is: Streamly/Test/Data/Unbox.hs
|
|
|
|
ghc-options: -main-is Streamly.Test.Data.Unbox.main
|
2020-12-12 08:55:53 +03:00
|
|
|
|
2024-02-19 06:07:44 +03:00
|
|
|
test-suite Data.Unbox.Derive.TH
|
2020-12-12 08:55:53 +03:00
|
|
|
import: test-options
|
|
|
|
type: exitcode-stdio-1.0
|
2024-02-19 06:07:44 +03:00
|
|
|
cpp-options: -DUSE_TH
|
|
|
|
main-is: Streamly/Test/Data/Unbox.hs
|
|
|
|
ghc-options: -main-is Streamly.Test.Data.Unbox.main
|
2020-12-12 08:55:53 +03:00
|
|
|
|
2024-02-19 06:07:44 +03:00
|
|
|
test-suite Data.Unbox.TH
|
2020-12-12 08:55:53 +03:00
|
|
|
import: test-options
|
|
|
|
type: exitcode-stdio-1.0
|
2024-02-19 06:07:44 +03:00
|
|
|
main-is: Streamly/Test/Data/Unbox/TH.hs
|
|
|
|
ghc-options: -main-is Streamly.Test.Data.Unbox.TH.main
|
2020-12-12 08:55:53 +03:00
|
|
|
|
2021-01-04 00:09:38 +03:00
|
|
|
test-suite Data.Unfold
|
2020-12-12 08:55:53 +03:00
|
|
|
import: test-options
|
|
|
|
type: exitcode-stdio-1.0
|
2021-01-04 00:09:38 +03:00
|
|
|
main-is: Streamly/Test/Data/Unfold.hs
|
2020-12-12 08:55:53 +03:00
|
|
|
|
2021-01-04 00:09:38 +03:00
|
|
|
test-suite FileSystem.Event
|
2020-12-12 08:55:53 +03:00
|
|
|
import: test-options
|
|
|
|
type: exitcode-stdio-1.0
|
2021-11-09 12:02:37 +03:00
|
|
|
ghc-options: -main-is Streamly.Test.FileSystem.Event
|
2021-01-04 00:09:38 +03:00
|
|
|
main-is: Streamly/Test/FileSystem/Event.hs
|
2021-11-09 12:02:37 +03:00
|
|
|
other-modules: Streamly.Test.FileSystem.Event.Common
|
2024-04-30 14:18:00 +03:00
|
|
|
if !(os(linux) || os(darwin) || os(windows))
|
|
|
|
buildable: False
|
2022-08-23 09:17:20 +03:00
|
|
|
if flag(use-streamly-core)
|
2022-08-19 22:15:57 +03:00
|
|
|
buildable: False
|
2021-11-09 12:02:37 +03:00
|
|
|
|
|
|
|
test-suite FileSystem.Event.Darwin
|
|
|
|
import: test-options
|
|
|
|
type: exitcode-stdio-1.0
|
|
|
|
main-is: Streamly/Test/FileSystem/Event/Darwin.hs
|
|
|
|
other-modules: Streamly.Test.FileSystem.Event.Common
|
|
|
|
cpp-options: -DFILESYSTEM_EVENT_DARWIN
|
|
|
|
ghc-options: -main-is Streamly.Test.FileSystem.Event.Darwin
|
|
|
|
if !os(darwin)
|
2021-01-04 00:09:38 +03:00
|
|
|
buildable: False
|
2022-08-23 09:17:20 +03:00
|
|
|
if flag(use-streamly-core)
|
2022-08-19 22:15:57 +03:00
|
|
|
buildable: False
|
2020-12-12 08:55:53 +03:00
|
|
|
|
2021-09-30 17:28:28 +03:00
|
|
|
test-suite FileSystem.Event.Linux
|
|
|
|
import: test-options
|
|
|
|
type: exitcode-stdio-1.0
|
2021-11-09 12:02:37 +03:00
|
|
|
main-is: Streamly/Test/FileSystem/Event/Linux.hs
|
|
|
|
other-modules: Streamly.Test.FileSystem.Event.Common
|
|
|
|
cpp-options: -DFILESYSTEM_EVENT_LINUX
|
|
|
|
ghc-options: -main-is Streamly.Test.FileSystem.Event.Linux
|
2023-03-21 06:51:26 +03:00
|
|
|
if !os(linux) || !flag(dev) || flag(use-streamly-core)
|
2022-08-19 22:15:57 +03:00
|
|
|
buildable: False
|
2021-09-30 17:28:28 +03:00
|
|
|
|
|
|
|
test-suite FileSystem.Event.Windows
|
|
|
|
import: test-options
|
|
|
|
type: exitcode-stdio-1.0
|
2021-11-09 12:02:37 +03:00
|
|
|
main-is: Streamly/Test/FileSystem/Event/Windows.hs
|
|
|
|
other-modules: Streamly.Test.FileSystem.Event.Common
|
|
|
|
cpp-options: -DFILESYSTEM_EVENT_WINDOWS
|
|
|
|
ghc-options: -main-is Streamly.Test.FileSystem.Event.Windows
|
|
|
|
if !os(windows)
|
2021-09-30 17:28:28 +03:00
|
|
|
buildable: False
|
2022-08-23 09:17:20 +03:00
|
|
|
if flag(use-streamly-core)
|
2022-08-19 22:15:57 +03:00
|
|
|
buildable: False
|
2021-09-30 17:28:28 +03:00
|
|
|
|
2021-01-04 00:09:38 +03:00
|
|
|
test-suite FileSystem.Handle
|
|
|
|
import: test-options
|
2020-12-12 08:55:53 +03:00
|
|
|
type: exitcode-stdio-1.0
|
2021-01-04 00:09:38 +03:00
|
|
|
main-is: Streamly/Test/FileSystem/Handle.hs
|
|
|
|
ghc-options: -main-is Streamly.Test.FileSystem.Handle.main
|
2022-08-23 09:17:20 +03:00
|
|
|
if flag(use-streamly-core)
|
2022-08-19 22:15:57 +03:00
|
|
|
buildable: False
|
2020-12-12 08:55:53 +03:00
|
|
|
|
2021-01-04 00:09:38 +03:00
|
|
|
test-suite Network.Inet.TCP
|
2023-07-25 11:35:11 +03:00
|
|
|
import: lib-options
|
2020-12-12 08:55:53 +03:00
|
|
|
type: exitcode-stdio-1.0
|
2021-01-04 00:09:38 +03:00
|
|
|
main-is: Streamly/Test/Network/Inet/TCP.hs
|
2023-07-25 11:35:11 +03:00
|
|
|
ghc-options: -rtsopts -fno-ignore-asserts
|
|
|
|
include-dirs: .
|
|
|
|
build-depends: streamly-tests
|
|
|
|
-- Cannot killThread in listen/accept on Windows threaded runtime
|
|
|
|
if !os(windows)
|
|
|
|
ghc-options: -threaded -with-rtsopts=-N
|
2022-08-23 09:17:20 +03:00
|
|
|
if flag(use-streamly-core)
|
2022-08-19 22:15:57 +03:00
|
|
|
buildable: False
|
2020-12-12 08:55:53 +03:00
|
|
|
|
2021-01-04 00:09:38 +03:00
|
|
|
test-suite Network.Socket
|
2023-07-25 11:35:11 +03:00
|
|
|
import: lib-options
|
2020-12-12 08:55:53 +03:00
|
|
|
type: exitcode-stdio-1.0
|
2021-01-04 00:09:38 +03:00
|
|
|
main-is: Streamly/Test/Network/Socket.hs
|
2023-07-25 11:35:11 +03:00
|
|
|
ghc-options: -rtsopts -fno-ignore-asserts
|
|
|
|
include-dirs: .
|
|
|
|
build-depends: streamly-tests
|
|
|
|
-- Cannot killThread in listen/accept on Windows threaded runtime
|
|
|
|
if !os(windows)
|
|
|
|
ghc-options: -threaded -with-rtsopts=-N
|
2022-08-23 09:17:20 +03:00
|
|
|
if flag(use-streamly-core)
|
2022-08-19 22:15:57 +03:00
|
|
|
buildable: False
|
2020-12-12 08:55:53 +03:00
|
|
|
|
2024-02-19 06:07:44 +03:00
|
|
|
test-suite Unicode.Char
|
|
|
|
import: test-options
|
|
|
|
type: exitcode-stdio-1.0
|
|
|
|
main-is: Streamly/Test/Unicode/Char.hs
|
|
|
|
ghc-options: -main-is Streamly.Test.Unicode.Char.main
|
|
|
|
if flag(use-streamly-core) || !flag(dev)
|
|
|
|
buildable: False
|
|
|
|
|
|
|
|
test-suite Unicode.Parser
|
|
|
|
import: test-options
|
|
|
|
type: exitcode-stdio-1.0
|
|
|
|
main-is: Streamly/Test/Unicode/Parser.hs
|
|
|
|
ghc-options: -main-is Streamly.Test.Unicode.Parser.main
|
|
|
|
if flag(use-streamly-core)
|
|
|
|
buildable: False
|
|
|
|
|
|
|
|
test-suite Unicode.Stream
|
|
|
|
import: test-options
|
|
|
|
type: exitcode-stdio-1.0
|
|
|
|
main-is: Streamly/Test/Unicode/Stream.hs
|
|
|
|
ghc-options: -main-is Streamly.Test.Unicode.Stream.main
|
|
|
|
if flag(use-streamly-core)
|
|
|
|
buildable: False
|
|
|
|
|
|
|
|
test-suite version-bounds
|
|
|
|
import: test-options
|
|
|
|
type: exitcode-stdio-1.0
|
|
|
|
main-is: version-bounds.hs
|
|
|
|
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
-- Deprecated
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
|
2021-01-04 00:09:38 +03:00
|
|
|
test-suite Prelude
|
2020-12-12 08:55:53 +03:00
|
|
|
import: test-options
|
|
|
|
type: exitcode-stdio-1.0
|
2021-01-04 00:09:38 +03:00
|
|
|
main-is: Streamly/Test/Prelude.hs
|
|
|
|
ghc-options: -main-is Streamly.Test.Prelude.main
|
2023-06-30 11:24:53 +03:00
|
|
|
if flag(use-streamly-core)
|
2022-08-19 22:15:57 +03:00
|
|
|
buildable: False
|
2020-12-12 08:55:53 +03:00
|
|
|
|
2021-01-04 00:09:38 +03:00
|
|
|
test-suite Prelude.Ahead
|
2020-12-12 08:55:53 +03:00
|
|
|
import: test-options
|
|
|
|
type: exitcode-stdio-1.0
|
2021-01-04 00:09:38 +03:00
|
|
|
main-is: Streamly/Test/Prelude/Ahead.hs
|
|
|
|
ghc-options: -main-is Streamly.Test.Prelude.Ahead.main
|
2023-06-30 11:24:53 +03:00
|
|
|
if flag(use-streamly-core)
|
2022-08-19 22:15:57 +03:00
|
|
|
buildable: False
|
2020-12-12 08:55:53 +03:00
|
|
|
|
2021-01-04 00:09:38 +03:00
|
|
|
test-suite Prelude.Async
|
2020-12-12 08:55:53 +03:00
|
|
|
import: test-options
|
|
|
|
type: exitcode-stdio-1.0
|
2021-01-04 00:09:38 +03:00
|
|
|
main-is: Streamly/Test/Prelude/Async.hs
|
|
|
|
ghc-options: -main-is Streamly.Test.Prelude.Async.main
|
2023-06-30 11:24:53 +03:00
|
|
|
if flag(use-streamly-core)
|
2022-08-19 22:15:57 +03:00
|
|
|
buildable: False
|
2022-09-07 10:47:14 +03:00
|
|
|
|
2021-01-04 00:09:38 +03:00
|
|
|
test-suite Prelude.Concurrent
|
2020-12-12 08:55:53 +03:00
|
|
|
import: test-options
|
|
|
|
type: exitcode-stdio-1.0
|
2021-01-04 00:09:38 +03:00
|
|
|
main-is: Streamly/Test/Prelude/Concurrent.hs
|
|
|
|
ghc-options: -main-is Streamly.Test.Prelude.Concurrent.main
|
2021-03-22 22:22:08 +03:00
|
|
|
if flag(limit-build-mem)
|
|
|
|
ghc-options: +RTS -M2000M -RTS
|
2023-06-30 11:24:53 +03:00
|
|
|
if flag(use-streamly-core)
|
2022-08-19 22:15:57 +03:00
|
|
|
buildable: False
|
2020-12-12 08:55:53 +03:00
|
|
|
|
2021-01-04 00:09:38 +03:00
|
|
|
test-suite Prelude.Fold
|
2020-12-12 08:55:53 +03:00
|
|
|
import: test-options
|
|
|
|
type: exitcode-stdio-1.0
|
2021-01-04 00:09:38 +03:00
|
|
|
main-is: Streamly/Test/Prelude/Fold.hs
|
|
|
|
ghc-options: -main-is Streamly.Test.Prelude.Fold.main
|
2023-06-30 11:24:53 +03:00
|
|
|
if flag(use-streamly-core)
|
2022-08-19 22:15:57 +03:00
|
|
|
buildable: False
|
2020-12-12 08:55:53 +03:00
|
|
|
|
2021-01-04 00:09:38 +03:00
|
|
|
test-suite Prelude.Parallel
|
2020-12-12 08:55:53 +03:00
|
|
|
import: test-options
|
|
|
|
type: exitcode-stdio-1.0
|
2021-01-04 00:09:38 +03:00
|
|
|
main-is: Streamly/Test/Prelude/Parallel.hs
|
|
|
|
ghc-options: -main-is Streamly.Test.Prelude.Parallel.main
|
2023-06-30 11:24:53 +03:00
|
|
|
if flag(use-streamly-core)
|
2022-08-19 22:15:57 +03:00
|
|
|
buildable: False
|
2020-12-12 08:55:53 +03:00
|
|
|
|
2021-01-04 00:09:38 +03:00
|
|
|
test-suite Prelude.Rate
|
|
|
|
import:always-optimized
|
|
|
|
type: exitcode-stdio-1.0
|
|
|
|
main-is: Streamly/Test/Prelude/Rate.hs
|
|
|
|
ghc-options: -main-is Streamly.Test.Prelude.Rate.main
|
|
|
|
if flag(dev)
|
|
|
|
buildable: True
|
|
|
|
else
|
|
|
|
buildable: False
|
2022-08-23 09:17:20 +03:00
|
|
|
if flag(use-streamly-core)
|
2022-08-19 22:15:57 +03:00
|
|
|
buildable: False
|
2021-01-04 00:09:38 +03:00
|
|
|
|
|
|
|
test-suite Prelude.Serial
|
2020-12-12 08:55:53 +03:00
|
|
|
import: test-options
|
|
|
|
type: exitcode-stdio-1.0
|
2021-01-04 00:09:38 +03:00
|
|
|
main-is: Streamly/Test/Prelude/Serial.hs
|
|
|
|
ghc-options: -main-is Streamly.Test.Prelude.Serial.main
|
2021-03-22 22:22:08 +03:00
|
|
|
if flag(limit-build-mem)
|
|
|
|
ghc-options: +RTS -M1500M -RTS
|
2023-06-30 11:24:53 +03:00
|
|
|
if flag(use-streamly-core)
|
2022-08-19 22:15:57 +03:00
|
|
|
buildable: False
|
2021-03-22 22:22:08 +03:00
|
|
|
|
2022-01-06 14:33:56 +03:00
|
|
|
test-suite Prelude.Top
|
|
|
|
import: test-options
|
|
|
|
type: exitcode-stdio-1.0
|
|
|
|
main-is: Streamly/Test/Prelude/Top.hs
|
2023-06-30 11:24:53 +03:00
|
|
|
if flag(use-streamly-core)
|
2022-08-19 22:15:57 +03:00
|
|
|
buildable: False
|
2020-12-12 08:55:53 +03:00
|
|
|
|
2021-01-04 00:09:38 +03:00
|
|
|
test-suite Prelude.WAsync
|
2020-12-12 08:55:53 +03:00
|
|
|
import: test-options
|
|
|
|
type: exitcode-stdio-1.0
|
2021-01-04 00:09:38 +03:00
|
|
|
main-is: Streamly/Test/Prelude/WAsync.hs
|
|
|
|
ghc-options: -main-is Streamly.Test.Prelude.WAsync.main
|
2023-06-30 11:24:53 +03:00
|
|
|
if flag(use-streamly-core)
|
2022-08-19 22:15:57 +03:00
|
|
|
buildable: False
|
2020-12-12 08:55:53 +03:00
|
|
|
|
2021-01-04 00:09:38 +03:00
|
|
|
test-suite Prelude.WSerial
|
2020-12-12 08:55:53 +03:00
|
|
|
import: test-options
|
|
|
|
type: exitcode-stdio-1.0
|
2021-01-04 00:09:38 +03:00
|
|
|
main-is: Streamly/Test/Prelude/WSerial.hs
|
|
|
|
ghc-options: -main-is Streamly.Test.Prelude.WSerial.main
|
2023-06-30 11:24:53 +03:00
|
|
|
if flag(use-streamly-core)
|
2022-08-19 22:15:57 +03:00
|
|
|
buildable: False
|
2020-12-12 08:55:53 +03:00
|
|
|
|
2021-01-04 00:09:38 +03:00
|
|
|
test-suite Prelude.ZipAsync
|
2020-12-12 08:55:53 +03:00
|
|
|
import: test-options
|
|
|
|
type: exitcode-stdio-1.0
|
2021-01-04 00:09:38 +03:00
|
|
|
main-is: Streamly/Test/Prelude/ZipAsync.hs
|
|
|
|
ghc-options: -main-is Streamly.Test.Prelude.ZipAsync.main
|
2021-12-08 08:58:56 +03:00
|
|
|
if flag(limit-build-mem)
|
|
|
|
ghc-options: +RTS -M750M -RTS
|
2023-06-30 11:24:53 +03:00
|
|
|
if flag(use-streamly-core)
|
2022-08-19 22:15:57 +03:00
|
|
|
buildable: False
|
Add test cases for Data.Fold/Array, FileSystem.Handle
Added the following test cases to Data.Fold:
drain, drainBy, mean, stdDev, variance, mconcat, foldMap, foldMapM,
lookup, mapM, teeWithLength, teeWithMax, distribute, partition, unzip
Added the following test cases to Data.Array.Storable.Foreign
* fromList and fromListN
Added FileSystem.Handle module
2020-11-30 19:10:28 +03:00
|
|
|
|
2021-01-04 00:09:38 +03:00
|
|
|
test-suite Prelude.ZipSerial
|
Add test cases for Data.Fold/Array, FileSystem.Handle
Added the following test cases to Data.Fold:
drain, drainBy, mean, stdDev, variance, mconcat, foldMap, foldMapM,
lookup, mapM, teeWithLength, teeWithMax, distribute, partition, unzip
Added the following test cases to Data.Array.Storable.Foreign
* fromList and fromListN
Added FileSystem.Handle module
2020-11-30 19:10:28 +03:00
|
|
|
import: test-options
|
|
|
|
type: exitcode-stdio-1.0
|
2021-01-04 00:09:38 +03:00
|
|
|
main-is: Streamly/Test/Prelude/ZipSerial.hs
|
|
|
|
ghc-options: -main-is Streamly.Test.Prelude.ZipSerial.main
|
2023-06-30 11:24:53 +03:00
|
|
|
if flag(use-streamly-core)
|
2022-08-19 22:15:57 +03:00
|
|
|
buildable: False
|