blob: 1ad215ac1bdad326f76912f0e711faf893c8950c [file] [log] [blame]
// Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
use {anyhow::Error, blackout_host::Test, std::time::Duration};
fn main() -> Result<(), Error> {
Test::new("blobfs_fsck_soft_target.cmx")
.collect_options()
.setup_step()
.load_step(Duration::from_secs(5))
.reboot_step()
.verify_step(10, Duration::from_secs(1))
.run()?;
Ok(())
}
#[cfg(test)]
mod tests {
use {
blackout_host::{integration, Test},
std::time::Duration,
};
#[test]
fn test() {
Test::new("blobfs_fsck_soft_target.cmx")
.add_options(integration::options())
.setup_step()
.load_step(Duration::from_secs(5))
.reboot_step()
.verify_step(20, Duration::from_secs(15))
.run()
.expect("test failure");
}
}