about summary refs log tree commit diff
path: root/src/tools/run-make-support
AgeCommit message (Collapse)AuthorLines
2024-04-25Rewrite `no-input-file.stderr` test in Rust and support diffJover Zhang-0/+130
2024-04-17run-make-support: add clang and llvm-readobj command wrappers许杰友 Jieyou Xu (Joe)-0/+121
2024-04-15mention json target specs in `run_make_support`Rémy Rakic-2/+1
2024-04-15add `link_arg` helper to `run_make_support`Rémy Rakic-0/+6
and use it in the `rust-lld` tests
2024-04-15add regex to run_make_supportRémy Rakic-0/+2
note: version more recent than 1.8 depend on memchr 2.6, which creates conflicts as memchr 2.5.0 is pinned elsewhere in the workspace
2024-04-13run-make-support: add some top-level docs许杰友 Jieyou Xu (Joe)-0/+5
2024-04-13run-make-support: use macro to implement common methods许杰友 Jieyou Xu (Joe)-112/+8
Removes the manual copy-pasta'd implementation of common methods.
2024-04-13run-make-support: introduce macro for common methods to avoid repetition许杰友 Jieyou Xu (Joe)-0/+124
Add a helper macro for adding common methods to command wrappers. Common methods include helpers that delegate to `Command` and running methods. - `arg` and `args` (delegates to `Command`) - `env`, `env_remove` and `env_clear` (delegates to `Command`) - `output`, `run` and `run_fail` This helps to avoid needing to copy-pasta / reimplement these common methods on a new command wrapper, which hopefully reduces the friction for run-make test writers wanting to introduce new command wrappers.
2024-04-13run-make-support: make `handle_failed_output` take a `&Command`许杰友 Jieyou Xu (Joe)-9/+9
2024-04-12Rollup merge of #123763 - cuviper:host-rpath-run-make-v2, r=jieyouxuMatthias Krüger-3/+20
Set the host library path in run-make v2 When the build is configured with `[rust] rpath = false`, we need to set `LD_LIBRARY_PATH` (or equivalent) to what would have been the `RPATH`, so the compiler can find its own libraries. The old `tools.mk` code has this environment prefixed in the `$(BARE_RUSTC)` variable, so we just need to wire up something similar for run-make v2. This is now set while building each `rmake.rs` itself, as well as in the `rust-make-support` helpers for `rustc` and `rustdoc` commands. This is also available in a `set_host_rpath` function for manual commands, like in the `compiler-builtins` test.
2024-04-10Set the host library path in run-make v2Josh Stone-3/+20
When the build is configured with `[rust] rpath = false`, we need to set `LD_LIBRARY_PATH` (or equivalent) to what would have been the `RPATH`, so the compiler can find its own libraries. The old `tools.mk` code has this environment prefixed in the `$(BARE_RUSTC)` variable, so we just need to wire up something similar for run-make v2. This is now set while building each `rmake.rs` itself, as well as in the `rust-make-support` helpers for `rustc` and `rustdoc` commands. This is also available in a `set_host_rpath` function for manual commands, like in the `compiler-builtins` test.
2024-04-10Rollup merge of #123612 - kxxt:riscv-target-abi, r=jieyouxu,nikic,DianQKMatthias Krüger-0/+12
Set target-abi module flag for RISC-V targets Fixes cross-language LTO on RISC-V targets (Fixes #121924)
2024-04-09run-make: make arg take AsRef<OsStr> instead of str5225225-8/+3
2024-04-09Convert tests/run-make/cross-lang-lto-riscv-abi to rmakekxxt-0/+12
2024-04-08move exit-code to rmake5225225-0/+29
2024-04-06extend run-make test runner with some helper functionsMichael Baikov-18/+30
2024-04-01Modify compiletest and run-make-support to support CC invocations in rmake.rs许杰友 Jieyou Xu (Joe)-14/+298
2024-04-01Fix error message for `env!` when env var is not valid Unicodebeetrees-1/+23
2024-03-30Rewrite core-no-fp-fmt-parse in RustOneirical-0/+14
Rewrite core-no-fp-fmt-parse in Rust fix: missing import fix: tidiness check more tidy checks remove tidy line length ignore new helper functions + arg_path generic fix: remove unused import delete arg_path, change arg_path to input
2024-03-24Rework rmake support library to have a weakly-typed API with helper methods许杰友 Jieyou Xu (Joe)-177/+306
2024-03-23Add `Rustdoc` into `run-make-support`Guillaume Gomez-4/+37
2024-03-20Add a testBen Kimock-0/+2
2024-03-11Convert some WebAssembly run-make tests to RustAlex Crichton-4/+13
This commit rewrites a number of `run-make` tests centered around wasm to instead use `rmake.rs` and additionally use the `wasm32-wasip1` target instead of `wasm32-unknown-unknown`. Testing no longer requires Node.js and additionally uses the `wasmparser` crate from crates.io to parse outputs and power assertions.
2024-02-29Add supporting infrastructure for `run-make` V2 tests许杰友 Jieyou Xu (Joe)-0/+157