about summary refs log tree commit diff
path: root/src/bootstrap/test.rs
AgeCommit message (Collapse)AuthorLines
2023-01-11Change `src/test` to `tests` in source files, fix tidy and testsAlbert Larsan-38/+30
2022-12-31Run `cargo test` on tidy itself.Eric Huss-0/+34
2022-12-30Use more consistent progress messages in bootstrapJoshua Nelson-2/+7
Before: ``` Testing ["rustc_interface"] stage0 (aarch64-unknown-linux-gnu -> aarch64-unknown-linux-gnu) ``` After: ``` Testing {rustc_interface} stage0 (aarch64-unknown-linux-gnu -> aarch64-unknown-linux-gnu) ``` Note there is a slight consistency between `build` and `test`: The former doesn't print "compiler artifacts". It would be annoying to fix and doesn't hurt anything, so I left it be. ``` ; x t rustc_interface --stage 0 --dry-run Testing {rustc_interface} stage0 (aarch64-unknown-linux-gnu -> aarch64-unknown-linux-gnu) ; x b rustc_interface --stage 0 --dry-run Building {rustc_interface} stage0 compiler artifacts (aarch64-unknown-linux-gnu -> aarch64-unknown-linux-gnu) ```
2022-12-28-Zrustdoc-scrape-examples no longer takes argumentsMark Rousskov-1/+1
2022-12-22Use LLVM_CMAKE_DIR for lld buildNikita Popov-1/+2
LLVM_CONFIG_PATH is no longer supported as of LLVM 16, switch to using the cmake module instead. We separately return the llvm-config and cmake directory paths, because llvm-config always refers to the host binary, while the cmake directory is for the target triple.
2022-11-26Support unit tests for jsondoclintNixon Enraght-Moony-0/+36
2022-11-24Fix typo in miri sysrootJoshua Nelson-1/+1
2022-11-20Rollup merge of #104611 - notriddle:notriddle/scrape-examples-button, ↵Matthias Krüger-0/+2
r=GuillaumeGomez rustdoc: use real buttons for scrape examples controls This makes the expand and switch controls keyboard-accessible. Preview: https://notriddle.com/notriddle-rustdoc-demos/scrape-examples-button/test_dingus/fn.test.html
2022-11-19rustdoc: add test case for scraped example expand GUIMichael Howell-0/+2
2022-11-16normalize download-rustc's prefix when running compiletestsPietro Albini-0/+4
2022-11-16normalize source paths from sysroot in compiletestPietro Albini-0/+1
2022-11-12Distinguish `--dry-run` from the automatic dry run checkJoshua Nelson-5/+5
2022-11-09Rollup merge of #104046 - RalfJung:run-miri-run, r=oli-obkMichael Goulet-43/+55
bootstrap: add support for running Miri on a file This enables: ``` ./x.py run src/tools/miri --stage 0 --args src/tools/miri/tests/pass/hello.rs ``` That can be super helpful for debugging. Also avoid sharing the Miri sysroot dir with a system-wide (rustup-managed) installation of Miri. Fixes https://github.com/rust-lang/rust/issues/76666
2022-11-06bootstrap: put Miri sysroot into local build dirRalf Jung-1/+9
2022-11-06bootstrap: add support for running Miri on a fileRalf Jung-43/+47
2022-11-06Rollup merge of #103851 - viandoxdev:103816_bootstrap_fix_json_doc, r=jyn514Matthias Krüger-1/+6
Fix json flag in bootstrap doc Fix the `--json` flag not working with x.py (Closes #103816) While this works I'm not sure about the `should_run` of `JsonStd`, had to change it because https://github.com/rust-lang/rust/blob/ab5a2bc7316012ee9b2a4a4f3821673f2677f3d5/src/bootstrap/builder.rs#L334 would match with JsonStd and remove the paths that Std matched. So I did [this](https://github.com/viandoxdev/rust/blob/ffd4078264c4892b5098d6191e0adfe3564d62ca/src/bootstrap/doc.rs#L526-L534) but that looks more like a hack/workaround than anything. I'm guessing there's something to do with the default condition thing but idk how it works
2022-11-02Ban dashes in miropt test file namesJakob Degen-0/+3
2022-11-02merge JsonStd and Std stepsviandoxdev-1/+6
2022-11-01Rollup merge of #103805 - Mark-Simulacrum:forward-port, r=jyn514Yuki Okushi-0/+3
Enable RUSTC_BOOTSTRAP for a few steps This forward-ports this commit so we don't need to keep applying it when branching beta (as done in 1.64, 1.65, and 1.66 beta bumps).
2022-10-31Auto merge of #102950 - oli-obk:check_miri, r=RalfJungbors-2/+2
Enable `x.py check` for miri Now that the miri subtree is working properly, let's add it to x.py check. cc `@rust-lang/miri`
2022-10-31Enable RUSTC_BOOTSTRAP for a few stepsMark Rousskov-0/+3
2022-10-30Rollup merge of #102101 - BelovDV:new-check-lld-version, r=petrochenkovMichael Howell-1/+4
check lld version to choose correct option to disable multi-threading in tests Testing compiler with 'use-lld = true' may be incorrect with old lld. Flag, disabling multi-threading, should consider lld version. r? ``@petrochenkov``
2022-10-29Rollup merge of #102634 - andrewpollack:refactor-test-rustcflags, ↵Guillaume Gomez-3/+7
r=Mark-Simulacrum compiletest: Refactor test rustcflags Refactoring `host-rustcflags` and `target-rustcflags` from `Option<String>` to `Vec<String>` Ref: #102438 r? `@Mark-Simulacrum`
2022-10-26check lld version to choose correct flag for testsDaniil Belov-1/+4
2022-10-24also smoke-test 'cargo miri test'Ralf Jung-2/+36
2022-10-24add support for testing Miri on other targets, and do some cross-testing on CIRalf Jung-3/+13
2022-10-19compiletest: refactor rustcflags to VecAndrew Pollack-3/+7
2022-10-12Enable `x.py check` for miriOli Scherer-2/+2
2022-10-11Auto merge of #102755 - pcc:data-local-tmp, r=Mark-Simulacrumbors-1/+1
tools/remote-test-{server,client}: Use /data/local/tmp on Android The /data/tmp directory does not exist, at least not on recent versions of Android, which currently leads to test failures on that platform. I checked a virtual device running AOSP master and a Nexus 5 running Android Marshmallow and on both devices the /data/tmp directory does not exist and /data/local/tmp does, so let's switch to /data/local/tmp.
2022-10-06tools/remote-test-{server,client}: Use /data/local/tmp on AndroidPeter Collingbourne-1/+1
The /data/tmp directory does not exist, at least not on recent versions of Android, which currently leads to test failures on that platform. I checked a virtual device running AOSP master and a Nexus 5 running Android Marshmallow and on both devices the /data/tmp directory does not exist and /data/local/tmp does, so let's switch to /data/local/tmp.
2022-10-06Auto merge of #102573 - RalfJung:mirisync, r=oli-obkbors-12/+0
Miri sync This is a Miri sync created with my experimental fork of josh. We should probably not merge this yet, but we can use this to check if the sync looks the way it should. r? `@oli-obk`
2022-10-04test Miri changes in PR CI; we no longer need xargoRalf Jung-12/+0
2022-09-24bootstrap/miri: switch to non-deprecated env var for setting the sysroot folderRalf Jung-1/+1
2022-09-21Remove miri from the submodule list and require it for CI to passOli Scherer-101/+88
2022-09-14jsondoclint: New ToolNixon Enraght-Moony-0/+2
2022-09-01Auto merge of #100606 - cuviper:upgrade-linux-ci, r=Mark-Simulacrumbors-1/+4
ci: Upgrade non-dist Linux testers from ubuntu:16.04 to 22.04 The main goal of updating to 22.04 is to get away from `llvm.allow-old-toolchain`. A side benefit is that they can also use the system `cmake` instead of building one.
2022-08-27Sunset RLSEric Huss-51/+0
2022-08-27Add replace-version-placeholder toolest31-0/+37
This tool is to be ran at specific points in the release process to replace the version place holder made by stabilizations with the version number.
2022-08-23rustbuild: fix version parsing for browser-ui-testJosh Stone-1/+4
2022-08-21Correct test-args to compiletest on Windowsczzrr-1/+9
2022-08-11Add instructions on how to update the browser-ui-test versionGuillaume Gomez-0/+5
2022-08-09Rollup merge of #100181 - RalfJung:alloc-ref-mutability, r=jackh726Dylan DPC-0/+4
add method to get the mutability of an AllocId Miri needs this for https://github.com/rust-lang/miri/issues/2463.
2022-08-07Auto merge of #100004 - jyn514:exclude-single-test, r=Mark-Simulacrumbors-0/+5
Move `x test --skip` to be part of `--exclude` `--skip` is inconsistent with the rest of the interface and redundant with `--exclude`. Fix --exclude to work properly for files and directories rather than having a separate flag. Fixes https://github.com/rust-lang/rust/issues/96342. cc https://github.com/rust-lang/rust/pull/96493#issuecomment-1200521720 r? `@Mark-Simulacrum`
2022-08-05propagate --bless to MiriRalf Jung-0/+4
2022-08-02Remove CARGO_TEST_DISABLE_GIT_CLIEric Huss-2/+0
This was a leftover from the Appveyor days.
2022-07-31Move `x test --skip` to be part of `--exclude`Joshua Nelson-0/+5
`--skip` is inconsistent with the rest of the interface and redundant with `--exclude`. Fix --exclude to work properly for files and directories rather than having a separate flag. If someone needs to use --skip for something other than compiletest, they can use `--test-args --skip` instead.
2022-07-28Build rust demangler before running run-make testsTomasz Miąsko-2/+6
2022-07-24Only run proc-macro-srv tests for now (after discussion with @Veykril, ↵Amos Wenger-4/+7
@jyn514, and @lnicola)
2022-07-24Don't run slow tests in Rust CI, only RA CIAmos Wenger-0/+4
2022-07-24Add comment about CARGO_WORKSPACE_DIRAmos Wenger-0/+2