//! Generate the same host-test fixtures for the evidence archive. These are //! parser inputs, not firmware maps from a real guest. #[path = "../tests/common/mod.rs"] #[allow(dead_code)] mod common; fn main() { let directory = std::path::PathBuf::from(std::env::args_os().nth(1).expect("output directory")); std::fs::create_dir_all(&directory).unwrap(); for mib in [256, 512, 1024] { std::fs::write( directory.join(format!("ram-{mib}.dtb")), common::fixture(mib), ) .unwrap(); std::fs::write( directory.join(format!("uefi-{mib}.header")), common::encode(common::header(mib)), ) .unwrap(); println!("FIXTURE {mib} MiB: DTB + little-endian BootInfo V1; synthetic host input only"); } }