zig/lib/std/Build
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.
2023-03-15 10:48:14 -07:00
..
Cache move the cache system from compiler to std lib 2023-02-13 06:42:25 -07:00
Cache.zig std.Build.Cache.Directory: add a format() method 2023-03-15 10:48:13 -07:00
CheckFileStep.zig std.Build.CheckFileStep: add a way to expect exact 2023-03-15 10:48:14 -07:00
CheckObjectStep.zig std.Build.CheckObjectStep: better error message 2023-03-15 10:48:14 -07:00
CompileStep.zig make the build runner and test runner talk to each other 2023-03-15 10:48:14 -07:00
ConfigHeaderStep.zig std.Build.ConfigHeaderStep: integrate with the cache system 2023-03-15 10:48:13 -07:00
FmtStep.zig zig build: many enhancements related to parallel building 2023-03-15 10:48:13 -07:00
InstallArtifactStep.zig make the build runner and test runner talk to each other 2023-03-15 10:48:14 -07:00
InstallDirStep.zig std.Build: audit use of updateFile 2023-03-15 10:48:13 -07:00
InstallFileStep.zig std.Build.InstallFileStep: add missing step dependencies 2023-03-15 10:48:14 -07:00
ObjCopyStep.zig zig objcopy: support the compiler protocol 2023-03-15 10:48:14 -07:00
OptionsStep.zig zig build: many enhancements related to parallel building 2023-03-15 10:48:13 -07:00
RemoveDirStep.zig std.build.CompileStep: eliminate std.log usage 2023-03-15 10:48:13 -07:00
RunStep.zig make the build runner and test runner talk to each other 2023-03-15 10:48:14 -07:00
Step.zig make the build runner and test runner talk to each other 2023-03-15 10:48:14 -07:00
TranslateCStep.zig re-enable CLI tests 2023-03-15 10:48:13 -07:00
WriteFileStep.zig make the build runner and test runner talk to each other 2023-03-15 10:48:14 -07:00