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]
|
2013-07-27 12:00:25 +04:00
|
|
|
tests = concat <$> forM terminals_of_interest (\term_name -> 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.
|
|
|
|
null_out <- openFile "/dev/null" WriteMode
|
|
|
|
t <- TerminfoBased.reserve_terminal term_name null_out
|
2012-10-10 07:58:00 +04:00
|
|
|
put_attr_change t $ default_all
|
2013-07-27 12:00:25 +04:00
|
|
|
release_terminal t
|
|
|
|
-}
|
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
|
|
|
])
|