checksum-freshness: Add binary file inclusion to integration test

This commit is contained in:
Piotr Osiewicz 2026-01-14 21:16:54 +01:00
parent 2850ca8295
commit a1a944880f
3 changed files with 7 additions and 3 deletions

View file

@ -0,0 +1 @@
binary<EFBFBD>

View file

@ -1,6 +1,8 @@
lib.d: lib.rs foo.rs
lib.d: lib.rs foo.rs binary_file
lib.rs:
foo.rs:
# checksum:blake3=94af75ee4ed805434484c3de51c9025278e5c3ada2315e2592052e102168a503 file_len:120 lib.rs
binary_file:
# checksum:blake3=4ac56f3f877798fb762d714c7bcb72e70133f4cc585f80dbd99c07755ae2c7f6 file_len:222 lib.rs
# checksum:blake3=2720e17bfda4f3b2a5c96bb61b7e76ed8ebe3359b34128c0e5d8032c090a4f1a file_len:119 foo.rs
# checksum:blake3=119a5db8711914922c5b1c1908be4958175c5afa95c08888de594725329b5439 file_len:7 binary_file

View file

@ -1,7 +1,8 @@
// A basic library to be used in tests with no real purpose.
mod foo;
// Binary file with invalid UTF-8 sequence.
static BINARY_FILE: &[u8] = include_bytes!("binary_file");
pub fn sum(a: i32, b: i32) -> i32 {
a + b
}