Skip to content

Commit 69e47c7

Browse files
committed
Auto merge of #24537 - rprichard:fix-parallel-check, r=alexcrichton
This required fixing the `pretty-rpass-full` tests to have the same `$$(CSREQ$(1)_T_$(2)_H_$(3))` dependencies as the `rpass-full` and `cfail-full` tests. It also required fixing the `run-make/simd-ffi` test to use unique names for its output files.
2 parents 65f8899 + 38d26d8 commit 69e47c7

32 files changed

+41
-38
lines changed

mk/tests.mk

+10-8
Original file line numberDiff line numberDiff line change
@@ -753,20 +753,22 @@ PRETTY_DEPS_pretty-rpass-full = $(RPASS_FULL_TESTS)
753753
PRETTY_DEPS_pretty-rfail = $(RFAIL_TESTS)
754754
PRETTY_DEPS_pretty-bench = $(BENCH_TESTS)
755755
PRETTY_DEPS_pretty-pretty = $(PRETTY_TESTS)
756-
# The stage- and host-specific dependencies are for e.g. macro_crate_test which pulls in
757-
# external crates.
758-
PRETTY_DEPS$(1)_H_$(3)_pretty-rpass =
759-
PRETTY_DEPS$(1)_H_$(3)_pretty-rpass-full = $$(HLIB$(1)_H_$(3))/stamp.syntax $$(HLIB$(1)_H_$(3))/stamp.rustc
760-
PRETTY_DEPS$(1)_H_$(3)_pretty-rfail =
761-
PRETTY_DEPS$(1)_H_$(3)_pretty-bench =
762-
PRETTY_DEPS$(1)_H_$(3)_pretty-pretty =
763756
PRETTY_DIRNAME_pretty-rpass = run-pass
764757
PRETTY_DIRNAME_pretty-rpass-valgrind = run-pass-valgrind
765758
PRETTY_DIRNAME_pretty-rpass-full = run-pass-fulldeps
766759
PRETTY_DIRNAME_pretty-rfail = run-fail
767760
PRETTY_DIRNAME_pretty-bench = bench
768761
PRETTY_DIRNAME_pretty-pretty = pretty
769762

763+
define DEF_PRETTY_FULLDEPS
764+
PRETTY_DEPS$(1)_T_$(2)_H_$(3)_pretty-rpass-full = $$(CSREQ$(1)_T_$(3)_H_$(3))
765+
endef
766+
767+
$(foreach host,$(CFG_HOST), \
768+
$(foreach target,$(CFG_TARGET), \
769+
$(foreach stage,$(STAGES), \
770+
$(eval $(call DEF_PRETTY_FULLDEPS,$(stage),$(target),$(host))))))
771+
770772
define DEF_RUN_PRETTY_TEST
771773

772774
PRETTY_ARGS$(1)-T-$(2)-H-$(3)-$(4) := \
@@ -780,7 +782,7 @@ check-stage$(1)-T-$(2)-H-$(3)-$(4)-exec: $$(call TEST_OK_FILE,$(1),$(2),$(3),$(4
780782
$$(call TEST_OK_FILE,$(1),$(2),$(3),$(4)): \
781783
$$(TEST_SREQ$(1)_T_$(2)_H_$(3)) \
782784
$$(PRETTY_DEPS_$(4)) \
783-
$$(PRETTY_DEPS$(1)_H_$(3)_$(4))
785+
$$(PRETTY_DEPS$(1)_T_$(2)_H_$(3)_$(4))
784786
@$$(call E, run pretty-rpass [$(2)]: $$<)
785787
$$(Q)touch $$@.start_time
786788
$$(Q)$$(call CFG_RUN_CTEST_$(2),$(1),$$<,$(3)) \

src/compiletest/runtest.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1465,7 +1465,7 @@ fn make_out_name(config: &Config, testfile: &Path, extension: &str) -> PathBuf {
14651465
fn aux_output_dir_name(config: &Config, testfile: &Path) -> PathBuf {
14661466
let f = output_base_name(config, testfile);
14671467
let mut fname = f.file_name().unwrap().to_os_string();
1468-
fname.push("libaux");
1468+
fname.push(&format!(".{}.libaux", config.mode));
14691469
f.with_file_name(&fname)
14701470
}
14711471

src/test/compile-fail-fulldeps/macro-crate-rlib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// aux-build:rlib_crate_test.rs
1212
// ignore-stage1
1313
// ignore-tidy-linelength
14-
// ignore-android
1514
// ignore-cross-compile gives a different error message
1615

1716
#![feature(plugin)]

src/test/run-make/simd-ffi/Makefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ define MK_TARGETS
2727
# on some platforms, but LLVM just prints a warning so that's fine for
2828
# now.
2929
$(1): simd.rs
30-
$$(RUSTC) --target=$(1) --emit=llvm-ir,asm simd.rs -C target-feature='+neon,+sse2'
30+
$$(RUSTC) --target=$(1) --emit=llvm-ir,asm simd.rs \
31+
-C target-feature='+neon,+sse2' -C extra-filename=-$(1)
3132
endef
3233

3334
$(foreach targetxxx,$(TARGETS),$(eval $(call MK_TARGETS,$(targetxxx))))

src/test/run-pass-fulldeps/compiler-calls.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
// Test that the CompilerCalls interface to the compiler works.
1212

13-
// ignore-android
13+
// ignore-cross-compile
1414

1515
#![feature(rustc_private, path)]
1616
#![feature(core)]

src/test/run-pass-fulldeps/create-dir-all-bare.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// ignore-android
11+
// ignore-cross-compile
1212

1313
#![feature(rustc_private)]
1414

src/test/run-pass-fulldeps/issue-15149.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
// no-prefer-dynamic
12-
// ignore-android
12+
// ignore-cross-compile
1313

1414
#![feature(rustc_private)]
1515

src/test/run-pass-fulldeps/issue-16992.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
// ignore-pretty
12-
// ignore-android
12+
// ignore-cross-compile
1313

1414
#![feature(quote, rustc_private)]
1515

src/test/run-pass-fulldeps/issue-18763-quote-token-tree.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// ignore-android
11+
// ignore-cross-compile
1212
// ignore-pretty: does not work well with `--test`
1313

1414
#![feature(quote, rustc_private)]

src/test/run-pass-fulldeps/qquote.rs

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// ignore-cross-compile
1112
// ignore-pretty
1213
// ignore-test
1314

src/test/run-pass-fulldeps/quote-tokens.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// ignore-android
11+
// ignore-cross-compile
1212
// ignore-pretty: does not work well with `--test`
1313

1414
#![feature(quote, rustc_private)]

src/test/run-pass-fulldeps/quote-unused-sp-no-warning.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// ignore-android
11+
// ignore-cross-compile
1212
// ignore-pretty: does not work well with `--test`
1313

1414
#![feature(quote, rustc_private)]

src/test/run-pass-fulldeps/rename-directory.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// This test can't be a unit test in std,
1212
// because it needs TempDir, which is in extra
1313

14-
// ignore-android
14+
// ignore-cross-compile
1515

1616
#![feature(rustc_private, path_ext)]
1717

src/test/rustdoc/default-impl.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
// aux-build:rustdoc-default-impl.rs
12-
// ignore-android
12+
// ignore-cross-compile
1313

1414
extern crate rustdoc_default_impl as foo;
1515

src/test/rustdoc/extern-default-method.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
// aux-build:rustdoc-extern-default-method.rs
12-
// ignore-android
12+
// ignore-cross-compile
1313

1414
extern crate rustdoc_extern_default_method as ext;
1515

src/test/rustdoc/extern-method.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
// aux-build:rustdoc-extern-method.rs
12-
// ignore-android
12+
// ignore-cross-compile
1313

1414
#![feature(unboxed_closures)]
1515

src/test/rustdoc/ffi.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
// aux-build:rustdoc-ffi.rs
12-
// ignore-android
12+
// ignore-cross-compile
1313

1414
extern crate rustdoc_ffi as lib;
1515

src/test/rustdoc/inline-default-methods.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
// aux-build:inline-default-methods.rs
12-
// ignore-android
12+
// ignore-cross-compile
1313

1414
extern crate inline_default_methods;
1515

src/test/rustdoc/issue-13698.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
// aux-build:issue-13698.rs
12-
// ignore-android
12+
// ignore-cross-compile
1313

1414
extern crate issue_13698;
1515

src/test/rustdoc/issue-15318-2.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
// aux-build:issue-15318.rs
12-
// ignore-android
12+
// ignore-cross-compile
1313

1414
extern crate issue_15318;
1515

src/test/rustdoc/issue-15318.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
// aux-build:issue-15318.rs
12-
// ignore-android
12+
// ignore-cross-compile
1313

1414
#![feature(no_std)]
1515
#![no_std]

src/test/rustdoc/issue-17476.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
// aux-build:issue-17476.rs
12-
// ignore-android
12+
// ignore-cross-compile
1313

1414
extern crate issue_17476;
1515

src/test/rustdoc/issue-19190-3.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
// aux-build:issue-19190-3.rs
12-
// ignore-android
12+
// ignore-cross-compile
1313

1414
extern crate issue_19190_3;
1515

src/test/rustdoc/issue-20646.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
// aux-build:issue-20646.rs
12-
// ignore-android
12+
// ignore-cross-compile
1313

1414
#![feature(associated_types)]
1515

src/test/rustdoc/issue-20727-2.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
// aux-build:issue-20727.rs
12-
// ignore-android
12+
// ignore-cross-compile
1313

1414
extern crate issue_20727;
1515

src/test/rustdoc/issue-20727-3.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
// aux-build:issue-20727.rs
12-
// ignore-android
12+
// ignore-cross-compile
1313

1414
extern crate issue_20727;
1515

src/test/rustdoc/issue-20727-4.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
// aux-build:issue-20727.rs
12-
// ignore-android
12+
// ignore-cross-compile
1313

1414
extern crate issue_20727;
1515

src/test/rustdoc/issue-20727.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
// aux-build:issue-20727.rs
12-
// ignore-android
12+
// ignore-cross-compile
1313

1414
extern crate issue_20727;
1515

src/test/rustdoc/issue-21092.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
// aux-build:issue-21092.rs
12-
// ignore-android
12+
// ignore-cross-compile
1313

1414
extern crate issue_21092;
1515

src/test/rustdoc/issue-21801.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
// aux-build:issue-21801.rs
12-
// ignore-android
12+
// ignore-cross-compile
1313

1414
extern crate issue_21801;
1515

src/test/rustdoc/issue-22025.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111
// aux-build:issue-22025.rs
12-
// ignore-android
12+
// ignore-cross-compile
1313

1414
extern crate issue_22025;
1515

src/test/rustdoc/issue-23207.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
// aux-build:issue-23207-1.rs
1212
// aux-build:issue-23207-2.rs
13-
// ignore-android
13+
// ignore-cross-compile
1414

1515
extern crate issue_23207_2;
1616

0 commit comments

Comments
 (0)