about summary refs log tree commit diff
path: root/src/bootstrap/build/step.rs
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2016-03-18 20:54:31 +0000
committerBrian Anderson <banderson@mozilla.com>2016-03-22 21:46:21 +0000
commit3a790acf191a426c45b155d0d4a5078ef208a4b4 (patch)
tree64272fe197c5abffe4497722aecf43709c5f7aae /src/bootstrap/build/step.rs
parent2ae05d37dac364cfcbb3cf3a2490ea8b7116f04c (diff)
Introduce 'cargotest' and the check-cargotest buildstep
This is a new suite of tests that verifies that the compiler
builds specific revisions of select crates from crates.io.

It does not run by default. It is intended that buildbot
runs these tests against all PRs, and gate on them.
Diffstat (limited to 'src/bootstrap/build/step.rs')
-rw-r--r--src/bootstrap/build/step.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/bootstrap/build/step.rs b/src/bootstrap/build/step.rs
index 2fd961003a4..107b0688b68 100644
--- a/src/bootstrap/build/step.rs
+++ b/src/bootstrap/build/step.rs
@@ -47,6 +47,7 @@ macro_rules! targets {
             (tool_linkchecker, ToolLinkchecker { stage: u32 }),
             (tool_rustbook, ToolRustbook { stage: u32 }),
             (tool_error_index, ToolErrorIndex { stage: u32 }),
+            (tool_cargotest, ToolCargoTest { stage: u32 }),
 
             // Steps for long-running native builds. Ideally these wouldn't
             // actually exist and would be part of build scripts, but for now
@@ -73,6 +74,7 @@ macro_rules! targets {
             // target to depend on a bunch of others.
             (check, Check { stage: u32, compiler: Compiler<'a> }),
             (check_linkcheck, CheckLinkcheck { stage: u32 }),
+            (check_cargotest, CheckCargoTest { stage: u32 }),
 
             // Distribution targets, creating tarballs
             (dist, Dist { stage: u32 }),
@@ -292,6 +294,9 @@ impl<'a> Step<'a> {
             Source::CheckLinkcheck { stage } => {
                 vec![self.tool_linkchecker(stage), self.doc(stage)]
             }
+            Source::CheckCargoTest { stage } => {
+                vec![self.tool_cargotest(stage)]
+            }
 
             Source::ToolLinkchecker { stage } => {
                 vec![self.libstd(self.compiler(stage))]
@@ -300,6 +305,9 @@ impl<'a> Step<'a> {
             Source::ToolRustbook { stage } => {
                 vec![self.librustc(self.compiler(stage))]
             }
+            Source::ToolCargoTest { stage } => {
+                vec![self.libstd(self.compiler(stage))]
+            }
 
             Source::DistDocs { stage } => vec![self.doc(stage)],
             Source::DistMingw { _dummy: _ } => Vec::new(),