Skip to content

Commit 0069649

Browse files
committed
Add basic integration test for checksum-hash-algorithm feature
1 parent 6fd9ef6 commit 0069649

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
lib.d: lib.rs # checksum:blake3=5fd6328c93a3360bc580567aec10731ab3e5efc4a0f957b1bba0db0d27af3767 file_len:110
2+
3+
lib.rs:
+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// A basic library to be used in tests with no real purpose.
2+
3+
pub fn sum(a: i32, b: i32) -> i32 {
4+
a + b
5+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
use run_make_support::{rfs, rustc};
2+
3+
fn main() {
4+
rustc().input("lib.rs").arg("-Zchecksum-hash-algorithm=blake3").emit("dep-info").run();
5+
let make_file_contents = rfs::read_to_string("lib.d");
6+
let expected_contents = rfs::read_to_string("expected.d");
7+
assert_eq!(make_file_contents, expected_contents);
8+
assert!(!expected_contents.is_empty());
9+
}

0 commit comments

Comments
 (0)