1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
module Examples.Test.Util(main) where
import Development.Shake.Util
import Examples.Util
main = shaken test $ \args obj -> return ()
test build obj = do
parseMakefile "" === []
parseMakefile "a:b c\ndef : ee" === [("a",["b","c"]),("def",["ee"])]
parseMakefile "a: #comment\n#comment : b\nc : d" === [("a",[]),("c",["d"])]
parseMakefile "a \\\n\t:b" === [("a",["b"])]
parseMakefile "#comment\\ a : b" === []
parseMakefile "a: b c \\\n d e\n\nf:g" === [("a",["b","c","d","e"]),("f",["g"])]
parseMakefile "foo/bar: \\\r\n c:/a1 \\\r\n x\r\n" === [("foo/bar",["c:/a1","x"])]
|