about summary refs log tree commit diff
path: root/tests/run-make
AgeCommit message (Collapse)AuthorLines
2024-07-05rewrite pgo-gen to rmakeOneirical-11/+18
2024-07-05rewrite emit-path-unhashed to rmakeOneirical-37/+34
2024-07-05rewrite emit-shared-files to rmakeOneirical-46/+102
2024-07-05Rollup merge of #127359 - GuillaumeGomez:improve-run-make-llvm-ident-code, ↵Guillaume Gomez-1/+1
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-05Improve code of `run-make/llvm-ident` testGuillaume Gomez-1/+1
2024-07-04rewrite pass-linker-flags-flavor to rmakeOneirical-13/+86
2024-07-04rewrite pass-linker-flags to rmakeOneirical-5/+27
2024-07-04rewrite target-cpu-native to rmakeOneirical-20/+16
2024-07-04rewrite target-specs to rmakeOneirical-12/+71
2024-07-04add shallow_find_files helper function to run-make-supportOneirical-10/+35
2024-07-04rewrite rmeta-preferred to rmakeOneirical-20/+20
2024-07-04rewrite and rename issue-40535 to rmakeOneirical-13/+14
2024-07-04rewrite optimization-remarks-dir to rmakeOneirical-15/+39
2024-07-04rewrite optimization-remarks-dir-pgo to rmakeOneirical-17/+19
2024-07-04rewrite and rename include_bytes_deps to rmakeOneirical-7/+15
2024-07-03Auto merge of #127296 - matthiaskrgr:rollup-1t1isa7, r=matthiaskrgrbors-2/+7
Rollup of 6 pull requests Successful merges: - #127092 (Change return-type-notation to use `(..)`) - #127184 (More refactorings to rustc_interface) - #127190 (Update LLVM submodule) - #127253 (Fix incorrect suggestion for extra argument with a type error) - #127280 (Disable rmake test rustdoc-io-error on riscv64gc-gnu) - #127294 (Less magic number for corountine) r? `@ghost` `@rustbot` modify labels: rollup
2024-07-03Rollup merge of #127280 - ↵Matthias Krüger-2/+7
ferrocene:hoverbear/disable-rmake-rustdoc-io-error, r=jieyouxu Disable rmake test rustdoc-io-error on riscv64gc-gnu In https://github.com/rust-lang/rust/pull/126917 we disabled `inaccessible-temp-dir` on `riscv64gc-gnu` because the container runs the build as `root` (just like the `armhf-gnu` builds). Tests creating an inaccessible test directory are not possible, since `root` can always touch those directories. https://github.com/rust-lang/rust/blob/553a69030e5a086eb3841d020db8c9c463948c72/src/ci/docker/host-x86_64/disabled/riscv64gc-gnu/Dockerfile#L99 This means the tests are run as `root`. As `root`, it's perfectly normal and reasonable to violate permission checks this way: ```bash $ sudo mkdir scratch $ sudo chmod o-w scratch $ sudo mkdir scratch/backs $ ``` Because of this, this PR makes the test ignored on `riscv64gc` (just like on `armhf-gnu`) for now. As an alternative, I believe the best long-term strategy would be to not run the tests as `root` for this job. Some preliminary exploration was done in https://github.com/rust-lang/rust/pull/126917#issuecomment-2189933970, however that appears a larger lift. ## Testing > [!NOTE] > `riscv64gc-unknown-linux-gnu` is a [**Tier 2 with Host Tools** platform](https://doc.rust-lang.org/beta/rustc/platform-support.html), all tests may not necessarily pass! This change should only ignore `inaccessible-temp-dir` and not affect other tests. You can test out the job locally: ```sh DEPLOY=1 ./src/ci/docker/run.sh riscv64gc-gnu ``` r? `@jieyouxu`
2024-07-03Auto merge of #127044 - Oneirical:fantestic-journey, r=Kobzol,jieyouxubors-70/+102
Migrate `dylib-chain`, `rlib-chain`, `issue-47384`, `msvc-opt-minsize` and `test-harness` `run-make` tests to ui/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 try-job: aarch64-apple
2024-07-03Disable rmake test rustdoc-io-error on riscv64gc-gnuAna Hobden-2/+7
2024-07-03Auto merge of #127278 - matthiaskrgr:rollup-fjexkdr, r=matthiaskrgrbors-1/+1
Rollup of 8 pull requests Successful merges: - #126803 (Change `asm-comments` to `verbose-asm`, always emit user comments) - #127050 (Make mtime of reproducible tarballs dependent on git commit) - #127145 (Add `as_lang_item` to `LanguageItems`, new trait solver) - #127202 (Remove global error count checks from typeck) - #127233 (Some parser cleanups) - #127248 (Add parse fail test using safe trait/impl trait) - #127264 (Small `run-make-support` API improvements) - #127270 (bootstrap: pass correct struct size to winapi) r? `@ghost` `@rustbot` modify labels: rollup
2024-07-03Rollup merge of #127264 - GuillaumeGomez:run-make-support-api-improvements, ↵Matthias Krüger-1/+1
r=Kobzol Small `run-make-support` API improvements r? `@Kobzol`
2024-07-03Auto merge of #126094 - petrochenkov:libsearch, r=michaelwoeristerbors-0/+20
linker: Link dylib crates by path Linkers seem to support linking dynamic libraries by path. Not sure why the previous scheme with splitting the path into a directory (passed with `-L`) and a name (passed with `-l`) was used (upd: likely due to https://github.com/rust-lang/rust/pull/126094#issuecomment-2155063414). When we split a library path `some/dir/libfoo.so` into `-L some/dir` and `-l foo` we add `some/dir` to search directories for *all* libraries looked up by the linker, not just `foo`, and `foo` is also looked up in *all* search directories not just `some/dir`. Technically we may find some unintended libraries this way. Therefore linking dylibs via a full path is both simpler and more reliable. It also makes the set of search directories more easily reproducible when we need to lookup some native library manually (like in https://github.com/rust-lang/rust/pull/123436).
2024-07-03Small `run-make-support` API improvementsGuillaume Gomez-1/+1
2024-07-02rewrite test-harness to rmakeOneirical-10/+28
2024-07-02rewrite msvc-opt-minsize to ui testOneirical-25/+0
2024-07-02rewrite and rename issue-47384 to rmakeOneirical-12/+29
2024-07-02rewrite rlib-chain to rmakeOneirical-13/+26
2024-07-02rewrite dylib-chain to rmakeOneirical-13/+22
2024-07-02Disable rmake test inaccessible-temp-dir on riscv64Ana Hobden-2/+6
2024-07-02linker: Link dylib crates by pathVadim Petrochenkov-0/+20
2024-07-01Auto merge of #126941 - GuillaumeGomez:migrate-run-make-llvm-ident, r=Kobzolbors-19/+41
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-01Rollup merge of #127201 - GuillaumeGomez:improve-run-make-support, r=KobzolGuillaume Gomez-5/+5
Improve run-make-support API I think I'll slowly continue this work. Makes things a bit nicer for contributors, so why not. :D r? ``@Kobzol``
2024-07-01Rollup merge of #126880 - Rejyr:migrate-rmake-vw, r=KobzolGuillaume Gomez-65/+80
Migrate `volatile-intrinsics`, `weird-output-filenames`, `wasm-override-linker`, `wasm-exceptions-nostd` to `rmake` Also refactors `wasm-abi` and `compressed-debuginfo`. Part of #121876. r? ``@jieyouxu`` try-job: x86_64-gnu-debug try-job: dist-various-2
2024-07-01Rollup merge of #126732 - StackOverflowExcept1on:master, r=m-ou-seGuillaume Gomez-1/+0
Stabilize `PanicInfo::message()` and `PanicMessage` Resolves #66745 This stabilizes the [`PanicInfo::message()`](https://doc.rust-lang.org/nightly/core/panic/struct.PanicInfo.html#method.message) and [`PanicMessage`](https://doc.rust-lang.org/nightly/core/panic/struct.PanicMessage.html). Demonstration of [custom panic handler](https://github.com/StackOverflowExcept1on/panicker): ```rust #![no_std] #![no_main] extern crate libc; #[no_mangle] extern "C" fn main() -> libc::c_int { panic!("I just panic every time"); } #[panic_handler] fn my_panic(panic_info: &core::panic::PanicInfo) -> ! { use arrayvec::ArrayString; use core::fmt::Write; let message = panic_info.message(); let location = panic_info.location().unwrap(); let mut debug_msg = ArrayString::<1024>::new(); let _ = write!(&mut debug_msg, "panicked with '{message}' at '{location}'"); if debug_msg.try_push_str("\0").is_ok() { unsafe { libc::puts(debug_msg.as_ptr() as *const _); } } unsafe { libc::exit(libc::EXIT_FAILURE) } } ``` ``` $ cargo +stage1 run --release panicked with 'I just panic every time' at 'src/main.rs:8:5' ``` - [x] FCP: https://github.com/rust-lang/rust/issues/66745#issuecomment-2198143725 r? libs-api
2024-07-01Migrate `run-make/llvm-ident` to `rmake.rs`Guillaume Gomez-19/+41
2024-07-01Improve `target` method API in `run-make-support`Guillaume Gomez-3/+3
2024-07-01Improve `run-make-support` API for `assert*` functionsGuillaume Gomez-2/+2
2024-06-30Improve `run-make-support` library `args` APIGuillaume Gomez-16/+12
2024-06-29Rollup merge of #127081 - Kobzol:lld-test, r=onur-ozkanMatthias Krüger-2/+32
Add a run-make test that LLD is not being used by default on the x64 beta/stable channel https://github.com/rust-lang/rust/pull/126701 showed that the handling of `lld` in bootstrap is currently not ideal. While it would be nice to refactor it eventually, we should also make sure that we have a test that checks that `lld` is not used (yet!) by default on the x64 Linux stable channel. CC ``@lqd`` r? ``@onur-ozkan``
2024-06-29Auto merge of #126801 - Oneirical:seek-and-testroy, r=Kobzolbors-75/+151
Migrate `remap-path-prefix`, `debug-assertions` and `emit-stack-sizes` `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 OSX/MSVC try jobs. try-job: aarch64-apple try-job: x86_64-msvc
2024-06-29Refactor `compressed-debuginfo` to use `llvm_readobj`Jerry Wang-3/+2
2024-06-29Refactor `wasm-abi` to use `cmd`Jerry Wang-7/+4
2024-06-29Migrate `wasm-exceptions-nostd` to `rmake`Jerry Wang-14/+20
2024-06-29Migrate `wasm-override-linker` to `rmake`Jerry Wang-16/+17
2024-06-29Migrate `weird-output-filenames` to `rmake`Jerry Wang-15/+19
2024-06-29Migrate `volatile-intrinsics` to `rmake`Jerry Wang-10/+18
2024-06-29Rollup merge of #127116 - GuillaumeGomez:run-make-return-non-c-like-enum, ↵Guillaume Gomez-8/+18
r=Kobzol,jieyouxu Migrate `run-make/return-non-c-like-enum` to `rmake.rs` Part of https://github.com/rust-lang/rust/issues/121876. r? `@Kobzol`
2024-06-29Rollup merge of #127041 - GuillaumeGomez:run-make-override-aliased-flags, ↵Guillaume Gomez-23/+24
r=Kobzol Migrate `run-make/override-aliased-flags` to `rmake.rs` Part of https://github.com/rust-lang/rust/issues/121876. I voluntarily didn't use the helper methods to make it obvious what's tested. r? `@jieyouxu`
2024-06-29Rollup merge of #126995 - Oneirical:test-friends-forever, r=KobzolGuillaume Gomez-28/+75
Migrate `pretty-print-with-dep-file`, `pretty-print-to-file` and `libtest-padding` `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).
2024-06-29Rollup merge of #126805 - Oneirical:weaves-of-testiny, r=KobzolGuillaume Gomez-40/+67
Migrate `pdb-alt-path`, `mismatching-target-triples` and `mingw-export-call-convention` `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 MSVC try jobs. try-job: x86_64-mingw try-job: x86_64-msvc