0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/test
Andrew Kelley dcec4d55e3 eliminate stderr usage in std.Build make() functions
* Eliminate all uses of `std.debug.print` in make() functions, instead
  properly using the step failure reporting mechanism.
* Introduce the concept of skipped build steps. These do not cause the
  build to fail, and they do allow their dependants to run.
* RunStep gains a new flag, `skip_foreign_checks` which causes the
  RunStep to be skipped if stdio mode is `check` and the binary cannot
  be executed due to it being a foreign executable.
  - RunStep is improved to automatically use known interpreters to
    execute binaries if possible (integrating with flags such as
    -fqemu and -fwasmtime). It only does this after attempting a native
    execution and receiving a "exec file format" error.
  - Update RunStep to use an ArrayList for the checks rather than this
    ad-hoc reallocation/copying mechanism.
  - `expectStdOutEqual` now also implicitly adds an exit_code==0 check
    if there is not already an expected termination. This matches
    previously expected behavior from older API and can be overridden by
    directly setting the checks array.
* Add `dest_sub_path` to `InstallArtifactStep` which allows choosing an
  arbitrary subdirectory relative to the prefix, as well as overriding
  the basename.
  - Delete the custom InstallWithRename step that I found deep in the
    test/ directory.
* WriteFileStep will now update its step display name after the first
  file is added.
* Add missing stdout checks to various standalone test case build
  scripts.
History 2023-03-15 10:48:13 -07:00
..
behavior x86_64: handle duplicate prong deaths 2023-03-15 01:04:21 -04:00
c_abi llvm: implement explicit Win64 and SysV calling conventions 2023-01-22 01:04:20 +02:00
cases Sema: improve error message when calling non-member function as method 2023-03-12 18:47:02 +02:00
link eliminate stderr usage in std.Build make() functions 2023-03-15 10:48:13 -07:00
src zig build: many enhancements related to parallel building 2023-03-15 10:48:13 -07:00
stage2 Merge pull request #14691 from jacobly0/ctype 2023-02-22 11:06:13 -05:00
standalone Sema: @extern fixes 2023-03-12 18:55:23 +02:00
assemble_and_link.zig migrate from std.Target.current to @import("builtin").target 2021-10-04 23:48:55 -07:00
behavior.zig Sema: avoid panic on callconv(.C) generic return type 2023-03-13 13:17:13 +02:00
cases.zig re-enable nvptx tests 2022-10-15 10:39:19 -07:00
cli.zig Compilation: strip debug info from ReleaseSmall by default 2022-10-11 17:51:25 +02:00
compare_output.zig Merge pull request #14671 from ziglang/multi-object-for 2023-02-19 10:10:59 -05:00
compile_errors.zig Add test coverage for some module structures 2023-02-21 02:05:36 +00:00
gen_h.zig run zig fmt on src/ and test/ 2020-10-31 12:21:49 +02:00
link.zig link-tests: test unwind info emitter via c++ exceptions 2023-01-20 20:57:40 +01:00
run_translated_c.zig translate-c: Fix #12263 2022-10-10 22:29:56 +02:00
stack_traces.zig zig fmt: fix extra whitespace with multiline strings 2022-12-17 00:24:58 +02:00
standalone.zig Sema: @extern fixes 2023-03-12 18:55:23 +02:00
tests.zig zig build: many enhancements related to parallel building 2023-03-15 10:48:13 -07:00
translate_c.zig translate-c: translate extern unknown-length arrays using @extern 2023-03-12 19:07:06 +02:00