Skip to content

Commit b7dfe28

Browse files
committed
---
yaml --- r: 4326 b: refs/heads/master c: a8af13e h: refs/heads/master v: v3
1 parent b905401 commit b7dfe28

File tree

8 files changed

+618
-588
lines changed

8 files changed

+618
-588
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 840a09c86ed354be8ed29a0b657bb7289c754442
2+
refs/heads/master: a8af13e784ec81be80804e6e3bc31ee7190a2869

trunk/src/test/compiletest/common.rs

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import std::option;
2+
3+
tag mode { mode_compile_fail; mode_run_fail; mode_run_pass; }
4+
5+
type config = {
6+
// The library paths required for running the compiler
7+
compile_lib_path: str,
8+
// The library paths required for running compiled programs
9+
run_lib_path: str,
10+
// The rustc executable
11+
rustc_path: str,
12+
// The directory containing the tests to run
13+
src_base: str,
14+
// The directory where programs should be built
15+
build_base: str,
16+
// The name of the stage being built (stage1, etc)
17+
stage_id: str,
18+
// The test mode, compile-fail, run-fail, run-pass
19+
mode: mode,
20+
// Run ignored tests
21+
run_ignored: bool,
22+
// Only run tests that match this filter
23+
filter: option::t[str],
24+
// A command line to prefix program execution with,
25+
// for running under valgrind
26+
runtool: option::t[str],
27+
// Flags to pass to the compiler
28+
rustcflags: option::t[str],
29+
// Explain what's going on
30+
verbose: bool
31+
};
32+
33+
type cx = {config: config, procsrv: procsrv::handle};

trunk/src/test/compiletest/compiletest.rc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
use std;
22

33
mod compiletest;
4+
mod procsrv;
5+
mod util;
6+
mod header;
7+
mod runtest;
8+
mod common;
49

510
// Local Variables:
611
// fill-column: 78;

0 commit comments

Comments
 (0)