4synopsis: Tests for streamly
5description: See streamly-benchmarks for the reason why we use a separate
9 description: Use fusion plugin for benchmarks and executables
14 description: Limits memory when building the executables
19 description: Include tests that require large amount of memory
23flag include-flaky-tests
24 description: Include tests that are unpredictable
29 description: Development build
34 description: Use llvm backend for better performance
39 description: off=-O0 (faster builds), on=-O2
43-------------------------------------------------------------------------------
45-------------------------------------------------------------------------------
48 default-language: Haskell2010
51 cpp-options: -DCABAL_OS_DARWIN
54 cpp-options: -DCABAL_OS_LINUX
57 cpp-options: -DCABAL_OS_WINDOWS
60 cpp-options: -DDEVBUILD
64 -Wunrecognised-warning-flags
66 -Wincomplete-record-updates
67 -Wincomplete-uni-patterns
68 -Wredundant-constraints
69 -Wnoncanonical-monad-instances
70 -Wmissing-export-lists
77 ghc-options: -Wmissed-specialisations
78 -Wall-missed-specialisations
80 if flag(limit-build-mem)
81 ghc-options: +RTS -M512M -RTS
83 if flag(use-large-mem)
84 cpp-options: -DUSE_LARGE_MEMORY
86 if flag(include-flaky-tests)
87 cpp-options: -DINCLUDE_FLAKY_TESTS
89common default-extensions
98 ExistentialQuantification
101 GeneralizedNewtypeDeriving
106 MultiParamTypeClasses
115 -- MonoLocalBinds, enabled by TypeFamilies, causes performance
116 -- regressions. Disable it. This must come after TypeFamilies,
117 -- otherwise TypeFamilies will enable it again.
120 -- UndecidableInstances -- Does not show any perf impact
121 -- UnboxedTuples -- interferes with (#.)
123common threading-options
124 ghc-options: -threaded
127common optimization-options
128 if flag(opt) || flag(fusion-plugin)
132 -fspec-constr-recursive=16
133 -- This must come after -O2
135 if flag(fusion-plugin) && !impl(ghcjs) && !impl(ghc < 8.6)
136 ghc-options: -fplugin Fusion.Plugin
140common test-dependencies
144 , base >= 4.9 && < 4.17
145 , containers >= 0.5 && < 0.7
146 , exceptions >= 0.8 && < 0.11
148 , hspec >= 2.0 && < 2.10
149 , mtl >= 2.2 && < 2.3
150 , random >= 1.0.0 && < 1.3
151 , transformers >= 0.4 && < 0.7
152 , QuickCheck >= 2.13 && < 2.15
153 , directory >= 1.2.2 && < 1.4
154 , filepath >= 1.4.1 && < 1.5
155 , temporary >= 1.3 && < 1.4
156 , network >= 3.1 && < 3.2
158 if flag(fusion-plugin) && !impl(ghcjs) && !impl(ghc < 8.6)
160 fusion-plugin >= 0.2 && < 0.3
162-------------------------------------------------------------------------------
164-------------------------------------------------------------------------------
167 import: compile-options
168 , optimization-options
173 import: lib-options, test-dependencies
175 exposed-modules: Streamly.Test.Common
176 , Streamly.Test.Prelude.Common
177 if flag(limit-build-mem)
178 ghc-options: +RTS -M1500M -RTS
180-------------------------------------------------------------------------------
182-------------------------------------------------------------------------------
187 ghc-options: -rtsopts -fno-ignore-asserts
189 build-depends: streamly-tests
191common always-optimized
192 import: compile-options
199 -fspec-constr-recursive=16
202 if flag(fusion-plugin) && !impl(ghcjs) && !impl(ghc < 8.6)
203 ghc-options: -fplugin Fusion.Plugin
205-------------------------------------------------------------------------------
206-- Test suites in sorted order
207-------------------------------------------------------------------------------
211 type: exitcode-stdio-1.0
212 main-is: Streamly/Test/Data/List.hs
213 cpp-options: -DUSE_STREAMLY_LIST
215test-suite Data.List.Base
217 type: exitcode-stdio-1.0
218 main-is: Streamly/Test/Data/List.hs
222 type: exitcode-stdio-1.0
223 main-is: Streamly/Test/Data/Array.hs
224 ghc-options: -main-is Streamly.Test.Data.Array.main
226test-suite Data.Array.Prim
228 type: exitcode-stdio-1.0
229 main-is: Streamly/Test/Data/Array/Prim.hs
230 ghc-options: -main-is Streamly.Test.Data.Array.Prim.main
232test-suite Data.Array.Prim.Pinned
234 type: exitcode-stdio-1.0
235 main-is: Streamly/Test/Data/Array/Prim/Pinned.hs
236 ghc-options: -main-is Streamly.Test.Data.Array.Prim.Pinned.main
238test-suite Data.Array.Foreign
240 type: exitcode-stdio-1.0
241 main-is: Streamly/Test/Data/Array/Foreign.hs
242 ghc-options: -main-is Streamly.Test.Data.Array.Foreign.main
244test-suite Data.Array.Stream.Foreign
246 type: exitcode-stdio-1.0
247 main-is: Streamly/Test/Data/Array/Stream/Foreign.hs
251 type: exitcode-stdio-1.0
252 main-is: Streamly/Test/Data/Fold.hs
254test-suite Data.Fold.Window
256 type: exitcode-stdio-1.0
257 main-is: Streamly/Test/Data/Fold/Window.hs
258 ghc-options: -main-is Streamly.Test.Data.Fold.Window.main
260test-suite Data.Parser
262 type: exitcode-stdio-1.0
263 main-is: Streamly/Test/Data/Parser.hs
264 if flag(limit-build-mem)
265 ghc-options: +RTS -M1000M -RTS
267test-suite Data.Parser.ParserD
269 type: exitcode-stdio-1.0
270 main-is: Streamly/Test/Data/Parser/ParserD.hs
271 if flag(limit-build-mem)
272 ghc-options: +RTS -M1000M -RTS
274test-suite Data.SmallArray
276 type: exitcode-stdio-1.0
277 main-is: Streamly/Test/Data/SmallArray.hs
278 ghc-options: -main-is Streamly.Test.Data.SmallArray.main
280test-suite Data.Unfold
282 type: exitcode-stdio-1.0
283 main-is: Streamly/Test/Data/Unfold.hs
285test-suite FileSystem.Event
287 type: exitcode-stdio-1.0
288 ghc-options: -main-is Streamly.Test.FileSystem.Event
289 main-is: Streamly/Test/FileSystem/Event.hs
290 other-modules: Streamly.Test.FileSystem.Event.Common
292test-suite FileSystem.Event.Darwin
294 type: exitcode-stdio-1.0
295 main-is: Streamly/Test/FileSystem/Event/Darwin.hs
296 other-modules: Streamly.Test.FileSystem.Event.Common
297 cpp-options: -DFILESYSTEM_EVENT_DARWIN
298 ghc-options: -main-is Streamly.Test.FileSystem.Event.Darwin
302test-suite FileSystem.Event.Linux
304 type: exitcode-stdio-1.0
305 main-is: Streamly/Test/FileSystem/Event/Linux.hs
306 other-modules: Streamly.Test.FileSystem.Event.Common
307 cpp-options: -DFILESYSTEM_EVENT_LINUX
308 ghc-options: -main-is Streamly.Test.FileSystem.Event.Linux
312test-suite FileSystem.Event.Windows
314 type: exitcode-stdio-1.0
315 main-is: Streamly/Test/FileSystem/Event/Windows.hs
316 other-modules: Streamly.Test.FileSystem.Event.Common
317 cpp-options: -DFILESYSTEM_EVENT_WINDOWS
318 ghc-options: -main-is Streamly.Test.FileSystem.Event.Windows
322test-suite FileSystem.Handle
324 type: exitcode-stdio-1.0
325 main-is: Streamly/Test/FileSystem/Handle.hs
326 ghc-options: -main-is Streamly.Test.FileSystem.Handle.main
328test-suite Network.Inet.TCP
330 type: exitcode-stdio-1.0
331 main-is: Streamly/Test/Network/Inet/TCP.hs
333test-suite Network.Socket
335 type: exitcode-stdio-1.0
336 main-is: Streamly/Test/Network/Socket.hs
340 type: exitcode-stdio-1.0
341 main-is: Streamly/Test/Prelude.hs
342 ghc-options: -main-is Streamly.Test.Prelude.main
344test-suite Prelude.Ahead
346 type: exitcode-stdio-1.0
347 main-is: Streamly/Test/Prelude/Ahead.hs
348 ghc-options: -main-is Streamly.Test.Prelude.Ahead.main
350test-suite Prelude.Async
352 type: exitcode-stdio-1.0
353 main-is: Streamly/Test/Prelude/Async.hs
354 ghc-options: -main-is Streamly.Test.Prelude.Async.main
356test-suite Prelude.Concurrent
358 type: exitcode-stdio-1.0
359 main-is: Streamly/Test/Prelude/Concurrent.hs
360 ghc-options: -main-is Streamly.Test.Prelude.Concurrent.main
361 if flag(limit-build-mem)
362 ghc-options: +RTS -M2000M -RTS
364test-suite Prelude.Fold
366 type: exitcode-stdio-1.0
367 main-is: Streamly/Test/Prelude/Fold.hs
368 ghc-options: -main-is Streamly.Test.Prelude.Fold.main
370test-suite Prelude.Parallel
372 type: exitcode-stdio-1.0
373 main-is: Streamly/Test/Prelude/Parallel.hs
374 ghc-options: -main-is Streamly.Test.Prelude.Parallel.main
376test-suite Prelude.Rate
377 import:always-optimized
378 type: exitcode-stdio-1.0
379 main-is: Streamly/Test/Prelude/Rate.hs
380 ghc-options: -main-is Streamly.Test.Prelude.Rate.main
386test-suite Prelude.Serial
388 type: exitcode-stdio-1.0
389 main-is: Streamly/Test/Prelude/Serial.hs
390 ghc-options: -main-is Streamly.Test.Prelude.Serial.main
391 if flag(limit-build-mem)
392 ghc-options: +RTS -M1500M -RTS
394test-suite Prelude.Top
396 type: exitcode-stdio-1.0
397 main-is: Streamly/Test/Prelude/Top.hs
399test-suite Prelude.WAsync
401 type: exitcode-stdio-1.0
402 main-is: Streamly/Test/Prelude/WAsync.hs
403 ghc-options: -main-is Streamly.Test.Prelude.WAsync.main
405test-suite Prelude.WSerial
407 type: exitcode-stdio-1.0
408 main-is: Streamly/Test/Prelude/WSerial.hs
409 ghc-options: -main-is Streamly.Test.Prelude.WSerial.main
411test-suite Prelude.ZipAsync
413 type: exitcode-stdio-1.0
414 main-is: Streamly/Test/Prelude/ZipAsync.hs
415 ghc-options: -main-is Streamly.Test.Prelude.ZipAsync.main
416 if flag(limit-build-mem)
417 ghc-options: +RTS -M750M -RTS
419test-suite Prelude.ZipSerial
421 type: exitcode-stdio-1.0
422 main-is: Streamly/Test/Prelude/ZipSerial.hs
423 ghc-options: -main-is Streamly.Test.Prelude.ZipSerial.main
425test-suite Unicode.Stream
427 type: exitcode-stdio-1.0
428 main-is: Streamly/Test/Unicode/Stream.hs
429 ghc-options: -main-is Streamly.Test.Unicode.Stream.main
431test-suite Unicode.Char
433 type: exitcode-stdio-1.0
434 main-is: Streamly/Test/Unicode/Char.hs
435 ghc-options: -main-is Streamly.Test.Unicode.Char.main
441test-suite version-bounds
443 type: exitcode-stdio-1.0
444 main-is: version-bounds.hs
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list