quiet-tests -> !verbose-tests
This commit is contained in:
parent
9fd026a96c
commit
0c1bcd3871
5 changed files with 16 additions and 19 deletions
|
@ -301,9 +301,9 @@
|
||||||
# desired in distributions, for example.
|
# desired in distributions, for example.
|
||||||
#rpath = true
|
#rpath = true
|
||||||
|
|
||||||
# Suppresses extraneous output from tests to ensure the output of the test
|
# Emits extraneous output from tests to ensure that failures of the test
|
||||||
# harness is relatively clean.
|
# harness are debuggable just from logfiles.
|
||||||
#quiet-tests = true
|
#verbose-tests = false
|
||||||
|
|
||||||
# Flag indicating whether tests are compiled with optimizations (the -O flag) or
|
# Flag indicating whether tests are compiled with optimizations (the -O flag) or
|
||||||
# with debuginfo (the -g flag)
|
# with debuginfo (the -g flag)
|
||||||
|
|
|
@ -125,7 +125,7 @@ pub struct Config {
|
||||||
// misc
|
// misc
|
||||||
pub low_priority: bool,
|
pub low_priority: bool,
|
||||||
pub channel: String,
|
pub channel: String,
|
||||||
pub quiet_tests: bool,
|
pub verbose_tests: bool,
|
||||||
pub test_miri: bool,
|
pub test_miri: bool,
|
||||||
pub save_toolstates: Option<PathBuf>,
|
pub save_toolstates: Option<PathBuf>,
|
||||||
pub print_step_timings: bool,
|
pub print_step_timings: bool,
|
||||||
|
@ -301,7 +301,7 @@ struct Rust {
|
||||||
ignore_git: Option<bool>,
|
ignore_git: Option<bool>,
|
||||||
debug: Option<bool>,
|
debug: Option<bool>,
|
||||||
dist_src: Option<bool>,
|
dist_src: Option<bool>,
|
||||||
quiet_tests: Option<bool>,
|
verbose_tests: Option<bool>,
|
||||||
test_miri: Option<bool>,
|
test_miri: Option<bool>,
|
||||||
incremental: Option<bool>,
|
incremental: Option<bool>,
|
||||||
save_toolstates: Option<String>,
|
save_toolstates: Option<String>,
|
||||||
|
@ -347,7 +347,6 @@ impl Config {
|
||||||
config.backtrace = true;
|
config.backtrace = true;
|
||||||
config.rust_optimize = true;
|
config.rust_optimize = true;
|
||||||
config.rust_optimize_tests = true;
|
config.rust_optimize_tests = true;
|
||||||
config.quiet_tests = true;
|
|
||||||
config.submodules = true;
|
config.submodules = true;
|
||||||
config.fast_submodules = true;
|
config.fast_submodules = true;
|
||||||
config.docs = true;
|
config.docs = true;
|
||||||
|
@ -529,7 +528,7 @@ impl Config {
|
||||||
set(&mut config.backtrace, rust.backtrace);
|
set(&mut config.backtrace, rust.backtrace);
|
||||||
set(&mut config.channel, rust.channel.clone());
|
set(&mut config.channel, rust.channel.clone());
|
||||||
set(&mut config.rust_dist_src, rust.dist_src);
|
set(&mut config.rust_dist_src, rust.dist_src);
|
||||||
set(&mut config.quiet_tests, rust.quiet_tests);
|
set(&mut config.verbose_tests, rust.verbose_tests);
|
||||||
set(&mut config.test_miri, rust.test_miri);
|
set(&mut config.test_miri, rust.test_miri);
|
||||||
// in the case "false" is set explicitly, do not overwrite the command line args
|
// in the case "false" is set explicitly, do not overwrite the command line args
|
||||||
if let Some(true) = rust.incremental {
|
if let Some(true) = rust.incremental {
|
||||||
|
|
|
@ -47,7 +47,7 @@ o("optimize-tests", "rust.optimize-tests", "build tests with optimizations")
|
||||||
o("experimental-parallel-queries", "rust.experimental-parallel-queries", "build rustc with experimental parallelization")
|
o("experimental-parallel-queries", "rust.experimental-parallel-queries", "build rustc with experimental parallelization")
|
||||||
o("test-miri", "rust.test-miri", "run miri's test suite")
|
o("test-miri", "rust.test-miri", "run miri's test suite")
|
||||||
o("debuginfo-tests", "rust.debuginfo-tests", "build tests with debugger metadata")
|
o("debuginfo-tests", "rust.debuginfo-tests", "build tests with debugger metadata")
|
||||||
o("quiet-tests", "rust.quiet-tests", "enable quieter output when running tests")
|
o("verbose-tests", "rust.verbose-tests", "enable verbose output when running tests")
|
||||||
o("ccache", "llvm.ccache", "invoke gcc/clang via ccache to reuse object files between builds")
|
o("ccache", "llvm.ccache", "invoke gcc/clang via ccache to reuse object files between builds")
|
||||||
o("sccache", None, "invoke gcc/clang via sccache to reuse object files between builds")
|
o("sccache", None, "invoke gcc/clang via sccache to reuse object files between builds")
|
||||||
o("local-rust", None, "use an installed rustc rather than downloading a snapshot")
|
o("local-rust", None, "use an installed rustc rather than downloading a snapshot")
|
||||||
|
|
|
@ -632,7 +632,7 @@ impl Step for Tidy {
|
||||||
if !builder.config.vendor {
|
if !builder.config.vendor {
|
||||||
cmd.arg("--no-vendor");
|
cmd.arg("--no-vendor");
|
||||||
}
|
}
|
||||||
if builder.config.quiet_tests {
|
if !builder.config.verbose_tests {
|
||||||
cmd.arg("--quiet");
|
cmd.arg("--quiet");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1086,7 +1086,7 @@ impl Step for Compiletest {
|
||||||
cmd.arg("--verbose");
|
cmd.arg("--verbose");
|
||||||
}
|
}
|
||||||
|
|
||||||
if builder.config.quiet_tests {
|
if !builder.config.verbose_tests {
|
||||||
cmd.arg("--quiet");
|
cmd.arg("--quiet");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1397,10 +1397,10 @@ fn markdown_test(builder: &Builder, compiler: Compiler, markdown: &Path) -> bool
|
||||||
let test_args = builder.config.cmd.test_args().join(" ");
|
let test_args = builder.config.cmd.test_args().join(" ");
|
||||||
cmd.arg("--test-args").arg(test_args);
|
cmd.arg("--test-args").arg(test_args);
|
||||||
|
|
||||||
if builder.config.quiet_tests {
|
if builder.config.verbose_tests {
|
||||||
try_run_quiet(builder, &mut cmd)
|
|
||||||
} else {
|
|
||||||
try_run(builder, &mut cmd)
|
try_run(builder, &mut cmd)
|
||||||
|
} else {
|
||||||
|
try_run_quiet(builder, &mut cmd)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1632,7 +1632,7 @@ impl Step for Crate {
|
||||||
cargo.arg("--");
|
cargo.arg("--");
|
||||||
cargo.args(&builder.config.cmd.test_args());
|
cargo.args(&builder.config.cmd.test_args());
|
||||||
|
|
||||||
if builder.config.quiet_tests {
|
if !builder.config.verbose_tests {
|
||||||
cargo.arg("--quiet");
|
cargo.arg("--quiet");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1742,7 +1742,7 @@ impl Step for CrateRustdoc {
|
||||||
cargo.arg("--");
|
cargo.arg("--");
|
||||||
cargo.args(&builder.config.cmd.test_args());
|
cargo.args(&builder.config.cmd.test_args());
|
||||||
|
|
||||||
if builder.config.quiet_tests {
|
if !builder.config.verbose_tests {
|
||||||
cargo.arg("--quiet");
|
cargo.arg("--quiet");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -27,10 +27,8 @@ fi
|
||||||
ci_dir=`cd $(dirname $0) && pwd`
|
ci_dir=`cd $(dirname $0) && pwd`
|
||||||
source "$ci_dir/shared.sh"
|
source "$ci_dir/shared.sh"
|
||||||
|
|
||||||
if [ "$TRAVIS" == "true" ] && [ "$TRAVIS_BRANCH" != "auto" ]; then
|
if [ "$TRAVIS" != "true" ] || [ "$TRAVIS_BRANCH" == "auto" ]; then
|
||||||
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --enable-quiet-tests"
|
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set build.print-step-timings --enable-verbose-tests"
|
||||||
else
|
|
||||||
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set build.print-step-timings"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --enable-sccache"
|
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --enable-sccache"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue