diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-09-11 16:52:50 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-09-11 16:52:50 -0400 |
| commit | 15c67d2d50aae11dd425ad2629ebc9770fb95f30 (patch) | |
| tree | a65c5de1d635ca077d5d6473467bbaff7e1a91f4 /doc | |
| parent | 4af844732a88393b172d33676732580b056910f6 (diff) | |
| download | zig-15c67d2d50aae11dd425ad2629ebc9770fb95f30.tar.gz zig-15c67d2d50aae11dd425ad2629ebc9770fb95f30.zip | |
fix docgen tests
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/docgen.zig | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/docgen.zig b/doc/docgen.zig index c1158dc03f..5d77a1ea14 100644 --- a/doc/docgen.zig +++ b/doc/docgen.zig @@ -11,6 +11,7 @@ const max_doc_file_size = 10 * 1024 * 1024; const exe_ext = std.build.Target(std.build.Target.Native).exeFileExt(); const obj_ext = std.build.Target(std.build.Target.Native).oFileExt(); const tmp_dir_name = "docgen_tmp"; +const test_out_path = tmp_dir_name ++ os.path.sep_str ++ "test" ++ exe_ext; pub fn main() !void { var direct_allocator = std.heap.DirectAllocator.init(); @@ -821,6 +822,8 @@ fn genHtml(allocator: *mem.Allocator, tokenizer: *Tokenizer, toc: *Toc, out: var zig_exe, "test", tmp_source_file_name, + "--output", + test_out_path, }); try out.print("<pre><code class=\"shell\">$ zig test {}.zig", code.name); switch (code.mode) { @@ -863,6 +866,8 @@ fn genHtml(allocator: *mem.Allocator, tokenizer: *Tokenizer, toc: *Toc, out: var "--color", "on", tmp_source_file_name, + "--output", + test_out_path, }); try out.print("<pre><code class=\"shell\">$ zig test {}.zig", code.name); switch (code.mode) { @@ -918,6 +923,8 @@ fn genHtml(allocator: *mem.Allocator, tokenizer: *Tokenizer, toc: *Toc, out: var zig_exe, "test", tmp_source_file_name, + "--output", + test_out_path, }); switch (code.mode) { builtin.Mode.Debug => {}, |
