2020-05-09 09:52:01 +02:00
|
|
|
# XXX: this test is too frigile
|
2016-04-27 20:52:55 +02:00
|
|
|
function mmtest(source, resfile, doctype)
|
2020-05-09 09:52:01 +02:00
|
|
|
weave(
|
|
|
|
"documents/$source",
|
|
|
|
out_path = "documents/multimedia/$resfile",
|
|
|
|
doctype = doctype,
|
|
|
|
template = "templates/mini.tpl",
|
|
|
|
)
|
|
|
|
result = read("documents/multimedia/$resfile", String)
|
|
|
|
ref = read("documents/multimedia/$resfile.ref", String)
|
2016-04-27 20:52:55 +02:00
|
|
|
@test result == ref
|
2017-03-14 20:27:26 +01:00
|
|
|
rm("documents/multimedia/$resfile")
|
2016-04-27 20:52:55 +02:00
|
|
|
end
|
|
|
|
|
2018-07-24 10:46:04 +02:00
|
|
|
mmtest("rich_output.jmd", "rich_output.html", "md2html")
|
2016-04-27 20:52:55 +02:00
|
|
|
mmtest("rich_output.jmd", "rich_output.md", "pandoc")
|
|
|
|
mmtest("rich_output.jmd", "rich_output.tex", "tex")
|
2018-01-03 11:13:12 +01:00
|
|
|
mmtest("rich_output.jmd", "rich_output.github", "github")
|