0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/test
Andrew Kelley a690a5085d
rework and improve some of the zig build steps
* `RunStep` moved to lib/std/build/run.zig and gains ability to compare
   output and exit code against expected values. Multiple redundant
   locations in the test harness code are replaced to use `RunStep`.
 * `WriteFileStep` moved to lib/std/build/write_file.zig and gains
   ability to write more than one file into the cache directory, for
   when the files need to be relative to each other. This makes
   usage of `WriteFileStep` no longer problematic when parallelizing
   zig build.
 * Added `CheckFileStep`, which can be used to validate that the output
   of another step produced a valid file. Multiple redundant locations
   in the test harness code are replaced to use `CheckFileStep`.
 * Added `TranslateCStep`. This exposes `zig translate-c` to the build
   system, which is likely to be rarely useful by most Zig users;
   however Zig's own test suite uses it both for translate-c tests and
   for run-translated-c tests.
 * Refactored ad-hoc code to handle source files coming from multiple
   kinds of sources, into `std.build.FileSource`.
 * Added `std.build.Builder.addExecutableFromWriteFileStep`.
 * Added `std.build.Builder.addExecutableSource`.
 * Added `std.build.Builder.addWriteFiles`.
 * Added `std.build.Builder.addTranslateC`.
 * Added `std.build.LibExeObjStep.addCSourceFileSource`.
 * Added `std.build.LibExeObjStep.addAssemblyFileFromWriteFileStep`.
 * Added `std.build.LibExeObjStep.addAssemblyFileSource`.
 * Exposed `std.fs.base64_encoder`.
History 2020-01-05 02:19:22 -05:00
..
src rework and improve some of the zig build steps 2020-01-05 02:19:22 -05:00
stage1 Merge pull request #4027 from ziglang/fix-float-ops 2020-01-02 16:10:41 -05:00
stage2 exported main must be pub 2019-12-03 12:50:42 -05:00
standalone load dynamic library test: update API usage code 2019-12-10 12:48:10 -05:00
assemble_and_link.zig use * for pointer type instead of & 2018-05-31 17:28:07 -04:00
cli.zig std.fmt.format: tuple parameter instead of var args 2019-12-08 22:53:51 -05:00
compare_output.zig avoid trying to translate microsoft's stdio.h inline functions 2020-01-01 20:33:07 -05:00
compile_errors.zig Merge pull request #3683 from Vexu/atomic-float 2019-12-30 19:19:05 -05:00
gen_h.zig remove var args from the language 2019-12-09 15:27:27 -05:00
run_translated_c.zig translate-c supports --cache on 2020-01-03 22:11:19 -05:00
runtime_safety.zig fix safety for sentinel-slicing floats 2019-12-20 18:28:59 -05:00
stack_traces.zig update stack traces tests 2019-12-12 19:43:04 -05:00
standalone.zig improve dynamic library API 2019-12-10 12:28:28 -05:00
tests.zig rework and improve some of the zig build steps 2020-01-05 02:19:22 -05:00
translate_c.zig Merge pull request #4040 from Vexu/translate-c-cast-fixes 2020-01-02 14:57:48 -05:00