|
3 | 3 | //! `./x.py test` (aka [`Kind::Test`]) is currently allowed to reach build steps in other modules. |
4 | 4 | //! However, this contains ~all test parts we expect people to be able to build and run locally. |
5 | 5 |
|
6 | | -// FIXME(jieyouxu): keeping unused imports here before all test steps are properly split out. |
7 | | -#![expect(unused_imports)] |
8 | | - |
9 | | -use std::collections::HashSet; |
10 | | -use std::ffi::{OsStr, OsString}; |
11 | | -use std::path::{Path, PathBuf}; |
12 | | -use std::{env, fs, iter}; |
13 | | - |
14 | | -use clap_complete::shells; |
15 | | - |
16 | | -use self::test_helpers::{RemoteCopyLibs, prepare_cargo_test, run_cargo_test}; |
17 | | -use crate::core::build_steps::compile::run_cargo; |
18 | | -use crate::core::build_steps::doc::DocumentationFormat; |
19 | | -use crate::core::build_steps::llvm::get_llvm_version; |
20 | | -use crate::core::build_steps::synthetic_targets::MirOptPanicAbortSyntheticTarget; |
21 | | -use crate::core::build_steps::tool::{self, SourceType, Tool}; |
22 | | -use crate::core::build_steps::toolstate::ToolState; |
23 | | -use crate::core::build_steps::{compile, dist, llvm}; |
24 | | -use crate::core::builder::{ |
25 | | - self, Alias, Builder, Compiler, Kind, RunConfig, ShouldRun, Step, crate_description, |
26 | | -}; |
27 | | -use crate::core::config::TargetSelection; |
28 | | -use crate::core::config::flags::{Subcommand, get_completion}; |
29 | | -use crate::utils::build_stamp::{self, BuildStamp}; |
30 | | -use crate::utils::exec::{BootstrapCommand, command}; |
31 | | -use crate::utils::helpers::{ |
32 | | - self, LldThreads, add_rustdoc_cargo_linker_args, dylib_path, dylib_path_var, linker_args, |
33 | | - linker_flags, t, target_supports_cranelift_backend, up_to_date, |
34 | | -}; |
35 | | -use crate::utils::render_tests::{add_flags_and_try_run_tests, try_run_tests}; |
36 | | -use crate::{CLang, DocTests, GitRepo, Mode, PathSet, envify}; |
37 | | - |
38 | 6 | mod book_tests; |
39 | 7 | mod bootstrap_self_tests; |
40 | 8 | mod cargotest; |
|
0 commit comments