about summary refs log tree commit diff
path: root/src/tools/run-make-support
AgeCommit message (Collapse)AuthorLines
2024-07-05rewrite emit-path-unhashed to rmakeOneirical-3/+31
2024-07-05Rollup merge of #127359 - GuillaumeGomez:improve-run-make-llvm-ident-code, ↵Guillaume Gomez-2/+3
r=jieyouxu Improve run make llvm ident code I took the commits that are not blocking https://github.com/rust-lang/rust/pull/127237. r? `@Kobzol`
2024-07-05Rollup merge of #126709 - Oneirical:exitestial-crisis, r=jieyouxuGuillaume Gomez-0/+34
Migrate `include_bytes_deps`, `optimization-remarks-dir-pgo`, `optimization-remarks-dir`, `issue-40535` and `rmeta-preferred` `run-make` tests to rmake Part of #121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html). Needs BSD tryjob. try-job: aarch64-apple try-job: x86_64-msvc try-job: armhf-gnu try-job: test-various
2024-07-05Improve `Command::args` API in `run-make-support`Guillaume Gomez-2/+3
2024-07-04Rollup merge of #127307 - GuillaumeGomez:different-types-remap_path_prefix, ↵Matthias Krüger-1/+5
r=Kobzol Allow to have different types for arguments of `Rustc::remap_path_prefix` r? `@Kobzol`
2024-07-04add shallow_find_files helper function to run-make-supportOneirical-0/+34
2024-07-04Allow to have different types for arguments of `Rustc::remap_path_prefix`Guillaume Gomez-1/+5
2024-07-03Small `run-make-support` API improvementsGuillaume Gomez-3/+6
2024-07-01Auto merge of #126941 - GuillaumeGomez:migrate-run-make-llvm-ident, r=Kobzolbors-0/+7
Migrate `run-make/llvm-ident` to `rmake.rs` Part of https://github.com/rust-lang/rust/issues/121876. r? `@Kobzol` try-job: armhf-gnu
2024-07-01Add `input_file` method on `LlvmFileCheck`Guillaume Gomez-0/+7
2024-07-01Improve `target` method API in `run-make-support`Guillaume Gomez-2/+4
2024-07-01Improve `run-make-support` API for `assert*` functionsGuillaume Gomez-7/+13
2024-06-30Improve `run-make-support` library `args` APIGuillaume Gomez-2/+3
2024-06-28rmeta_contains functions for remap-path-prefixOneirical-0/+2
2024-06-28rewrite remap-path-prefix to rmakeOneirical-0/+11
2024-06-27Add `ar` command in `run-make-support`Guillaume Gomez-4/+10
2024-06-27Add `ar_command` in `run_make_support`Guillaume Gomez-0/+8
2024-06-22Add `stdin` to `run_make_support::command::Command`Jerry Wang-5/+7
2024-06-22Add more flags for `llvm-readobj`Jerry Wang-0/+18
2024-06-22Rollup merge of #126823 - ↵Guillaume Gomez-1/+1
GuillaumeGomez:migrate-run-make-inline-always-many-cgu, r=Kobzol Migrate `run-make/inline-always-many-cgu` to `rmake.rs` Part of https://github.com/rust-lang/rust/issues/121876. r? `@jieyouxu`
2024-06-22Make `read_dir` method take a mutable callbackGuillaume Gomez-1/+1
2024-06-20Rollup merge of #126644 - Oneirical:testla-coil, r=jieyouxuMatthias Krüger-0/+6
Rewrite `extern-flag-rename-transitive`. `debugger-visualizer-dep-info`, `metadata-flag-frobs-symbols`, `extern-overrides-distribution` and `forced-unwind-terminate-pof` `run-make` tests to rmake 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: dist-x86_64-apple
2024-06-20Rollup merge of #126095 - Oneirical:final-testination, r=jieyouxuMatthias Krüger-0/+12
Migrate `link-args-order`, `ls-metadata` and `lto-readonly-lib` `run-make` tests to `rmake` Part of #121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html). Guaranteed to fail CI until #125736 gets merged. Will require addition of `fs_wrapper::set_permissions` in the associated module. try-job: x86_64-msvc
2024-06-19make assert_stderr_contains print its contents on panicOneirical-12/+0
2024-06-18rewrite metadata-flag-frobs-symbols to rmakeOneirical-0/+6
2024-06-18use llvm_readobj in run-make test instead of nmOneirical-55/+23
2024-06-18try implementing suggestionsOneirical-3/+5
2024-06-18run_make_support nm implementation + bin-emit-no-symbols rmake rewriteOneirical-0/+48
2024-06-18Rewrite link-args-order to rmakeOneirical-0/+24
2024-06-18Auto merge of #126437 - Oneirical:test-we-forget, r=jieyouxubors-1/+32
Migrate `issue-64153`, `invalid-staticlib` and `no-builtins-lto` `run-make` tests to `rmake` 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-18Auto merge of #126490 - Oneirical:testicide, r=jieyouxubors-0/+28
Migrate `extern-flag-fun`, `incremental-debugger-visualiser` and `incremental-session-fail` `run-make` tests to `rmake.rs` 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: arm-android try-job: armhf-gnu try-job: test-various try-job: x86_64-msvc try-job: dist-i686-mingw
2024-06-18Auto merge of #126279 - Oneirical:you-can-run-make-but-cannot-hide, r=jieyouxubors-0/+32
Migrate `inaccessible-temp-dir`, `output-with-hyphens` and `issue-10971-temps-dir` `run-make` tests to `rmake` 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-17Add new test_while_readonly helper function to run-make-supportOneirical-0/+32
2024-06-17Rewrite and rename `issue-26092` to rmakeOneirical-15/+50
2024-06-17rewrite incremental-session-fail to rmakeOneirical-12/+18
2024-06-15Add drop bombs to `llvm.rs`Jerry Wang-0/+6
2024-06-15Remove `run-make-support/src/llvm_readobj.rs`Jerry Wang-45/+0
2024-06-14rewrite incremental-debugger-visualiser to rmakeOneirical-0/+22
2024-06-14rewrite and rename issue-64153 to rmake.rsOneirical-46/+32
2024-06-14Auto merge of #126463 - matthiaskrgr:rollup-lnkfibf, r=matthiaskrgrbors-2/+20
Rollup of 5 pull requests Successful merges: - #124884 (place explicit lifetime bound after generic param) - #126343 (Remove some msys2 utils) - #126351 (std::unix::fs::link using direct linkat call for Solaris.) - #126368 (Remove some unnecessary crate dependencies.) - #126386 (Migrate `run-make/allow-non-lint-warnings-cmdline` to `rmake.rs`) r? `@ghost` `@rustbot` modify labels: rollup
2024-06-14Rollup merge of #126386 - ↵Matthias Krüger-2/+20
GuillaumeGomez:migrate-run-make-allow-non-lint-warnings-cmdline, r=jieyouxu Migrate `run-make/allow-non-lint-warnings-cmdline` to `rmake.rs` Part of https://github.com/rust-lang/rust/issues/121876. r? ```@jieyouxu```
2024-06-13Update run-make-support/diff to new `fs_wrapper` APIGuillaume Gomez-6/+4
2024-06-13Allow to bless diff testsGuillaume Gomez-1/+13
2024-06-13Implement `CompletedProcess::assert_stdout_contains` and improve error outputGuillaume Gomez-2/+20
2024-06-13Auto merge of #126197 - jieyouxu:rmake-must-use, r=Kobzolbors-1/+43
run-make: annotate library with `#[must_use]` and enforce `unused_must_use` in rmake.rs This PR adds `#[must_use]` annotations to functions of the `run_make_support` library where it makes sense, and adjusts compiletest to compile rmake.rs with `-Dunused_must_use`. The rationale is that it's highly likely that unused `#[must_use]` values in rmake.rs test files are bugs. For example, unused fs/io results are often load-bearing to the correctness of the test and often unchecked fs/io results allow the test to silently pass where it would've failed if the result was checked. This PR is best reviewed commit-by-commit. try-job: test-various try-job: x86_64-msvc
2024-06-13Auto merge of #126374 - workingjubilee:rollup-tz0utfr, r=workingjubileebors-0/+28
Rollup of 10 pull requests Successful merges: - #125674 (Rewrite `symlinked-extern`, `symlinked-rlib` and `symlinked-libraries` `run-make` tests in `rmake.rs` format) - #125688 (Walk into alias-eq nested goals even if normalization fails) - #126142 (Harmonize using root or leaf obligation in trait error reporting) - #126303 (Urls to docs in rust_hir) - #126328 (Add Option::is_none_or) - #126337 (Add test for walking order dependent opaque type behaviour) - #126353 (Move `MatchAgainstFreshVars` to old solver) - #126356 (docs(rustc): Improve discoverable of Cargo docs) - #126358 (safe transmute: support `Single` enums) - #126362 (Make `try_from_target_usize` method public) r? `@ghost` `@rustbot` modify labels: rollup
2024-06-12Rollup merge of #125674 - Oneirical:another-day-another-test, r=jieyouxuJubilee-0/+28
Rewrite `symlinked-extern`, `symlinked-rlib` and `symlinked-libraries` `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-13Auto merge of #125165 - Oneirical:pgo-branch-weights, r=jieyouxubors-6/+170
Migrate `run-make/pgo-branch-weights` to `rmake` Part of #121876 and the associated [Google Summer of Code project](https://blog.rust-lang.org/2024/05/01/gsoc-2024-selected-projects.html). This is a scary one and I expect things to break. Set as draft, because this isn't ready. - [x] There is this comment here, which suggests the test is excluded from the testing process due to a platform specific issue? I can't see anything here that would cause this test to not run... > // FIXME(mati865): MinGW GCC miscompiles compiler-rt profiling library but with Clang it works // properly. Since we only have GCC on the CI ignore the test for now." EDIT: This is specific to Windows-gnu. - [x] The Makefile has this line: ``` ifneq (,$(findstring x86,$(TARGET))) COMMON_FLAGS=-Clink-args=-fuse-ld=gold ``` I honestly can't tell whether this is checking if the target IS x86, or IS NOT. EDIT: It's checking if it IS x86. - [x] I don't know why the Makefile was trying to pass an argument directly in the Makefile instead of setting that "aaaaaaaaaaaa2bbbbbbbbbbbb2bbbbbbbbbbbbbbbbcc" input as a variable in the Rust program directly. I changed that, let me know if that was wrong. - [x] Trying to rewrite `cat "$(TMPDIR)/interesting.ll" | "$(LLVM_FILECHECK)" filecheck-patterns.txt` resulted in some butchery. For starters, in `tools.mk`, LLVM_FILECHECK corrects its own backslashes on Windows distributions, but there is no further mention of it, so I assume this is a preset environment variable... but is it really? Then, the command itself uses a Standard Input and a passed input file as an argument simultaneously, according to the [documentation](https://llvm.org/docs/CommandGuide/FileCheck.html#synopsis). try-job: aarch64-gnu
2024-06-12Rollup merge of #126036 - Oneirical:the-intelligent-intestor, r=jieyouxuMichael Goulet-0/+6
Migrate `run-make/short-ice` to `rmake` 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-12port symlinked-libraries to rmakeOneirical-16/+25