Skip to main content Module discovery Copy item path Source use core::panic ; π use core::panic ; π use std::collections::HashSet ; π use std::io ; π use std::io::ErrorKind ; π use std::sync::Arc ; π use std::time::SystemTime ; π use std::fs ; π use std::vec ; π use std::vec ; π use build_helper::git::get_git_modified_files ; π use build_helper::git::get_git_untracked_files ; π use camino::Utf8Component; π use camino::Utf8Path; π use camino::Utf8PathBuf; π use rayon::iter::ParallelBridge; π use rayon::iter::ParallelIterator; π use tracing::debug; π use walkdir::WalkDir; π use crate::common::CodegenBackend ; π use crate::common::Config ; π use crate::common::Debugger ; π use crate::common::TestMode ; π use crate::common::TestPaths ; π use crate::common::UI_EXTENSIONS ; π use crate::common::expected_output_path ; π use crate::common::output_base_dir ; π use crate::common::output_relative_path ; π use crate::directives ; π use crate::directives::AuxProps ; π use crate::directives::DirectivesCache ; π use crate::directives::EarlyProps ; π use crate::directives::FileDirectives ; π use crate::directives::make_test_description ; π use crate::executor::CollectedTest ; π use crate::executor::TestVariant ; π use crate::fatal ; π use crate::runtest ; π use crate::warning ; π Stamp π The maximum of a set of file-modified timestamps. TestCollector π Mutable state used during test collection. TestCollectorCx π Read-only context data used during test collection. check_for_overlapping_test_paths π Checks that test discovery didnβt find any tests whose name stem is a prefix
of some other testsβs name. collect_and_make_tests π Creates test structures for every test/revision in the test suite directory. collect_tests_from_dir π Recursively scans a directory to find test files and create test structures
that will be handed over to the executor. common_inputs_stamp π Returns the most recent last-modified timestamp from among the input files
that are considered relevant to all tests (e.g. the compiler, std, and
compiletest itself). discover_tests π Called by main after the config has been parsed. files_related_to_test π Returns a list of files that, if modified, would cause this test to no
longer be up-to-date. is_test π Returns true if file_name looks like a proper test file name. is_up_to_date π Checks whether a particular test/revision is βup-to-dateβ, meaning that no
relevant files/settings have changed since the last time the test succeeded. make_test π For a single test file, creates one or more test structures (one per revision) that can be
handed over to the executor to run, possibly in parallel. make_test_name_and_filterable_path π Creates a name for this test/revision that can be handed over to the executor. modified_tests π Returns a list of modified/untracked test files that should be run when
the --only-modified flag is in use. stamp_file_path π The path of the stamp file that gets created or updated whenever a
particular test completes successfully.