zig/test
Justus Klausecker be571f32c3 std.Build.Step.Run: Enable passing (generated) file content as args
Adds `addFileContentArg` and `addPrefixedFileContentArg` to pass the content
of a file with a lazy path as an argument to a `std.Build.Step.Run`.
This enables replicating shell `$()` / cmake `execute_process` with `OUTPUT_VARIABLE`
as an input to another `execute_process` in conjuction with `captureStdOut`/`captureStdErr`.

To also be able to replicate `$()` automatically trimming trailing newlines and cmake
`OUTPUT_STRIP_TRAILING_WHITESPACE`, this patch adds an `options` arg to those functions
which allows specifying the desired handling of surrounding whitespace.

The `options` arg also allows to specify a custom `basename` for the output. e.g.
to add a file extension (concrete use case: Zig `@import()` requires files to have a
`.zig`/`.zon` extension to recognize them as valid source files).
2025-09-19 17:38:40 -07:00
..
behavior test: disable some vector ctz/clz behavior tests on LoongArch with LSX 2025-09-18 12:42:24 +02:00
c_abi test: disable some SIMD ABI tests on LoongArch 2025-09-18 12:42:24 +02:00
c_import aarch64: add new from scratch self-hosted backend 2025-07-22 19:43:47 -07:00
cases test: pull tests in test/cases/llvm/ up to test/cases/ 2025-09-16 23:39:29 +02:00
incremental Dwarf: implement comptime-known extern values 2025-08-15 18:29:06 -04:00
link Elf: implement linksection 2025-09-17 21:16:23 -07:00
src std.Build.Step.Run: Enable passing (generated) file content as args 2025-09-19 17:38:40 -07:00
standalone Merge pull request #23416 from gooncreeper/improved-fuzzer 2025-09-19 09:27:25 -07:00
behavior.zig delete behavior test that depends on std.fmt 2025-08-31 12:49:18 -07:00
c_import.zig c_import: extract behavior tests that use @cImport 2024-02-20 18:44:43 +01:00
cases.zig remove test/cbe.zig 2024-03-28 15:24:01 +02:00
compile_errors.zig compiler: refactor Zcu.File and path representation 2025-05-18 17:37:02 +01:00
gen_h.zig
llvm_ir.zig test: Add some basic LLVM IR tests for atomics, volatile, and allowzero. 2025-05-12 17:07:50 +02:00
llvm_targets.zig std.Target: add vita os 2025-08-26 07:50:06 +02:00
nvptx.zig Remove uses of deprecated callconv aliases 2025-03-05 03:01:43 +00:00
run_translated_c.zig remove hard tabs from source code 2024-07-31 16:57:42 -07:00
stack_traces.zig test: skip dumpCurrentStackTrace test on architectures with no unwind support 2025-09-18 12:42:24 +02:00
tests.zig test: respect -Dskip-translate-c in test-standalone 2025-09-18 12:42:24 +02:00
translate_c.zig zig fmt: apply new cast builtin order 2025-08-03 14:59:56 +02:00