File tree Expand file tree Collapse file tree 3 files changed +17
-0
lines changed
tests/run-make/checksum-freshness Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change
1
+ lib.d : lib.rs # checksum:blake3=5fd6328c93a3360bc580567aec10731ab3e5efc4a0f957b1bba0db0d27af3767 file_len:110
2
+
3
+ lib.rs :
Original file line number Diff line number Diff line change
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 number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments