From c1644a39d4a6f06d64df6ea732bd17c9d6d696b3 Mon Sep 17 00:00:00 2001 From: Wolf Vollprecht Date: Thu, 27 Mar 2025 06:59:50 +0100 Subject: [PATCH] add abi check test --- src/recipe/parser/test.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/recipe/parser/test.rs b/src/recipe/parser/test.rs index 9e4eb42bc..abf18a412 100644 --- a/src/recipe/parser/test.rs +++ b/src/recipe/parser/test.rs @@ -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, + + /// The other package to compare against (MatchSpec) + pub package: String, +} + impl CommandsTestRequirements { /// Check if the requirements are empty pub fn is_empty(&self) -> bool { @@ -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