Skip to content

Commit 312fc1e

Browse files
committed
---
yaml --- r: 82454 b: refs/heads/auto c: 1019177 h: refs/heads/master v: v3
1 parent 15e6a9e commit 312fc1e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+1415
-2297
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1313
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1414
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1515
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
16-
refs/heads/auto: 0c3b6ad6b8c196b996e366aaf864db9e23767f0f
16+
refs/heads/auto: 101917795898b602340d96a6c0f7815d108af1af
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/mk/rt.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ RUNTIME_CXXS_$(1)_$(2) := \
7171
rt/sync/lock_and_signal.cpp \
7272
rt/sync/rust_thread.cpp \
7373
rt/rust_builtin.cpp \
74+
rt/rust_run_program.cpp \
7475
rt/rust_rng.cpp \
7576
rt/rust_upcall.cpp \
7677
rt/rust_uv.cpp \

branches/auto/src/compiletest/compiletest.rs

Lines changed: 27 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -91,62 +91,64 @@ pub fn parse_config(args: ~[~str]) -> config {
9191
let matches =
9292
&match getopts::groups::getopts(args_, groups) {
9393
Ok(m) => m,
94-
Err(f) => fail!(f.to_err_msg())
94+
Err(f) => fail!(getopts::fail_str(f))
9595
};
9696

97-
if matches.opt_present("h") || matches.opt_present("help") {
97+
if getopts::opt_present(matches, "h") || getopts::opt_present(matches, "help") {
9898
let message = fmt!("Usage: %s [OPTIONS] [TESTNAME...]", argv0);
9999
println(getopts::groups::usage(message, groups));
100100
println("");
101101
fail!()
102102
}
103103

104104
fn opt_path(m: &getopts::Matches, nm: &str) -> Path {
105-
Path(m.opt_str(nm).unwrap())
105+
Path(getopts::opt_str(m, nm))
106106
}
107107

108108
config {
109-
compile_lib_path: matches.opt_str("compile-lib-path").unwrap(),
110-
run_lib_path: matches.opt_str("run-lib-path").unwrap(),
109+
compile_lib_path: getopts::opt_str(matches, "compile-lib-path"),
110+
run_lib_path: getopts::opt_str(matches, "run-lib-path"),
111111
rustc_path: opt_path(matches, "rustc-path"),
112-
clang_path: matches.opt_str("clang-path").map_move(|s| Path(s)),
113-
llvm_bin_path: matches.opt_str("llvm-bin-path").map_move(|s| Path(s)),
112+
clang_path: getopts::opt_maybe_str(matches, "clang-path").map_move(|s| Path(s)),
113+
llvm_bin_path: getopts::opt_maybe_str(matches, "llvm-bin-path").map_move(|s| Path(s)),
114114
src_base: opt_path(matches, "src-base"),
115115
build_base: opt_path(matches, "build-base"),
116116
aux_base: opt_path(matches, "aux-base"),
117-
stage_id: matches.opt_str("stage-id").unwrap(),
118-
mode: str_mode(matches.opt_str("mode").unwrap()),
119-
run_ignored: matches.opt_present("ignored"),
117+
stage_id: getopts::opt_str(matches, "stage-id"),
118+
mode: str_mode(getopts::opt_str(matches, "mode")),
119+
run_ignored: getopts::opt_present(matches, "ignored"),
120120
filter:
121121
if !matches.free.is_empty() {
122122
Some(matches.free[0].clone())
123123
} else {
124124
None
125125
},
126-
logfile: matches.opt_str("logfile").map_move(|s| Path(s)),
127-
save_metrics: matches.opt_str("save-metrics").map_move(|s| Path(s)),
126+
logfile: getopts::opt_maybe_str(matches, "logfile").map_move(|s| Path(s)),
127+
save_metrics: getopts::opt_maybe_str(matches, "save-metrics").map_move(|s| Path(s)),
128128
ratchet_metrics:
129-
matches.opt_str("ratchet-metrics").map_move(|s| Path(s)),
129+
getopts::opt_maybe_str(matches, "ratchet-metrics").map_move(|s| Path(s)),
130130
ratchet_noise_percent:
131-
matches.opt_str("ratchet-noise-percent").and_then(|s| from_str::<f64>(s)),
132-
runtool: matches.opt_str("runtool"),
133-
rustcflags: matches.opt_str("rustcflags"),
134-
jit: matches.opt_present("jit"),
135-
target: opt_str2(matches.opt_str("target")).to_str(),
136-
adb_path: opt_str2(matches.opt_str("adb-path")).to_str(),
131+
getopts::opt_maybe_str(matches,
132+
"ratchet-noise-percent").map_move(|s|
133+
from_str::<f64>(s).unwrap()),
134+
runtool: getopts::opt_maybe_str(matches, "runtool"),
135+
rustcflags: getopts::opt_maybe_str(matches, "rustcflags"),
136+
jit: getopts::opt_present(matches, "jit"),
137+
target: opt_str2(getopts::opt_maybe_str(matches, "target")).to_str(),
138+
adb_path: opt_str2(getopts::opt_maybe_str(matches, "adb-path")).to_str(),
137139
adb_test_dir:
138-
opt_str2(matches.opt_str("adb-test-dir")).to_str(),
140+
opt_str2(getopts::opt_maybe_str(matches, "adb-test-dir")).to_str(),
139141
adb_device_status:
140-
if (opt_str2(matches.opt_str("target")) ==
142+
if (opt_str2(getopts::opt_maybe_str(matches, "target")) ==
141143
~"arm-linux-androideabi") {
142-
if (opt_str2(matches.opt_str("adb-test-dir")) !=
144+
if (opt_str2(getopts::opt_maybe_str(matches, "adb-test-dir")) !=
143145
~"(none)" &&
144-
opt_str2(matches.opt_str("adb-test-dir")) !=
146+
opt_str2(getopts::opt_maybe_str(matches, "adb-test-dir")) !=
145147
~"") { true }
146148
else { false }
147149
} else { false },
148-
test_shard: test::opt_shard(matches.opt_str("test-shard")),
149-
verbose: matches.opt_present("verbose")
150+
test_shard: test::opt_shard(getopts::opt_maybe_str(matches, "test-shard")),
151+
verbose: getopts::opt_present(matches, "verbose")
150152
}
151153
}
152154

0 commit comments

Comments
 (0)