2012-01-19 20:46:53 -06:00
|
|
|
enum mode { mode_compile_fail, mode_run_fail, mode_run_pass, mode_pretty, }
|
2011-07-30 23:11:14 -05:00
|
|
|
|
2012-09-19 20:00:26 -05:00
|
|
|
impl mode : cmp::Eq {
|
|
|
|
pure fn eq(other: &mode) -> bool {
|
|
|
|
(*other) as int == self as int
|
|
|
|
}
|
|
|
|
pure fn ne(other: &mode) -> bool { !self.eq(other) }
|
|
|
|
}
|
2012-08-30 15:10:36 -05:00
|
|
|
|
2012-02-27 23:23:49 -06:00
|
|
|
type config = {
|
2011-07-30 23:11:14 -05:00
|
|
|
// The library paths required for running the compiler
|
2012-07-14 00:57:48 -05:00
|
|
|
compile_lib_path: ~str,
|
2012-02-27 23:23:49 -06:00
|
|
|
|
2011-07-30 23:11:14 -05:00
|
|
|
// The library paths required for running compiled programs
|
2012-07-14 00:57:48 -05:00
|
|
|
run_lib_path: ~str,
|
2012-02-27 23:23:49 -06:00
|
|
|
|
2011-07-30 23:11:14 -05:00
|
|
|
// The rustc executable
|
2012-08-24 17:28:43 -05:00
|
|
|
rustc_path: Path,
|
2012-02-27 23:23:49 -06:00
|
|
|
|
2011-07-30 23:11:14 -05:00
|
|
|
// The directory containing the tests to run
|
2012-08-24 17:28:43 -05:00
|
|
|
src_base: Path,
|
2012-02-27 23:23:49 -06:00
|
|
|
|
2011-07-30 23:11:14 -05:00
|
|
|
// The directory where programs should be built
|
2012-08-24 17:28:43 -05:00
|
|
|
build_base: Path,
|
2012-02-27 23:23:49 -06:00
|
|
|
|
|
|
|
// Directory for auxiliary libraries
|
2012-08-24 17:28:43 -05:00
|
|
|
aux_base: Path,
|
2012-02-27 23:23:49 -06:00
|
|
|
|
2011-07-30 23:11:14 -05:00
|
|
|
// The name of the stage being built (stage1, etc)
|
2012-07-14 00:57:48 -05:00
|
|
|
stage_id: ~str,
|
2012-02-27 23:23:49 -06:00
|
|
|
|
2011-07-30 23:11:14 -05:00
|
|
|
// The test mode, compile-fail, run-fail, run-pass
|
2012-02-27 23:23:49 -06:00
|
|
|
mode: mode,
|
|
|
|
|
2011-07-30 23:11:14 -05:00
|
|
|
// Run ignored tests
|
2012-02-27 23:23:49 -06:00
|
|
|
run_ignored: bool,
|
|
|
|
|
2011-07-30 23:11:14 -05:00
|
|
|
// Only run tests that match this filter
|
2012-08-20 14:23:37 -05:00
|
|
|
filter: Option<~str>,
|
2012-02-27 23:23:49 -06:00
|
|
|
|
2012-04-03 10:27:51 -05:00
|
|
|
// Write out a parseable log of tests that were run
|
2012-08-20 14:23:37 -05:00
|
|
|
logfile: Option<Path>,
|
2012-04-03 10:27:51 -05:00
|
|
|
|
2011-07-30 23:11:14 -05:00
|
|
|
// A command line to prefix program execution with,
|
|
|
|
// for running under valgrind
|
2012-08-20 14:23:37 -05:00
|
|
|
runtool: Option<~str>,
|
2012-02-27 23:23:49 -06:00
|
|
|
|
2011-07-30 23:11:14 -05:00
|
|
|
// Flags to pass to the compiler
|
2012-08-20 14:23:37 -05:00
|
|
|
rustcflags: Option<~str>,
|
2012-02-27 23:23:49 -06:00
|
|
|
|
2012-08-28 19:10:37 -05:00
|
|
|
// Run tests using the JIT
|
|
|
|
jit: bool,
|
|
|
|
|
2011-07-30 23:11:14 -05:00
|
|
|
// Explain what's going on
|
2012-08-28 19:10:37 -05:00
|
|
|
verbose: bool
|
|
|
|
|
|
|
|
};
|