2014-12-08 09:25:57 +01:00
|
|
|
using Weave
|
2014-11-24 23:08:25 +01:00
|
|
|
using Base.Test
|
2014-12-06 18:16:45 +01:00
|
|
|
|
2015-01-07 09:26:11 +01:00
|
|
|
# Running Changin plotlib in tests segfault, unless they are run
|
|
|
|
# using separate processes.
|
2015-01-07 11:20:48 +01:00
|
|
|
#run(`julia --code-coverage=user -e 'include("winston_formats.jl")'`)
|
2015-01-07 09:26:11 +01:00
|
|
|
#run(`julia --code-coverage=user -e 'include("pyplot_formats.jl")'`)
|
2015-01-02 12:44:53 +01:00
|
|
|
|
2015-01-07 11:20:48 +01:00
|
|
|
info("Test: Chunk options")
|
2015-01-07 09:26:11 +01:00
|
|
|
include("chunk_options.jl")
|
2015-01-07 11:20:48 +01:00
|
|
|
|
2015-01-08 17:52:42 +01:00
|
|
|
info("Test: Caching")
|
|
|
|
include("cache_test.jl")
|
|
|
|
|
|
|
|
info("Test: Weaving with Winston")
|
2015-01-07 11:20:48 +01:00
|
|
|
include("winston_formats.jl")
|
|
|
|
|
|
|
|
info("Test: Weaving with Gadfly")
|
2015-01-07 09:26:11 +01:00
|
|
|
include("gadfly_formats.jl")
|
2014-12-06 18:16:45 +01:00
|
|
|
|
2014-12-22 15:52:52 +01:00
|
|
|
weave("documents/gadfly_markdown_test.jmd", doctype="github",plotlib="gadfly", informat="markdown")
|
|
|
|
result = readall(open("documents/gadfly_markdown_test.md"))
|
|
|
|
ref = readall(open("documents/gadfly_markdown_test_ref.md"))
|
|
|
|
@test result == ref
|
2015-01-09 08:58:42 +01:00
|
|
|
|
|
|
|
info("Test: Weaving with PyPlot")
|
|
|
|
include("pyplot_formats.jl")
|