[Rpm-maint] [rpm-software-management/rpm] Vacuum the sqlite rpmdb if necessary (PR #3452)
Florian Festi
notifications at github.com
Mon Nov 18 08:46:27 UTC 2024
@ffesti commented on this pull request.
> @@ -683,3 +683,20 @@ runroot rpm -q 'versiontest-1.0~2-1'
[])
RPMTEST_CLEANUP
+
+# ------------------------------
+AT_SETUP([rpmdb vacuum])
+AT_KEYWORDS([install rpmdb sqlite])
+cp -r /usr/lib/sysimage/rpm "${RPMTEST}"/tmp
+RPMTEST_CHECK([
+runroot rpm -D "_sqlite_vacuum 1024" -D "%_dbpath /tmp/rpm" -vv -U /data/RPMS/foo-1.0-1.noarch.rpm 2>&1 | grep VACUUM
+runroot rpm -D "_sqlite_vacuum 1024" -D "%_dbpath /tmp/rpm" -vv -e foo-1.0-1 2>&1 | grep VACUUM
+],
+[0],
+[D: VACUUM: 0
+D: Rpmdb Sqlite backend VACUUM maxfree: 1024, free: 397312 -> 0
Yeah, that's kinda on purpose. I wanted a real database for testing. But may be the test suite can do without.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/3452#discussion_r1846099887
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/3452/review/2441878689 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20241118/6aa334fc/attachment.htm>
More information about the Rpm-maint
mailing list