From Fedora Project Wiki

(Created page with '{{QA/Test_Case |description=A test that ensures there are package dependencies broken by pushing out an update. |setup= |actions= |results= }} [[Category:Package Update Acceptan...')
 
No edit summary
Line 1: Line 1:
{{QA/Test_Case
{{QA/Test_Case
|description=A test that ensures there are package dependencies broken by pushing out an update.
|description=A test that ensures there are no package dependencies broken by pushing out an update.
|setup=
|setup=The test environment consists of any machine with [http://git.fedorahosted.org/git/?p=autoqa.git;a=tree;f=tests/depcheck depcheck script] downloaded.
|actions=
|actions=
<ol>
<li>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:
<pre>
koji list-tagged dist-f13-updates-pending
</pre>
You can download them all e.g. like this:
<pre>
koji list-tagged dist-f13-updates-pending --quiet | cut -f1 -d ' ' | while read BUILD; do koji download-build $BUILD; done
</pre>
{{admon/important||It is absolutely necessary to always download '''all''' builds currently proposed for inclusion into some repository. If you download just some of them the test result may not be valid.}}
</li>
<li>Run depcheck script with the target repository (notice different syntax) and all the downloaded RPMs as arguments:
<pre>
depcheck f13-updates *.rpm
</pre>
</li>
<li>Examine depcheck output. Builds after '''OK:''' keyword do not break dependencies, builds after '''SKIP:''' keyword break them.
</ol>
|results=
|results=
# All updates are listed after '''OK:''' keyword.
}}
}}


[[Category:Package Update Acceptance Test Cases]]
[[Category:Package Update Acceptance Test Cases]]

Revision as of 12:12, 16 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

  1. 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
    
    It is absolutely necessary to always download all builds currently proposed for inclusion into some repository. If you download just some of them the test result may not be valid.
  2. Run depcheck script with the target repository (notice different syntax) and all the downloaded RPMs as arguments:
    depcheck f13-updates *.rpm
    
  3. Examine depcheck output. Builds after OK: keyword do not break dependencies, builds after SKIP: keyword break them.

Expected Results

  1. All updates are listed after OK: keyword.