about summary refs log tree commit diff
path: root/src/tools/run-make-support
AgeCommit message (Collapse)AuthorLines
2024-05-17rewrite issue64319 and renameOneirical-0/+6
2024-05-17Fix `htmldocck` functionGuillaume Gomez-1/+1
2024-05-15Rollup merge of #125142 - GuillaumeGomez:migrate-rustdoc-themes, r=jieyouxuLeón Orell Valerian Liehr-0/+6
Migrate `run-make/rustdoc-themes` to new rmake.rs Part of https://github.com/rust-lang/rust/issues/121876. r? `@jieyouxu`
2024-05-15Add new `htmldocck` function to `run-make-support`Guillaume Gomez-0/+6
2024-05-14Port issue-11908 to rmakeOneirical-12/+49
2024-05-14Rollup merge of #125047 - Oneirical:test5, r=jieyouxuMichael Goulet-0/+13
Migrate `run-make/issue-14500` to new `rmake.rs` format Part of #121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html). Note: I find suspicious that `libbar.a` is hardcoded and is not using the `STATICLIB` call to adapt to Windows platforms. Is this intentional? If not, this will need to be changed.
2024-05-13lto function, static_library call, renameOneirical-4/+3
2024-05-13Add `library_search_path` to `Rustdoc`Guillaume Gomez-0/+8
2024-05-13Add `target` method to `Rustdoc` typeGuillaume Gomez-0/+6
2024-05-12rewrite issue-14500 to rmakeOneirical-0/+14
2024-05-12Migrate `rustdoc-scrape-examples-ordering` to `rmake`Guillaume Gomez-5/+6
2024-05-11Add `extern_` method to `Rustdoc`Guillaume Gomez-0/+15
2024-05-11Add `python_command` and `source_path` functionsGuillaume Gomez-0/+9
2024-05-11Add `crate_name` method to `Rustdoc` and `Rustc`Guillaume Gomez-0/+14
2024-05-11Add `crate_type` method to `Rustdoc`Guillaume Gomez-0/+7
2024-05-06Add new `output` method to `Rustc` and `Rustdoc` typesGuillaume Gomez-0/+14
2024-05-05Rename `run-make-support` library `output` method to `command_output`Guillaume Gomez-10/+10
2024-05-05Implement `edition` method on `Rustdoc` type as wellGuillaume Gomez-0/+7
2024-05-03Add `Rustdoc::current_dir` method to run-make-supportGuillaume Gomez-0/+6
2024-05-03Rollup merge of #124612 - Urgau:run-make-stdin, r=jieyouxuMatthias Krüger-17/+94
Add support for inputing via stdin with run-make-support This PR adds the facility to set a input bytes that will be passed via the standard input. This is useful for testing `rustc -` (and soon `rustdoc -`). In #124611 took the approach of having a dedicated `run` method but it is not very convenient to use and would necessitate many functions, one for success, one for fail, ... Instead this PR takes a different approach and allows setting the input bytes as if it were a parameter and when calling the (now custom) `output` function, we write the input bytes into stdin. I think this gives us maximum flexibility in the implementation and a simple interface for users. To test this new logic I ported `tests/run-make/stdin-non-utf8/` to an `rmake.rs` one. r? `@jieyouxu`
2024-05-02run-make-support: add support for stdin input with rustc/rustdocUrgau-17/+94
2024-05-02run-make-support: preserve tooks.mk behavior for EXTRACXXFLAGS许杰友 Jieyou Xu (Joe)-2/+3
2024-04-30Rollup merge of #124561 - GuillaumeGomez:run-make-normalize, r=jieyouxu许杰友 Jieyou Xu (Joe)-3/+47
Add `normalize()` in run-make `Diff` type I need it to do the same as: ``` //@ normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME" ``` in doctests. I need it in particular for the https://github.com/rust-lang/rust/pull/123974 PR (which contains this commit until this PR current PR is merged). cc `@Urgau` r? `@jieyouxu`
2024-04-30Rollup merge of #124280 - beetrees:repr128-test-rmake, r=jieyouxu许杰友 Jieyou Xu (Joe)-0/+2
Port repr128-dwarf run-make test to rmake This PR ports the repr128-dwarf run-make test to rmake, using the `gimli` crate instead of the `llvm-dwarfdump` command. Note that this PR changes `rmake.rs` files to be compiled with the 2021 edition (previously no edition was passed to `rustc`, meaning they were compiled with the 2015 edition). This means that `panic!("{variable}")` will now work as expected in `rmake.rs` files (there's already a usage in the [wasm-symbols-not-exported test](https://github.com/rust-lang/rust/blob/aca749eefceaed0cda19a7ec5e472fce9387bc00/tests/run-make/wasm-symbols-not-exported/rmake.rs#L34) that this will fix). Tracking issue: #121876
2024-04-30Port repr128-dwarf run-make test to rmakebeetrees-0/+2
2024-04-30Add `normalize()` in run-make `Diff` typeGuillaume Gomez-3/+47
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