diff options
Diffstat (limited to 'src/compiletest')
| -rw-r--r-- | src/compiletest/common.rs | 5 | ||||
| -rw-r--r-- | src/compiletest/compiletest.rs | 4 | 
2 files changed, 8 insertions, 1 deletions
| diff --git a/src/compiletest/common.rs b/src/compiletest/common.rs index e66094dc395..33ec974c527 100644 --- a/src/compiletest/common.rs +++ b/src/compiletest/common.rs @@ -155,5 +155,8 @@ pub struct Config { pub lldb_python_dir: Option<String>, // Explain what's going on - pub verbose: bool + pub verbose: bool, + + // Print one character per test instead of one line + pub quiet: bool, } diff --git a/src/compiletest/compiletest.rs b/src/compiletest/compiletest.rs index 99745d840f7..8a7ddbd91ca 100644 --- a/src/compiletest/compiletest.rs +++ b/src/compiletest/compiletest.rs @@ -78,6 +78,7 @@ pub fn parse_config(args: Vec<String> ) -> Config { optopt("", "host-rustcflags", "flags to pass to rustc for host", "FLAGS"), optopt("", "target-rustcflags", "flags to pass to rustc for target", "FLAGS"), optflag("", "verbose", "run tests verbosely, showing all output"), + optflag("", "quiet", "print one character per test instead of one line"), optopt("", "logfile", "file to log test execution to", "FILE"), optopt("", "target", "the target to build for", "TARGET"), optopt("", "host", "the host to build for", "HOST"), @@ -158,6 +159,7 @@ pub fn parse_config(args: Vec<String> ) -> Config { !opt_str2(matches.opt_str("adb-test-dir")).is_empty(), lldb_python_dir: matches.opt_str("lldb-python-dir"), verbose: matches.opt_present("verbose"), + quiet: matches.opt_present("quiet"), } } @@ -191,6 +193,7 @@ pub fn log_config(config: &Config) { logv(c, format!("adb_device_status: {}", config.adb_device_status)); logv(c, format!("verbose: {}", config.verbose)); + logv(c, format!("quiet: {}", config.quiet)); logv(c, format!("\n")); } @@ -257,6 +260,7 @@ pub fn test_opts(config: &Config) -> test::TestOpts { Some(ref filter) => Some(filter.clone()), }, run_ignored: config.run_ignored, + quiet: config.quiet, logfile: config.logfile.clone(), run_tests: true, bench_benchmarks: true, | 
