on master help sign in
add scaffold for input test
2b7c82aCorey O'Connor
test/VerifyUsingMockInput.hsnew file+17
@@ -0,0 +1,17 @@
1+{-# LANGUAGE ScopedTypeVariables #-}
2+{- We setup the environment to envoke certain terminals of interest.
3+ - This assumes appropriate definitions exist in the current environment for the terminals of
4+ - interest.
5+ -}
6+module VerifyUsingMockInput where
7+import Verify
8+
9+import Graphics.Vty
10+
11+import Control.Monad
12+
13+import System.Posix.Env
14+import System.IO
15+
16+tests :: IO [Test]
17+tests = return []
vty.cabal+43−75
@@ -101,24 +101,18 @@ test-suite verify-attribute-ops
101 hs-source-dirs: test
101 hs-source-dirs: test
102 test-module: VerifyAttributeOps
102 test-module: VerifyAttributeOps
103 build-depends: vty,
103 build-depends: vty,
104− Cabal == 1.17.*,
104+ Cabal == 1.18.*,
105− QuickCheck >= 2.6,
105+ QuickCheck >= 2.4,
106 random == 1.0.*,
106 random == 1.0.*,
107 base >= 4 && < 5,
107 base >= 4 && < 5,
108 bytestring,
108 bytestring,
109 containers,
109 containers,
110 deepseq >= 1.1 && < 1.4,
110 deepseq >= 1.1 && < 1.4,
111− ghc-prim,
112− lens,
113 mtl >= 1.1.1.0 && < 2.2,
111 mtl >= 1.1.1.0 && < 2.2,
114− parallel >= 2.2 && < 3.3,
115− parsec >= 2 && < 4,
116− terminfo >= 0.3 && < 0.4,
117 text >= 0.11.3,
112 text >= 0.11.3,
118 unix,
113 unix,
119 utf8-string >= 0.3 && < 0.4,
114 utf8-string >= 0.3 && < 0.4,
120 vector >= 0.7
115 vector >= 0.7
121−
122
116
123test-suite verify-using-mock-terminal
117test-suite verify-using-mock-terminal
124 default-language: Haskell2010
118 default-language: Haskell2010
@@ -138,19 +132,14 @@ test-suite verify-using-mock-terminal
138 Verify.Graphics.Vty.Terminal
132 Verify.Graphics.Vty.Terminal
139
133
140 build-depends: vty,
134 build-depends: vty,
141− Cabal == 1.17.*,
135+ Cabal == 1.18.*,
142 QuickCheck >= 2.4,
136 QuickCheck >= 2.4,
143 random == 1.0.*,
137 random == 1.0.*,
144 base >= 4 && < 5,
138 base >= 4 && < 5,
145 bytestring,
139 bytestring,
146 containers,
140 containers,
147 deepseq >= 1.1 && < 1.4,
141 deepseq >= 1.1 && < 1.4,
148− ghc-prim,
149− lens,
150 mtl >= 1.1.1.0 && < 2.2,
142 mtl >= 1.1.1.0 && < 2.2,
151− parallel >= 2.2 && < 3.3,
152− parsec >= 2 && < 4,
153− terminfo >= 0.3 && < 0.4,
154 text >= 0.11.3,
143 text >= 0.11.3,
155 unix,
144 unix,
156 utf8-string >= 0.3 && < 0.4,
145 utf8-string >= 0.3 && < 0.4,
@@ -174,18 +163,14 @@ test-suite verify-terminal
174 Verify.Graphics.Vty.Terminal
163 Verify.Graphics.Vty.Terminal
175
164
176 build-depends: vty,
165 build-depends: vty,
177− Cabal == 1.17.*,
166+ Cabal == 1.18.*,
178 QuickCheck >= 2.4,
167 QuickCheck >= 2.4,
179 random == 1.0.*,
168 random == 1.0.*,
180 base >= 4 && < 5,
169 base >= 4 && < 5,
181 bytestring,
170 bytestring,
182 containers,
171 containers,
183 deepseq >= 1.1 && < 1.4,
172 deepseq >= 1.1 && < 1.4,
184− ghc-prim,
185− lens,
186 mtl >= 1.1.1.0 && < 2.2,
173 mtl >= 1.1.1.0 && < 2.2,
187− parallel >= 2.2 && < 3.3,
188− parsec >= 2 && < 4,
189 terminfo >= 0.3 && < 0.4,
174 terminfo >= 0.3 && < 0.4,
190 text >= 0.11.3,
175 text >= 0.11.3,
191 unix,
176 unix,
@@ -209,24 +194,18 @@ test-suite verify-display-attributes
209 Verify.Graphics.Vty.Span
194 Verify.Graphics.Vty.Span
210
195
211 build-depends: vty,
196 build-depends: vty,
212− Cabal == 1.17.*,
197+ Cabal == 1.18.*,
213 QuickCheck >= 2.4,
198 QuickCheck >= 2.4,
214 random == 1.0.*,
199 random == 1.0.*,
215 base >= 4 && < 5,
200 base >= 4 && < 5,
216 bytestring,
201 bytestring,
217 containers,
202 containers,
218 deepseq >= 1.1 && < 1.4,
203 deepseq >= 1.1 && < 1.4,
219− ghc-prim,
220− lens,
221 mtl >= 1.1.1.0 && < 2.2,
204 mtl >= 1.1.1.0 && < 2.2,
222− parallel >= 2.2 && < 3.3,
223− parsec >= 2 && < 4,
224− terminfo >= 0.3 && < 0.4,
225 text >= 0.11.3,
205 text >= 0.11.3,
226 unix,
206 unix,
227 utf8-string >= 0.3 && < 0.4,
207 utf8-string >= 0.3 && < 0.4,
228 vector >= 0.7
208 vector >= 0.7
229−
230
209
231test-suite verify-empty-image-props
210test-suite verify-empty-image-props
232 default-language: Haskell2010
211 default-language: Haskell2010
@@ -240,24 +219,18 @@ test-suite verify-empty-image-props
240 other-modules: Verify
219 other-modules: Verify
241
220
242 build-depends: vty,
221 build-depends: vty,
243− Cabal == 1.17.*,
222+ Cabal == 1.18.*,
244 QuickCheck >= 2.4,
223 QuickCheck >= 2.4,
245 random == 1.0.*,
224 random == 1.0.*,
246 base >= 4 && < 5,
225 base >= 4 && < 5,
247 bytestring,
226 bytestring,
248 containers,
227 containers,
249 deepseq >= 1.1 && < 1.4,
228 deepseq >= 1.1 && < 1.4,
250− ghc-prim,
251− lens,
252 mtl >= 1.1.1.0 && < 2.2,
229 mtl >= 1.1.1.0 && < 2.2,
253− parallel >= 2.2 && < 3.3,
254− parsec >= 2 && < 4,
255− terminfo >= 0.3 && < 0.4,
256 text >= 0.11.3,
230 text >= 0.11.3,
257 unix,
231 unix,
258 utf8-string >= 0.3 && < 0.4,
232 utf8-string >= 0.3 && < 0.4,
259 vector >= 0.7
233 vector >= 0.7
260−
261
234
262test-suite verify-eval-terminfo-caps
235test-suite verify-eval-terminfo-caps
263 default-language: Haskell2010
236 default-language: Haskell2010
@@ -271,24 +244,19 @@ test-suite verify-eval-terminfo-caps
271 other-modules: Verify
244 other-modules: Verify
272
245
273 build-depends: vty,
246 build-depends: vty,
274− Cabal == 1.17.*,
247+ Cabal == 1.18.*,
275 QuickCheck >= 2.4,
248 QuickCheck >= 2.4,
276 random == 1.0.*,
249 random == 1.0.*,
277 base >= 4 && < 5,
250 base >= 4 && < 5,
278 bytestring,
251 bytestring,
279 containers,
252 containers,
280 deepseq >= 1.1 && < 1.4,
253 deepseq >= 1.1 && < 1.4,
281− ghc-prim,
282− lens,
283 mtl >= 1.1.1.0 && < 2.2,
254 mtl >= 1.1.1.0 && < 2.2,
284− parallel >= 2.2 && < 3.3,
285− parsec >= 2 && < 4,
286 terminfo >= 0.3 && < 0.4,
255 terminfo >= 0.3 && < 0.4,
287 text >= 0.11.3,
256 text >= 0.11.3,
288 unix,
257 unix,
289 utf8-string >= 0.3 && < 0.4,
258 utf8-string >= 0.3 && < 0.4,
290 vector >= 0.7
259 vector >= 0.7
291−
292
260
293test-suite verify-image-ops
261test-suite verify-image-ops
294 default-language: Haskell2010
262 default-language: Haskell2010
@@ -304,24 +272,18 @@ test-suite verify-image-ops
304 Verify.Graphics.Vty.Image
272 Verify.Graphics.Vty.Image
305
273
306 build-depends: vty,
274 build-depends: vty,
307− Cabal == 1.17.*,
275+ Cabal == 1.18.*,
308 QuickCheck >= 2.4,
276 QuickCheck >= 2.4,
309 random == 1.0.*,
277 random == 1.0.*,
310 base >= 4 && < 5,
278 base >= 4 && < 5,
311 bytestring,
279 bytestring,
312 containers,
280 containers,
313 deepseq >= 1.1 && < 1.4,
281 deepseq >= 1.1 && < 1.4,
314− ghc-prim,
315− lens,
316 mtl >= 1.1.1.0 && < 2.2,
282 mtl >= 1.1.1.0 && < 2.2,
317− parallel >= 2.2 && < 3.3,
318− parsec >= 2 && < 4,
319− terminfo >= 0.3 && < 0.4,
320 text >= 0.11.3,
283 text >= 0.11.3,
321 unix,
284 unix,
322 utf8-string >= 0.3 && < 0.4,
285 utf8-string >= 0.3 && < 0.4,
323 vector >= 0.7
286 vector >= 0.7
324−
325
287
326test-suite verify-image-trans
288test-suite verify-image-trans
327 default-language: Haskell2010
289 default-language: Haskell2010
@@ -337,24 +299,18 @@ test-suite verify-image-trans
337 Verify.Graphics.Vty.Image
299 Verify.Graphics.Vty.Image
338
300
339 build-depends: vty,
301 build-depends: vty,
340− Cabal == 1.17.*,
302+ Cabal == 1.18.*,
341 QuickCheck >= 2.4,
303 QuickCheck >= 2.4,
342 random == 1.0.*,
304 random == 1.0.*,
343 base >= 4 && < 5,
305 base >= 4 && < 5,
344 bytestring,
306 bytestring,
345 containers,
307 containers,
346 deepseq >= 1.1 && < 1.4,
308 deepseq >= 1.1 && < 1.4,
347− ghc-prim,
348− lens,
349 mtl >= 1.1.1.0 && < 2.2,
309 mtl >= 1.1.1.0 && < 2.2,
350− parallel >= 2.2 && < 3.3,
351− parsec >= 2 && < 4,
352− terminfo >= 0.3 && < 0.4,
353 text >= 0.11.3,
310 text >= 0.11.3,
354 unix,
311 unix,
355 utf8-string >= 0.3 && < 0.4,
312 utf8-string >= 0.3 && < 0.4,
356 vector >= 0.7
313 vector >= 0.7
357−
358
314
359test-suite verify-inline
315test-suite verify-inline
360 default-language: Haskell2010
316 default-language: Haskell2010
@@ -369,24 +325,18 @@ test-suite verify-inline
369 Verify.Graphics.Vty.Terminal
325 Verify.Graphics.Vty.Terminal
370
326
371 build-depends: vty,
327 build-depends: vty,
372− Cabal == 1.17.*,
328+ Cabal == 1.18.*,
373 QuickCheck >= 2.4,
329 QuickCheck >= 2.4,
374 random == 1.0.*,
330 random == 1.0.*,
375 base >= 4 && < 5,
331 base >= 4 && < 5,
376 bytestring,
332 bytestring,
377 containers,
333 containers,
378 deepseq >= 1.1 && < 1.4,
334 deepseq >= 1.1 && < 1.4,
379− ghc-prim,
380− lens,
381 mtl >= 1.1.1.0 && < 2.2,
335 mtl >= 1.1.1.0 && < 2.2,
382− parallel >= 2.2 && < 3.3,
383− parsec >= 2 && < 4,
384− terminfo >= 0.3 && < 0.4,
385 text >= 0.11.3,
336 text >= 0.11.3,
386 unix,
337 unix,
387 utf8-string >= 0.3 && < 0.4,
338 utf8-string >= 0.3 && < 0.4,
388 vector >= 0.7
339 vector >= 0.7
389−
390
340
391test-suite verify-parse-terminfo-caps
341test-suite verify-parse-terminfo-caps
392 default-language: Haskell2010
342 default-language: Haskell2010
@@ -401,18 +351,14 @@ test-suite verify-parse-terminfo-caps
401 Verify.Data.Terminfo.Parse
351 Verify.Data.Terminfo.Parse
402
352
403 build-depends: vty,
353 build-depends: vty,
404− Cabal == 1.17.*,
354+ Cabal == 1.18.*,
405 QuickCheck >= 2.4,
355 QuickCheck >= 2.4,
406 random == 1.0.*,
356 random == 1.0.*,
407 base >= 4 && < 5,
357 base >= 4 && < 5,
408 bytestring,
358 bytestring,
409 containers,
359 containers,
410 deepseq >= 1.1 && < 1.4,
360 deepseq >= 1.1 && < 1.4,
411− ghc-prim,
412− lens,
413 mtl >= 1.1.1.0 && < 2.2,
361 mtl >= 1.1.1.0 && < 2.2,
414− parallel >= 2.2 && < 3.3,
415− parsec >= 2 && < 4,
416 terminfo >= 0.3 && < 0.4,
362 terminfo >= 0.3 && < 0.4,
417 text >= 0.11.3,
363 text >= 0.11.3,
418 unix,
364 unix,
@@ -436,7 +382,7 @@ test-suite verify-simple-span-generation
436 Verify.Graphics.Vty.Span
382 Verify.Graphics.Vty.Span
437
383
438 build-depends: vty,
384 build-depends: vty,
439− Cabal == 1.17.*,
385+ Cabal == 1.18.*,
440 QuickCheck >= 2.4,
386 QuickCheck >= 2.4,
441 random == 1.0.*,
387 random == 1.0.*,
442 base >= 4 && < 5,
388 base >= 4 && < 5,
@@ -449,6 +395,7 @@ test-suite verify-simple-span-generation
449 utf8-string >= 0.3 && < 0.4,
395 utf8-string >= 0.3 && < 0.4,
450 vector >= 0.7
396 vector >= 0.7
451
397
398+
452test-suite verify-crop-span-generation
399test-suite verify-crop-span-generation
453 default-language: Haskell2010
400 default-language: Haskell2010
454
401
@@ -466,7 +413,7 @@ test-suite verify-crop-span-generation
466 Verify.Graphics.Vty.Span
413 Verify.Graphics.Vty.Span
467
414
468 build-depends: vty,
415 build-depends: vty,
469− Cabal == 1.17.*,
416+ Cabal == 1.18.*,
470 QuickCheck >= 2.4,
417 QuickCheck >= 2.4,
471 random == 1.0.*,
418 random == 1.0.*,
472 base >= 4 && < 5,
419 base >= 4 && < 5,
@@ -478,6 +425,7 @@ test-suite verify-crop-span-generation
478 unix,
425 unix,
479 utf8-string >= 0.3 && < 0.4,
426 utf8-string >= 0.3 && < 0.4,
480 vector >= 0.7
427 vector >= 0.7
428+
481
429
482test-suite verify-layers-span-generation
430test-suite verify-layers-span-generation
483 default-language: Haskell2010
431 default-language: Haskell2010
@@ -496,7 +444,7 @@ test-suite verify-layers-span-generation
496 Verify.Graphics.Vty.Span
444 Verify.Graphics.Vty.Span
497
445
498 build-depends: vty,
446 build-depends: vty,
499− Cabal == 1.17.*,
447+ Cabal == 1.18.*,
500 QuickCheck >= 2.4,
448 QuickCheck >= 2.4,
501 random == 1.0.*,
449 random == 1.0.*,
502 base >= 4 && < 5,
450 base >= 4 && < 5,
@@ -521,19 +469,39 @@ test-suite verify-utf8-width
521 other-modules: Verify
469 other-modules: Verify
522
470
523 build-depends: vty,
471 build-depends: vty,
524− Cabal == 1.17.*,
472+ Cabal == 1.18.*,
473+ QuickCheck >= 2.4,
474+ random == 1.0.*,
475+ base >= 4 && < 5,
476+ bytestring,
477+ containers,
478+ deepseq >= 1.1 && < 1.4,
479+ mtl >= 1.1.1.0 && < 2.2,
480+ text >= 0.11.3,
481+ unix,
482+ utf8-string >= 0.3 && < 0.4,
483+ vector >= 0.7
484+
485+test-suite verify-using-mock-input
486+ default-language: Haskell2010
487+
488+ type: detailed-0.9
489+
490+ hs-source-dirs: test
491+
492+ test-module: VerifyUsingMockInput
493+
494+ other-modules: Verify
495+
496+ build-depends: vty,
497+ Cabal == 1.18.*,
525 QuickCheck >= 2.4,
498 QuickCheck >= 2.4,
526 random == 1.0.*,
499 random == 1.0.*,
527 base >= 4 && < 5,
500 base >= 4 && < 5,
528 bytestring,
501 bytestring,
529 containers,
502 containers,
530 deepseq >= 1.1 && < 1.4,
503 deepseq >= 1.1 && < 1.4,
531− ghc-prim,
532− lens,
533 mtl >= 1.1.1.0 && < 2.2,
504 mtl >= 1.1.1.0 && < 2.2,
534− parallel >= 2.2 && < 3.3,
535− parsec >= 2 && < 4,
536− terminfo >= 0.3 && < 0.4,
537 text >= 0.11.3,
505 text >= 0.11.3,
538 unix,
506 unix,
539 utf8-string >= 0.3 && < 0.4,
507 utf8-string >= 0.3 && < 0.4,
@@ -574,7 +542,7 @@ executable vty-benchmark
574 build-depends: vty,
542 build-depends: vty,
575 base >= 4 && < 5,
543 base >= 4 && < 5,
576 bytestring,
544 bytestring,
577− Cabal == 1.17.*,
545+ Cabal == 1.18.*,
578 containers,
546 containers,
579 deepseq >= 1.1 && < 1.4,
547 deepseq >= 1.1 && < 1.4,
580 ghc-prim,
548 ghc-prim,