#![allow(dead_code)]
pub use boxlite_test_utils::*;
use boxlite::runtime::options::{BoxOptions, BoxliteOptions, RootfsSpec};
pub fn non_vm_runtime(options: BoxliteOptions) -> boxlite::BoxliteResult<boxlite::BoxliteRuntime> {
#[cfg(feature = "test-support")]
{
boxlite::BoxliteRuntime::new_for_test(options)
}
#[cfg(not(feature = "test-support"))]
{
boxlite::BoxliteRuntime::new(options)
}
}
pub fn alpine_opts() -> BoxOptions {
BoxOptions {
rootfs: RootfsSpec::Image("alpine:latest".into()),
auto_delete: Some(0),
..Default::default()
}
}
pub fn alpine_opts_auto() -> BoxOptions {
BoxOptions {
rootfs: RootfsSpec::Image("alpine:latest".into()),
auto_delete: Some(1),
..Default::default()
}
}