From Fedora Project Wiki
Description
This test case ensures that deltarpm functions correctly. It tests creating a delta RPM package, applying it, and verifying that the applied package works as expected.
Setup
Install the required packages:
sudo dnf install deltarpm rpm-build- Download two different versions of an RPM package, for example,
example-1.0-1.fc39.noarch.rpmandexample-1.1-1.fc39.noarch.rpm
How to test
- Go to the directory where the RPMs are saved
cd /path/to/rpms - Create a delta RPM package
makedeltarpm example-1.0-1.fc39.noarch.rpm example-1.1-1.fc39.noarch.rpm delta.rpm - Apply the delta to the old package
applydeltarpm example-1.0-1.fc39.noarch.rpm delta.rpm new.rpm - Install the new RPM
sudo dnf install new.rpm - Verify the installed package
rpm -q example
Expected Results
- The
makedeltarpmcommand should complete without errors. - The
applydeltarpmcommand should complete without errors. - The
dnf installcommand should complete successfully and the new version of the package should be installed. - The
rpm -q examplecommand should show the new version of the package installed (e.g.,example-1.1-1.fc39.noarch).
Optional
For exploratory testing:
- Try different RPM packages.
- Uninstall the
new.rpmpackage and install the original RPM package to verify that the system can return to the previous state.
