Skip to content
This repository was archived by the owner on Oct 25, 2025. It is now read-only.
7 changes: 4 additions & 3 deletions circuits/tests/riscv_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,10 @@ macro_rules! test_elf {
($test_name:ident, $file_name:tt) => {
#[test]
fn $test_name() -> Result<()> {
let elf = fs::read(concat!("riscv-testdata/testdata/", $file_name))
.expect("Should have been able to read the file");
run_test(&elf)
run_test(include_bytes!(concat!(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This probably adds compile time. rust-lang/rust#65818

"../../riscv-testdata/testdata/",
$file_name
)))
}
};
}
Expand Down