2012-12-03 16:48:01 -08:00
|
|
|
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
|
|
|
// file at the top-level directory of this distribution and at
|
|
|
|
// http://rust-lang.org/COPYRIGHT.
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
|
|
|
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
|
|
|
// option. This file may not be copied, modified, or distributed
|
|
|
|
// except according to those terms.
|
|
|
|
|
2013-01-08 19:37:25 -08:00
|
|
|
use core::prelude::*;
|
|
|
|
|
2012-12-28 11:50:27 -05:00
|
|
|
use cmp;
|
|
|
|
|
2013-01-30 14:10:03 -08:00
|
|
|
#[deriving_eq]
|
|
|
|
pub enum mode {
|
|
|
|
mode_compile_fail,
|
|
|
|
mode_run_fail,
|
|
|
|
mode_run_pass,
|
|
|
|
mode_pretty,
|
2012-11-14 18:59:30 -08:00
|
|
|
}
|
2012-08-30 13:10:36 -07:00
|
|
|
|
2013-01-30 14:10:03 -08:00
|
|
|
pub type config = {
|
2011-07-30 21:11:14 -07:00
|
|
|
// The library paths required for running the compiler
|
2012-07-13 22:57:48 -07:00
|
|
|
compile_lib_path: ~str,
|
2012-02-27 21:23:49 -08:00
|
|
|
|
2011-07-30 21:11:14 -07:00
|
|
|
// The library paths required for running compiled programs
|
2012-07-13 22:57:48 -07:00
|
|
|
run_lib_path: ~str,
|
2012-02-27 21:23:49 -08:00
|
|
|
|
2011-07-30 21:11:14 -07:00
|
|
|
// The rustc executable
|
2012-08-24 15:28:43 -07:00
|
|
|
rustc_path: Path,
|
2012-02-27 21:23:49 -08:00
|
|
|
|
2011-07-30 21:11:14 -07:00
|
|
|
// The directory containing the tests to run
|
2012-08-24 15:28:43 -07:00
|
|
|
src_base: Path,
|
2012-02-27 21:23:49 -08:00
|
|
|
|
2011-07-30 21:11:14 -07:00
|
|
|
// The directory where programs should be built
|
2012-08-24 15:28:43 -07:00
|
|
|
build_base: Path,
|
2012-02-27 21:23:49 -08:00
|
|
|
|
|
|
|
// Directory for auxiliary libraries
|
2012-08-24 15:28:43 -07:00
|
|
|
aux_base: Path,
|
2012-02-27 21:23:49 -08:00
|
|
|
|
2011-07-30 21:11:14 -07:00
|
|
|
// The name of the stage being built (stage1, etc)
|
2012-07-13 22:57:48 -07:00
|
|
|
stage_id: ~str,
|
2012-02-27 21:23:49 -08:00
|
|
|
|
2011-07-30 21:11:14 -07:00
|
|
|
// The test mode, compile-fail, run-fail, run-pass
|
2012-02-27 21:23:49 -08:00
|
|
|
mode: mode,
|
|
|
|
|
2011-07-30 21:11:14 -07:00
|
|
|
// Run ignored tests
|
2012-02-27 21:23:49 -08:00
|
|
|
run_ignored: bool,
|
|
|
|
|
2011-07-30 21:11:14 -07:00
|
|
|
// Only run tests that match this filter
|
2012-08-20 12:23:37 -07:00
|
|
|
filter: Option<~str>,
|
2012-02-27 21:23:49 -08:00
|
|
|
|
2012-04-03 23:27:51 +08:00
|
|
|
// Write out a parseable log of tests that were run
|
2012-08-20 12:23:37 -07:00
|
|
|
logfile: Option<Path>,
|
2012-04-03 23:27:51 +08:00
|
|
|
|
2011-07-30 21:11:14 -07:00
|
|
|
// A command line to prefix program execution with,
|
|
|
|
// for running under valgrind
|
2012-08-20 12:23:37 -07:00
|
|
|
runtool: Option<~str>,
|
2012-02-27 21:23:49 -08:00
|
|
|
|
2011-07-30 21:11:14 -07:00
|
|
|
// Flags to pass to the compiler
|
2012-08-20 12:23:37 -07:00
|
|
|
rustcflags: Option<~str>,
|
2012-02-27 21:23:49 -08:00
|
|
|
|
2012-08-28 17:10:37 -07:00
|
|
|
// Run tests using the JIT
|
|
|
|
jit: bool,
|
|
|
|
|
2011-07-30 21:11:14 -07:00
|
|
|
// Explain what's going on
|
2012-08-28 17:10:37 -07:00
|
|
|
verbose: bool
|
|
|
|
|
|
|
|
};
|