2011-07-30 23:11:14 -05:00
|
|
|
import std::option;
|
|
|
|
|
2011-08-19 17:16:48 -05:00
|
|
|
tag mode { mode_compile_fail; mode_run_fail; mode_run_pass; mode_pretty; }
|
2011-07-30 23:11:14 -05:00
|
|
|
|
2011-08-19 17:16:48 -05:00
|
|
|
type config =
|
2011-07-30 23:11:14 -05:00
|
|
|
// The library paths required for running the compiler
|
|
|
|
// The library paths required for running compiled programs
|
|
|
|
// The rustc executable
|
|
|
|
// The directory containing the tests to run
|
|
|
|
// The directory where programs should be built
|
|
|
|
// The name of the stage being built (stage1, etc)
|
|
|
|
// The test mode, compile-fail, run-fail, run-pass
|
|
|
|
// Run ignored tests
|
|
|
|
// Only run tests that match this filter
|
|
|
|
// A command line to prefix program execution with,
|
|
|
|
// for running under valgrind
|
|
|
|
// Flags to pass to the compiler
|
|
|
|
// Explain what's going on
|
2011-08-24 20:01:10 -05:00
|
|
|
{compile_lib_path: istr,
|
|
|
|
run_lib_path: istr,
|
|
|
|
rustc_path: istr,
|
|
|
|
src_base: istr,
|
|
|
|
build_base: istr,
|
|
|
|
stage_id: istr,
|
2011-08-19 17:16:48 -05:00
|
|
|
mode: mode,
|
|
|
|
run_ignored: bool,
|
2011-08-24 20:01:10 -05:00
|
|
|
filter: option::t<istr>,
|
|
|
|
runtool: option::t<istr>,
|
|
|
|
rustcflags: option::t<istr>,
|
2011-08-19 17:16:48 -05:00
|
|
|
verbose: bool};
|
2011-07-30 23:11:14 -05:00
|
|
|
|
|
|
|
type cx = {config: config, procsrv: procsrv::handle};
|