From 2ba889e4e442c9ba5da4be42228fe8db1327cc15 Mon Sep 17 00:00:00 2001 From: gnacho Date: Sat, 22 Aug 2026 20:45:43 +0200 Subject: [PATCH] test(updates): assert the metainfo release entry matches the crate version (closes #160) --- src/core/updates.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/core/updates.rs b/src/core/updates.rs index 836250e..6d38c7f 100644 --- a/src/core/updates.rs +++ b/src/core/updates.rs @@ -656,6 +656,17 @@ mod tests { env!("CARGO_PKG_VERSION"), "version.json and Cargo.toml must agree" ); + + let metainfo = std::fs::read_to_string(concat!( + env!("CARGO_MANIFEST_DIR"), + "/data/io.github.gnacho.nextsync.metainfo.xml" + )) + .expect("metainfo.xml ships with the repository"); + let release_tag = format!(" must carry the current version" + ); } #[test]