2012-10-10 07:58:00 +04:00
|
|
|
module VerifyInline where
|
|
|
|
|
|
|
|
import Graphics.Vty.Inline
|
2013-12-20 10:24:56 +04:00
|
|
|
import Graphics.Vty.Output
|
|
|
|
import Graphics.Vty.Output.TerminfoBased as TerminfoBased
|
2013-07-27 12:00:25 +04:00
|
|
|
|
2013-12-20 10:24:56 +04:00
|
|
|
import Verify.Graphics.Vty.Output
|
2012-10-10 07:58:00 +04:00
|
|
|
|
|
|
|
import Verify
|
|
|
|
|
|
|
|
import Distribution.TestSuite
|
|
|
|
|
2013-07-27 12:00:25 +04:00
|
|
|
import System.IO
|
|
|
|
|
2012-10-10 07:58:00 +04:00
|
|
|
tests :: IO [Test]
|
2014-04-12 04:51:13 +04:00
|
|
|
tests = concat <$> forM terminalsOfInterest (\termName -> return $
|
2012-10-10 07:58:00 +04:00
|
|
|
[ Test $ TestInstance
|
|
|
|
{ name = "verify vty inline"
|
|
|
|
, run = do
|
2013-07-27 12:00:25 +04:00
|
|
|
{- disabled because I cannot get useful output out of cabal why this fails.
|
2014-04-12 07:54:00 +04:00
|
|
|
nullOut <- openFile "/dev/null" WriteMode
|
|
|
|
t <- TerminfoBased.reserveTerminal termName nullOut
|
|
|
|
putAttrChange t $ default_all
|
|
|
|
releaseTerminal t
|
2013-07-27 12:00:25 +04:00
|
|
|
-}
|
2012-10-10 07:58:00 +04:00
|
|
|
return $ Finished Pass
|
|
|
|
, tags = []
|
|
|
|
, options = []
|
|
|
|
, setOption = \_ _ -> Left "no options supported"
|
|
|
|
}
|
2013-07-27 12:00:25 +04:00
|
|
|
])
|