Skip to content

Commit c798dff

Browse files
committed
Auto merge of #63029 - petrochenkov:rpass, r=Centril
Move run-pass tests to ui This is the second attempt at doing #53994 (which was previously reverted in #54530). The issue with inability to run the test suite in a faster way (#54047) that motivated the revert was recently addressed by #61755. r? @Centril
2 parents a5e7bb3 + f1c8673 commit c798dff

File tree

3,336 files changed

+1175
-324
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,336 files changed

+1175
-324
lines changed

src/bootstrap/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ The script accepts commands, flags, and arguments to determine what to do:
5555
# run all unit tests
5656
./x.py test
5757
58-
# execute the run-pass test suite
59-
./x.py test src/test/run-pass
58+
# execute the UI test suite
59+
./x.py test src/test/ui
6060
61-
# execute only some tests in the run-pass test suite
62-
./x.py test src/test/run-pass --test-args substring-of-test-name
61+
# execute only some tests in the UI test suite
62+
./x.py test src/test/ui --test-args substring-of-test-name
6363
6464
# execute tests in the standard library in stage0
6565
./x.py test --stage 0 src/libstd
@@ -215,7 +215,7 @@ build/
215215

216216
# Output for all compiletest-based test suites
217217
test/
218-
run-pass/
218+
ui/
219219
compile-fail/
220220
debuginfo/
221221
...

src/bootstrap/builder.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,6 @@ impl<'a> Builder<'a> {
371371
Kind::Test => describe!(
372372
test::Tidy,
373373
test::Ui,
374-
test::RunPass,
375374
test::CompileFail,
376375
test::RunFail,
377376
test::RunPassValgrind,
@@ -382,10 +381,8 @@ impl<'a> Builder<'a> {
382381
test::Incremental,
383382
test::Debuginfo,
384383
test::UiFullDeps,
385-
test::RunPassFullDeps,
386384
test::Rustdoc,
387385
test::Pretty,
388-
test::RunPassPretty,
389386
test::RunFailPretty,
390387
test::RunPassValgrindPretty,
391388
test::Crate,

src/bootstrap/builder/tests.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,6 @@ fn test_with_no_doc_stage0() {
629629
fn test_exclude() {
630630
let mut config = configure(&[], &[]);
631631
config.exclude = vec![
632-
"src/test/run-pass".into(),
633632
"src/tools/tidy".into(),
634633
];
635634
config.cmd = Subcommand::Test {
@@ -648,11 +647,9 @@ fn test_exclude() {
648647
let builder = Builder::new(&build);
649648
builder.run_step_descriptions(&Builder::get_step_descriptions(Kind::Test), &[]);
650649

651-
// Ensure we have really excluded run-pass & tidy
652-
assert!(!builder.cache.contains::<test::RunPass>());
650+
// Ensure we have really excluded tidy
653651
assert!(!builder.cache.contains::<test::Tidy>());
654652

655653
// Ensure other tests are not affected.
656-
assert!(builder.cache.contains::<test::RunPassFullDeps>());
657654
assert!(builder.cache.contains::<test::RustdocUi>());
658655
}

src/bootstrap/flags.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ Arguments:
330330
This subcommand accepts a number of paths to directories to tests that
331331
should be compiled and run. For example:
332332
333-
./x.py test src/test/run-pass
333+
./x.py test src/test/ui
334334
./x.py test src/libstd --test-args hash_map
335335
./x.py test src/libstd --stage 0 --no-doc
336336
./x.py test src/test/ui --bless

src/bootstrap/mk/Makefile.in

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,8 @@ check:
4848
$(Q)$(BOOTSTRAP) test $(BOOTSTRAP_ARGS)
4949
check-aux:
5050
$(Q)$(BOOTSTRAP) test \
51-
src/test/run-pass/pretty \
5251
src/test/run-fail/pretty \
5352
src/test/run-pass-valgrind/pretty \
54-
src/test/run-pass-fulldeps/pretty \
5553
$(AUX_ARGS) \
5654
$(BOOTSTRAP_ARGS)
5755
check-bootstrap:
@@ -75,9 +73,7 @@ check-stage2-T-x86_64-unknown-linux-musl-H-x86_64-unknown-linux-gnu:
7573

7674
TESTS_IN_2 := \
7775
src/test/ui \
78-
src/test/run-pass \
7976
src/test/compile-fail \
80-
src/test/run-pass-fulldeps \
8177
src/tools/linkchecker
8278

8379
ci-subset-1:

src/bootstrap/native.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ impl Step for TestHelpers {
547547
}
548548

549549
/// Compiles the `rust_test_helpers.c` library which we used in various
550-
/// `run-pass` test suites for ABI testing.
550+
/// `run-pass` tests for ABI testing.
551551
fn run(self, builder: &Builder<'_>) {
552552
if builder.config.dry_run {
553553
return;

src/bootstrap/test.rs

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -820,13 +820,6 @@ default_test_with_compare_mode!(Ui {
820820
compare_mode: "nll"
821821
});
822822

823-
default_test_with_compare_mode!(RunPass {
824-
path: "src/test/run-pass",
825-
mode: "run-pass",
826-
suite: "run-pass",
827-
compare_mode: "nll"
828-
});
829-
830823
default_test!(CompileFail {
831824
path: "src/test/compile-fail",
832825
mode: "compile-fail",
@@ -881,12 +874,6 @@ host_test!(UiFullDeps {
881874
suite: "ui-fulldeps"
882875
});
883876

884-
host_test!(RunPassFullDeps {
885-
path: "src/test/run-pass-fulldeps",
886-
mode: "run-pass",
887-
suite: "run-pass-fulldeps"
888-
});
889-
890877
host_test!(Rustdoc {
891878
path: "src/test/rustdoc",
892879
mode: "rustdoc",
@@ -898,13 +885,6 @@ host_test!(Pretty {
898885
mode: "pretty",
899886
suite: "pretty"
900887
});
901-
test!(RunPassPretty {
902-
path: "src/test/run-pass/pretty",
903-
mode: "pretty",
904-
suite: "run-pass",
905-
default: false,
906-
host: true
907-
});
908888
test!(RunFailPretty {
909889
path: "src/test/run-fail/pretty",
910890
mode: "pretty",

src/ci/docker/asmjs/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ ENV TARGETS=asmjs-unknown-emscripten
3232
ENV RUST_CONFIGURE_ARGS --enable-emscripten --disable-optimize-tests
3333

3434
ENV SCRIPT python2.7 ../x.py test --target $TARGETS \
35-
src/test/run-pass \
35+
src/test/ui \
3636
src/test/run-fail \
3737
src/libstd \
3838
src/liballoc \

src/ci/docker/test-various/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ ENV WASM_TARGETS=wasm32-unknown-unknown
4343
ENV WASM_SCRIPT python2.7 /checkout/x.py test --target $WASM_TARGETS \
4444
src/test/run-make \
4545
src/test/ui \
46-
src/test/run-pass \
4746
src/test/compile-fail \
4847
src/test/mir-opt \
4948
src/test/codegen-units \

src/doc/unstable-book/src/language-features/plugin.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ code that manipulates syntax trees at
4444
compile time.
4545

4646
Let's write a plugin
47-
[`roman_numerals.rs`](https://github.com/rust-lang/rust/blob/master/src/test/run-pass-fulldeps/auxiliary/roman_numerals.rs)
47+
[`roman_numerals.rs`](https://github.com/rust-lang/rust/blob/master/src/test/ui-fulldeps/auxiliary/roman_numerals.rs)
4848
that implements Roman numeral integer literals.
4949

5050
```rust,ignore

0 commit comments

Comments
 (0)