From Fedora Project Wiki
No edit summary |
m (Adjusted admon usage and update depcheck expected output) |
||
Line 12: | Line 12: | ||
koji list-tagged dist-f13-updates-pending --quiet | cut -f1 -d ' ' | while read BUILD; do koji download-build $BUILD; done | koji list-tagged dist-f13-updates-pending --quiet | cut -f1 -d ' ' | while read BUILD; do koji download-build $BUILD; done | ||
</pre> | </pre> | ||
{{admon/important||It is absolutely necessary to always download '''all''' | {{admon/important|Download all proposed packages|It is absolutely necessary to always download '''all''' packages proposed for inclusion into some repository. If you download just some of them the test result may not be valid.}} | ||
</li> | </li> | ||
<li>Run depcheck script with the target repository (notice different syntax) and all the downloaded RPMs as arguments: | <li>Run depcheck script with the target repository (notice different syntax) and all the downloaded RPMs as arguments: | ||
Line 19: | Line 19: | ||
</pre> | </pre> | ||
</li> | </li> | ||
<li>Examine depcheck output. Builds | <li>Examine depcheck output. Builds listed as '''ACCEPTED''' do not break dependencies. However, builds listed as '''REJECTED''' break them. | ||
</ol> | </ol> | ||
|results= | |results= | ||
# All updates are listed | # All updates are listed as '''ACCEPTED'''. In other words, the proposed updates are not listed as '''REJECTED'''. | ||
}} | }} | ||
[[Category:Package Update Acceptance Test Cases]] | [[Category:Package Update Acceptance Test Cases]] |
Revision as of 15:23, 22 November 2010
Description
A test that ensures there are no package dependencies broken by pushing out an update.
Setup
The test environment consists of any machine with depcheck script downloaded.
How to test
- Download all builds (i.e. all RPMs from a build for every build) currently present in a Koji tag you want to test. For example to list all builds currently proposed to stable Fedora 13 updates, you can run:
koji list-tagged dist-f13-updates-pending
You can download them all e.g. like this:
koji list-tagged dist-f13-updates-pending --quiet | cut -f1 -d ' ' | while read BUILD; do koji download-build $BUILD; done
- Run depcheck script with the target repository (notice different syntax) and all the downloaded RPMs as arguments:
depcheck f13-updates *.rpm
- Examine depcheck output. Builds listed as ACCEPTED do not break dependencies. However, builds listed as REJECTED break them.
Expected Results
- All updates are listed as ACCEPTED. In other words, the proposed updates are not listed as REJECTED.