Skip to content

Commit f27f749

Browse files
committed
Prep miri repository for rustc merger
1 parent f822ad5 commit f27f749

19 files changed

+19
-12
lines changed

.travis.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ script:
1515
xargo/build.sh
1616
- |
1717
# Test plain miri
18-
cargo build &&
18+
cd src/librustc_mir/ && cargo build &&
1919
cargo test &&
20-
cargo install
20+
cargo install &&
21+
cd ../..
2122
- |
2223
# Test cargo miri
2324
cd cargo-miri-test &&
@@ -26,7 +27,7 @@ script:
2627
cd ..
2728
- |
2829
# and run all tests with full mir
29-
MIRI_SYSROOT=~/.xargo/HOST cargo test
30+
cd src/librustc_mir/ && MIRI_SYSROOT=~/.xargo/HOST cargo test && cd ../..
3031
notifications:
3132
email:
3233
on_success: never

Cargo.toml renamed to src/librustc_mir/Cargo.toml

+8-2
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,25 @@ version = "0.1.0"
99
[[bin]]
1010
doc = false
1111
name = "miri"
12+
path = "interpret/bin/miri.rs"
1213
test = false
1314

1415
[[bin]]
1516
doc = false
1617
name = "cargo-miri"
18+
path = "interpret/bin/cargo-miri.rs"
1719
test = false
1820

1921
[lib]
2022
test = false
23+
path = "interpret/mod.rs"
24+
25+
[[test]]
26+
name = "compiletest"
27+
path = "../../tests/compiletest.rs"
2128

2229
[dependencies]
23-
#byteorder = "0.4.2"
24-
byteorder = { git = "https://github.com/BurntSushi/byteorder", features = ["i128"]}
30+
byteorder = { version = "1.1", features = ["i128"]}
2531
env_logger = "0.3.3"
2632
log = "0.3.6"
2733
log_settings = "0.1.1"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

tests/compiletest.rs

+7-7
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ fn miri_pass(path: &str, target: &str, host: &str, fullmir: bool) {
4848
config.src_base = PathBuf::from(path);
4949
config.target = target.to_owned();
5050
config.host = host.to_owned();
51-
config.rustc_path = PathBuf::from("target/debug/miri");
51+
config.rustc_path = "target/debug/miri".into();
5252
if fullmir {
5353
if host != target {
5454
// skip fullmir on nonhost
@@ -114,15 +114,15 @@ fn run_pass_miri() {
114114
let host = get_host();
115115

116116
for_all_targets(&sysroot, |target| {
117-
miri_pass("tests/run-pass", &target, &host, false);
117+
miri_pass("../../tests/run-pass", &target, &host, false);
118118
});
119-
miri_pass("tests/run-pass-fullmir", &host, &host, true);
119+
miri_pass("../../tests/run-pass-fullmir", &host, &host, true);
120120
}
121121

122122
#[test]
123123
fn run_pass_rustc() {
124-
run_pass("tests/run-pass");
125-
run_pass("tests/run-pass-fullmir");
124+
run_pass("../../tests/run-pass");
125+
run_pass("../../tests/run-pass-fullmir");
126126
}
127127

128128
#[test]
@@ -131,7 +131,7 @@ fn compile_fail_miri() {
131131
let host = get_host();
132132

133133
for_all_targets(&sysroot, |target| {
134-
compile_fail(&sysroot, "tests/compile-fail", &target, &host, false);
134+
compile_fail(&sysroot, "../../tests/compile-fail", &target, &host, false);
135135
});
136-
compile_fail(&sysroot, "tests/compile-fail-fullmir", &host, &host, true);
136+
compile_fail(&sysroot, "../../tests/compile-fail-fullmir", &host, &host, true);
137137
}

0 commit comments

Comments
 (0)