Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/recipe/parser/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,15 @@ pub struct CommandsTest {
pub files: CommandsTestFiles,
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct AbiCheck {
/// The files to compare
pub files: Vec<String>,

/// The other package to compare against (MatchSpec)
pub package: String,
}

impl CommandsTestRequirements {
/// Check if the requirements are empty
pub fn is_empty(&self) -> bool {
Expand Down Expand Up @@ -153,6 +162,8 @@ pub enum TestType {
Command(CommandsTest),
/// A test that runs the tests of a downstream package
Downstream(DownstreamTest),
/// Check that the ABI of the package is the same as in a previous version
AbiCheck(AbiCheck),
/// A test that checks the contents of the package
PackageContents {
/// The package contents to test against
Expand Down
Loading