dcavalca / rpms / rpm

Forked from rpms/rpm 2 years ago
Clone

Blame 0020-reflink-tests-Can-install-standard-RPM-with-reflink.patch

2f13d7
From 13aea986ada3ed7d26182d81d8878bcc807a6ab5 Mon Sep 17 00:00:00 2001
2f13d7
From: chantra <chantr4@gmail.com>
2f13d7
Date: Thu, 10 Feb 2022 08:49:17 -0800
2f13d7
Subject: [PATCH 20/30] [reflink][tests] Can install standard RPM with reflink
2f13d7
2f13d7
Add a test to validate that if a file is a non-transcoded RPM, the reflink plugin correctly ignores the file and let core RPM do the job.
2f13d7
---
2f13d7
 tests/rpm2extents.at | 14 ++++++++++++++
2f13d7
 1 file changed, 14 insertions(+)
2f13d7
2f13d7
diff --git a/tests/rpm2extents.at b/tests/rpm2extents.at
2f13d7
index 44e46a68e..648304287 100644
2f13d7
--- a/tests/rpm2extents.at
2f13d7
+++ b/tests/rpm2extents.at
2f13d7
@@ -109,3 +109,17 @@ test -f ${RPMTEST}/usr/bin/hello
2f13d7
 [],
2f13d7
 [])
2f13d7
 AT_CLEANUP
2f13d7
+
2f13d7
+AT_SETUP([reflink ignores non-transcoded package])
2f13d7
+AT_KEYWORDS([reflink])
2f13d7
+AT_CHECK([
2f13d7
+RPMDB_INIT
2f13d7
+
2f13d7
+runroot_plugins rpm -i --nodigest --nodeps --undefine=%__transaction_dbus_announce /data/RPMS/hello-2.0-1.x86_64.rpm && exit $?
2f13d7
+# Check that the file is properly installed in chroot
2f13d7
+test -f ${RPMTEST}/usr/bin/hello
2f13d7
+],
2f13d7
+[0],
2f13d7
+[],
2f13d7
+[])
2f13d7
+AT_CLEANUP
2f13d7
-- 
2f13d7
2.35.1
2f13d7