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