michal-grzedzicki / rpms / rpm

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