Tracking Issue for assorted compiletest maintenance #130565
Labels
A-compiletest
Area: The compiletest test runner
C-cleanup
Category: PRs that clean code up or issues documenting cleanup.
C-tracking-issue
Category: An issue tracking the progress of sth. like the implementation of an RFC
T-bootstrap
Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
This is a tracking issue for a series of
compiletest
cleanups. This tracking issue is on-going and will be edited as suitable to reflect the next steps. Tasks should be broken up into small actionable items.Motivation
Currently
compiletest
is a bit of a mess causing it to be really hard to maintain. Let's try to do some housekeeping incompiletest
to make it easier to maintain.Phase 1:
compiletest/src/runtest.rs
cleanupscompiletest/src/runtest.rs
into smaller helper modules. (Break up compiletestruntest.rs
into smaller helper modules #130566)compiletest::runtest
#89475valgrind
test suites are handled, namely what happens ifvalgrind
is not available.run-pass-valgrind
test suite and valgrind support in Remove valgrind test suite and support from compiletest, bootstrap and opt-dist #131351.run-pass-valgrind
mentions rustc-dev-guide#2091TestCx
that does not need to be onTestCx
(especially ones that don't depend onTestCx
itself) to suitable locations.TestCx
:TestCx
inruntest.rs
to make it easier to navigate.runtest.rs
:TestCx
.TestCx
and types/concepts inruntest.rs
.rustc-dev-guide
docs about the individual test modes/suites and about test running.rustc-dev-guide
about how to add a new test suite/mode.Phase 2: Rework compiletest error handling and error reporting
compiletest
currently handles errors and reports them.compiletest
error reporting more cohesive and more helpful for users.Phase 3: Rework directive handling
https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/Test.20header.20commands.20could.20just.20be.20toml.3F proposes we can use structured TOML directives in doc comments.non-starter as it makes writing tests quite annoying.There are more phases intended, but they are to be planned.
Discussions
Rubber-ducking thread: https://rust-lang.zulipchat.com/#narrow/stream/326414-t-infra.2Fbootstrap/topic/.28Rubberducking.29.20compiletest.20test.20discovery.20.2F.20directives
The text was updated successfully, but these errors were encountered: