test/*/*.anf
libpeerconnection.log
+
+tags
+TAGS
--- /dev/null
+import Distribution.Simple
+main = defaultMain
try:
release = version + ' git=' + subprocess.check_output(["git", "describe", "--always"])
except subprocess.CalledProcessError:
- release = '?'
+ release = version + ' gitless'
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Cabal-Version: >=1.14
Build-Type: Simple
Stability: alpha
-Copyright: Copyright (c) 2007-2012,
+Copyright: Copyright (c) 2007-2013,
Nathaniel W. Filardo, Tim Vieira, wren ng thornton
License: OtherLicense
License-File: LICENSE
-main-is Dyna.Main.Driver
Build-Depends: ansi-wl-pprint >= 0.6,
- base >=4,
+ base >=4 && <6,
bytestring >=0.9,
charset >=0.3,
containers >=0.4,
-main-is Dyna.Main.TestsDriver
Build-Depends: ansi-wl-pprint >= 0.6,
- base >=4,
+ base >=4 && <6,
bytestring >=0.9,
charset >=0.3,
containers >=0.4,
module Dyna.Analysis.ANF (
Crux, EvalCrux(..), UnifCrux(..), cruxIsEval, cruxVars, allCruxVars,
- Rule(..), ANFAnnots, ANFWarns,
+ Rule(..), RuleIx, ANFAnnots, ANFWarns,
normTerm, normRule, runNormalize,
-- * Internals
import System.IO.Error
import System.Process
import Test.Framework as TF
-import Test.Framework.Providers.Program
import Test.Framework.TH
import Test.Golden
import qualified Data.Maybe as MA
import qualified Data.Set as S
import Data.String
+import Data.Version (showVersion)
import Dyna.Analysis.Aggregation
import Dyna.Analysis.ANF
import Dyna.Analysis.ANFPretty
import qualified Text.Trifecta as T
import qualified Text.Trifecta.Result as TR
+import qualified Paths_dyna as CPD
+
+------------------------------------------------------------------------}}}
+-- Version display {{{
+
+version :: String
+version = showVersion (CPD.version)
+
------------------------------------------------------------------------}}}
-- Dumping {{{
quickExit QEVersion = putStrLn $ "Dyna " ++ version
quickExit QEVersionNumber = putStrLn version
-version :: String
-version = "0.4" -- XREF:VERSION
-
qeBanner :: String -> IO ()
qeBanner s = putStrLn $ "Dyna " ++ version ++ ": " ++ s
------------------------------------------------------------------------}}}
-- Pipeline! {{{
-processFile :: (?dcfg :: DynacConfig) => String -> IO ()
+processFile :: (?dcfg :: DynacConfig) => FilePath -> IO ()
processFile fileName = bracket openOut hClose go
where
openOut = maybe (return stdout) (flip openFile WriteMode)
import Test.Framework.Providers.HUnit
import Test.Framework.TH
import Test.HUnit
+import qualified Text.PrettyPrint.ANSI.Leijen as PPA
import Text.Trifecta
import Dyna.XXX.Trifecta
import Dyna.XXX.TrifectaTest
+pa :: Parser String
pa = parens (many $ char 'a')
+case_incrementality0 :: Assertion
case_incrementality0 =
unsafeFS (parseByteString pa mempty fullstr)
@=? unsafeFS (starve (feed fullstr (stepParser (release mempty *> pa) mempty B8.empty)))
where
fullstr = B8.pack "(aa)"
+case_incrementality1 :: Assertion
case_incrementality1 =
unsafeFS (parseByteString pa mempty fullstr)
@=? unsafeFS (starve (feed tstr (feed istr (stepParser (release mempty *> pa) mempty B8.empty))))
tstr = B8.pack "a)"
-}
+interactTest :: (Show a) => Parser a -> [String] -> (Either PPA.Doc a, [String])
interactTest p (i:is) = runState (triInteract p next success failure i) is
where
next = do