0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/src
Andrew Kelley ede5dcffea make the build runner and test runner talk to each other
std.Build.addTest creates a CompileStep as before, however, this kind of
step no longer actually runs the unit tests. Instead it only compiles
it, and one must additionally create a RunStep from the CompileStep in
order to actually run the tests.

RunStep gains integration with the default test runner, which now
supports the standard --listen=- argument in order to communicate over
stdin and stdout. It also reports test statistics; how many passed,
failed, and leaked, as well as directly associating the relevant stderr
with the particular test name that failed.

This separation of CompileStep and RunStep means that
`CompileStep.Kind.test_exe` is no longer needed, and therefore has been
removed in this commit.

 * build runner: show unit test statistics in build summary
 * added Step.writeManifest since many steps want to treat it as a
   warning and emit the same message if it fails.
 * RunStep: fixed error message that prints the failed command printing
   the original argv and not the adjusted argv in case an interpreter
   was used.
 * RunStep: fixed not passing the command line arguments to the
   interpreter.
 * move src/Server.zig to std.zig.Server so that the default test runner
   can use it.
 * the simpler test runner function which is used by work-in-progress
   backends now no longer prints to stderr, which is necessary in order
   for the build runner to not print the stderr as a warning message.
History 2023-03-15 10:48:14 -07:00
..
arch x86_64: turn packed struct crashes into compile errors 2023-03-15 01:04:21 -04:00
autodoc docgen: add f80 to builtin types 2022-09-14 20:08:34 -04:00
codegen CBE: implement unsigned big int div and mod 2023-03-07 03:03:35 -05:00
link stage2: fix compilation on 32-bit targets 2023-03-15 10:48:13 -07:00
translate_c translate-c: translate extern unknown-length arrays using @extern 2023-03-12 19:07:06 +02:00
Air.zig add @trap builtin 2023-03-04 12:08:19 +01:00
AstGen.zig AstGen: skip walking the AST when there are parse errors 2023-03-15 10:48:14 -07:00
Autodoc.zig Zir: move set_cold from Inst.Tag to Inst.Extended 2023-03-03 21:16:21 +01:00
BuiltinFn.zig add @trap builtin 2023-03-04 12:08:19 +01:00
clang.zig Sema: display cimport errors from clang 2022-12-14 14:08:22 +02:00
clang_options.zig zig cc: honor all -m and -mno- CPU feature flags 2021-11-26 19:59:33 -07:00
clang_options_data.zig zig run/cc: recognize "-x language" 2023-01-13 21:38:11 -05:00
codegen.zig codegen: rename GenerateSymbolError to CodeGenError 2023-03-03 18:56:57 +01:00
Compilation.zig fix ZIR decoding of error notes 2023-03-15 10:48:14 -07:00
crash_report.zig FreeBSD: add mcontext_t for aarch64 2023-01-21 23:20:50 +02:00
glibc.zig compiler: update function accepts a std.Progress.Node 2023-03-15 10:48:13 -07:00
InternPool.zig std.builtin: rename Type.UnionField and Type.StructField's field_type to type 2022-12-17 14:11:33 +01:00
introspect.zig WASI: remove absolute path emulation from std lib 2022-12-06 12:15:04 -07:00
libc_installation.zig update std lib and compiler sources to new for loop syntax 2023-02-18 19:17:21 -07:00
libcxx.zig compiler: update function accepts a std.Progress.Node 2023-03-15 10:48:13 -07:00
libtsan.zig compiler: update function accepts a std.Progress.Node 2023-03-15 10:48:13 -07:00
libunwind.zig compiler: update function accepts a std.Progress.Node 2023-03-15 10:48:13 -07:00
link.zig stage2: avoid linux-only APIs on other operating systems 2023-03-15 10:48:13 -07:00
Liveness.zig add @trap builtin 2023-03-04 12:08:19 +01:00
main.zig make the build runner and test runner talk to each other 2023-03-15 10:48:14 -07:00
Manifest.zig update std lib and compiler sources to new for loop syntax 2023-02-18 19:17:21 -07:00
mingw.zig compiler: update function accepts a std.Progress.Node 2023-03-15 10:48:13 -07:00
Module.zig progress towards semantic error serialization 2023-03-15 10:48:12 -07:00
musl.zig compiler: update function accepts a std.Progress.Node 2023-03-15 10:48:13 -07:00
objcopy.zig make the build runner and test runner talk to each other 2023-03-15 10:48:14 -07:00
Package.zig std.zig.ErrorBundle: rework binary encoding 2023-03-15 10:48:13 -07:00
print_air.zig add @trap builtin 2023-03-04 12:08:19 +01:00
print_env.zig stage2: fix compile error merge conflict 2022-09-14 16:41:53 -07:00
print_targets.zig update std lib and compiler sources to new for loop syntax 2023-02-18 19:17:21 -07:00
print_zir.zig add @trap builtin 2023-03-04 12:08:19 +01:00
RangeSet.zig update std lib and compiler sources to new for loop syntax 2023-02-18 19:17:21 -07:00
register_manager.zig codegen: move gen logic for typed values, consts and decl ref to common codegen 2023-03-03 18:06:25 +01:00
Sema.zig build runner enhancements in preparation for test-cases 2023-03-15 10:48:14 -07:00
target.zig sema: Place functions on AVR in flash addrspace 2023-03-03 15:20:31 +02:00
tracy.zig update TracyAllocator for new Allocator changes 2022-12-11 15:02:44 -05:00
translate_c.zig translate-c: translate extern unknown-length arrays using @extern 2023-03-12 19:07:06 +02:00
type.zig CBE: implement vector operations 2023-03-05 02:59:02 -05:00
TypedValue.zig TypedValue: fix crash when string-like aggregate has undefined element 2023-01-29 23:16:45 +02:00
value.zig Implement readFromMemory/writeToMemory for ptrLikeOptional 2023-03-14 13:08:56 +02:00
wasi_libc.zig compiler: update function accepts a std.Progress.Node 2023-03-15 10:48:13 -07:00
windows_com.hpp windows_com: add missing __CRT_UUID_DECL() for IEnumSetupInstances 2022-07-09 14:04:38 -07:00
windows_sdk.cpp all: rename i386 to x86 2022-11-04 00:09:27 +03:30
windows_sdk.h fix regressed stage2 test harness 2020-09-21 21:14:01 -07:00
windows_sdk.zig stage2: update for new usingnamespace semantics 2021-09-01 17:54:07 -07:00
zig_clang.cpp translate-c: packed struct implies align(1) on every field 2022-10-01 15:22:10 -07:00
zig_clang.h translate-c: packed struct implies align(1) on every field 2022-10-01 15:22:10 -07:00
zig_clang_cc1_main.cpp update to LLVM 15 2022-07-28 11:53:25 -07:00
zig_clang_cc1as_main.cpp update to LLVM 15 2022-07-28 11:53:25 -07:00
zig_clang_driver.cpp update to LLVM 15 2022-07-28 11:53:25 -07:00
zig_llvm-ar.cpp update to LLVM 15 2022-07-28 11:53:25 -07:00
zig_llvm.cpp add -fopt-bisect-limit 2023-01-03 13:05:09 +02:00
zig_llvm.h add -fopt-bisect-limit 2023-01-03 13:05:09 +02:00
Zir.zig fix ZIR decoding of error notes 2023-03-15 10:48:14 -07:00