From Fedora Project Wiki
Description
This test case tests whether a given package manager (it can be used to test any package manager) can properly install and remove packages.
How to test
- Clean boot the Fedora you wish to test: this could be a system installed from a particular snapshot, pre-release, or release, or a live image. It should be an image for which updates will be available
- Using the package manager to be tested, attempt to install (in a single operation) two packages that are not currently installed
- If the packages have any dependencies, check that the package manager notifies you of them
- Confirm that the package manager lists the packages as installed
- Verify that rpm lists them as installed:
rpm -q package1 package2
- If the packages have any dependencies, verify the dependencies were installed
- Using the package manager to be tested, attempt to remove (again, in a single operation) the same two packages
- Confirm that the package manager does not list the packages as installed
- Verify that rpm does not list them as installed:
rpm -q package1 package2
Expected Results
- Both packages should be installed, with no errors caused by the package manager. Errors caused by bugs in the packages should be reported, but do not constitute a failure of this test case.
- Both the package manager and rpm should report both packages as installed, after the installation step.
- If the packages have dependencies, the package manager should notify you of these, and then install them once you agree.
- Both the package manager and rpm should report both packages as not installed, after the removal step.