about summary refs log tree commit diff
path: root/src/tools/run-make-support
AgeCommit message (Collapse)AuthorLines
2024-06-04Create `run-make` `env_var` and `env_var_os` helpersGuillaume Gomez-34/+44
2024-06-03Auto merge of #125383 - Oneirical:bundle-them-up, r=jieyouxubors-2/+2
Rewrite `emit`, `mixing-formats` and `bare-outfile` `run-make` tests in `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). try-job: x86_64-msvc
2024-06-02Remove some allowed-makefilesOneirical-2/+2
2024-06-02Add `dynamic_lib_extension` and `read_dir` functions to `run-make-support` ↵Guillaume Gomez-12/+26
library
2024-06-01Add `Cc::output` methodGuillaume Gomez-0/+7
2024-05-30Rollup merge of #125723 - GuillaumeGomez:migrate-run-make-crate-data-smoke, ↵León Orell Valerian Liehr-2/+8
r=jieyouxu Migrate `run-make/crate-data-smoke` to `rmake.rs` Part of https://github.com/rust-lang/rust/issues/121876. r? ``@jieyouxu``
2024-05-29Add `run-make-support::rust_lib_name`Guillaume Gomez-1/+7
2024-05-29Migrate `run-make/crate-data-smoke` to `rmake.rs`Guillaume Gomez-1/+1
2024-05-29Convert run-make/windows-safeseh to rmakeChris Denton-0/+6
2024-05-29Rollup merge of #125639 - ChrisDenton:run-make-support-doc, r=onur-ozkan许杰友 Jieyou Xu (Joe)-3/+3
Support `./x doc run-make-support --open` Having easy access to the run-make-support documentation is invaluable when creating run-make tests using the new Rust recipes.
2024-05-28Add `assert_not_contains` to `run-make-support` libraryGuillaume Gomez-0/+11
2024-05-28Fix run-make-support doc errorsChris Denton-3/+3
error: redundant explicit link target because label contains path that resolves to same destination
2024-05-27Add `Rustdoc::output_format`Guillaume Gomez-0/+7
2024-05-27Add file path in case it cannot be read in `Diff::actual_file`Guillaume Gomez-1/+4
2024-05-27Add `copy_dir_all` and `recursive_diff` functions to `run-make-support`Guillaume Gomez-0/+67
2024-05-22rewrite and rename `issue-24445` to rmakeOneirical-0/+8
2024-05-22Rewrite `core-no-oom-handling` as rmake.rsOneirical-1/+8
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.