compiletest: Add name directive for remote runners
Allow tests to use // ignore-remote to ignore the test when using remote-test-{client,server}. In most situations this would be covered by // ignore-cross-compile but I see no reason that a non-cross compiled remote test runner shouldn't work.
This commit is contained in:
parent
9e137bb8b6
commit
81df5ac241
3 changed files with 3 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
// ignore-cross-compile
|
// ignore-cross-compile
|
||||||
// ignore-stage1
|
// ignore-stage1
|
||||||
|
// ignore-remote
|
||||||
|
|
||||||
#![feature(rustc_private)]
|
#![feature(rustc_private)]
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
// run-pass
|
// run-pass
|
||||||
// Testing that a librustc_ast can parse modules with canonicalized base path
|
// Testing that a librustc_ast can parse modules with canonicalized base path
|
||||||
// ignore-cross-compile
|
// ignore-cross-compile
|
||||||
|
// ignore-remote
|
||||||
|
|
||||||
#![feature(rustc_private)]
|
#![feature(rustc_private)]
|
||||||
|
|
||||||
|
|
|
@ -853,6 +853,7 @@ impl Config {
|
||||||
name == util::get_pointer_width(&self.target) || // pointer width
|
name == util::get_pointer_width(&self.target) || // pointer width
|
||||||
name == self.stage_id.split('-').next().unwrap() || // stage
|
name == self.stage_id.split('-').next().unwrap() || // stage
|
||||||
(self.target != self.host && name == "cross-compile") ||
|
(self.target != self.host && name == "cross-compile") ||
|
||||||
|
(self.remote_test_client.is_some() && name == "remote") ||
|
||||||
match self.compare_mode {
|
match self.compare_mode {
|
||||||
Some(CompareMode::Nll) => name == "compare-mode-nll",
|
Some(CompareMode::Nll) => name == "compare-mode-nll",
|
||||||
Some(CompareMode::Polonius) => name == "compare-mode-polonius",
|
Some(CompareMode::Polonius) => name == "compare-mode-polonius",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue