blob: 4b7793f0a9e8b7aa9f63fb888459cef35e40c7a8 [file] [log] [blame]
// Copyright 2022 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 {
std::path::PathBuf,
{argh::FromArgs, ffx_core::ffx_command},
};
#[ffx_command()]
#[derive(FromArgs, Debug, PartialEq)]
#[argh(
subcommand,
name = "kernel-cmdline",
description = "Verifies that kernel cmdline arguments match golden files.",
example = r#"To verify kernel cmdline arguments on your current build:
$ ffx scrutiny verify kernel-cmdline \
--zbi $(fx get-build-dir)/obj/build/images/fuchsia/fuchsia/fuchsia.zbi \
--golden path/to/golden"#
)]
pub struct Command {
/// absolute or working directory-relative path to ZBI image file that contains bootfs.
#[argh(option)]
pub zbi: PathBuf,
/// absolute or working directory-relative path(s) to golden files to compare against during
/// verification.
#[argh(option)]
pub golden: Vec<PathBuf>,
}