#![cfg(feature = "local-rt")] mod tests { use jlrs::runtime::builder::Builder; #[test] fn init_with_image() { if let Ok(julia_dir) = std::env::var("JULIA_DIR") { let bindir = format!("{}/bin", julia_dir); let image_path = format!("{}/lib/julia/system.so", julia_dir); unsafe { assert!(Builder::new().image(bindir, image_path).is_err()) } } else { println!("Skipping image test because JULIA_DIR environment variable is not set."); } } }