[Yum-devel] [PATCH 1/3] Add a couple of depsolve tests, from a bug I found updating F-13.

Tim Lauridsen tim.lauridsen at googlemail.com
Sun May 9 06:42:57 UTC 2010


On Sat, May 8, 2010 at 11:55 PM, James Antill <james at and.org> wrote:

> ---
>  test/simpleupdatetests.py |   40 ++++++++++++++++++++++++++++++++++++++++
>  1 files changed, 40 insertions(+), 0 deletions(-)
>
> diff --git a/test/simpleupdatetests.py b/test/simpleupdatetests.py
> index f02cc75..8232675 100644
> --- a/test/simpleupdatetests.py
> +++ b/test/simpleupdatetests.py
> @@ -764,3 +764,43 @@ class SimpleUpdateTests(OperationsTests):
>                                      [pa1, pa2, pa4, pa3])
>         self.assert_(res=='ok', msg)
>         self.assertResult((pa1, pa3))
> +
> +    def testUpdateRLEvince1(self):
> +        pi1 = FakePackage('evince', '1', '1', '0', 'x86_64')
> +        pi1.addRequires('evince-libs', 'EQ', ('0', '1', '1'))
> +        pi2 = FakePackage('evince-libs', '1', '1', '0', 'x86_64')
> +        pi3 = FakePackage('evince-djvu', '1', '1', '0', 'x86_64')
> +        pi3.addRequires('evince-libs', 'EQ', ('0', '1', '1'))
> +
> +        pa1 = FakePackage('evince', '2', '1', '0', 'x86_64')
> +        pa1.addRequires('evince-libs', 'EQ', ('0', '2', '1'))
> +        pa2i = FakePackage('evince-libs', '2', '1', '0', 'i686')
> +        pa2x = FakePackage('evince-libs', '2', '1', '0', 'x86_64')
> +        pa3 = FakePackage('evince-djvu', '2', '1', '0', 'x86_64')
> +        pa3.addRequires('evince-libs', 'EQ', ('0', '2', '1'))
> +
> +        res, msg = self.runOperation(['update', 'evince'],
> +                                     [pi1, pi2, pi3],
> +                                     [pa1, pa2x, pa2i, pa3])
> +        self.assert_(res=='ok', msg)
> +        self.assertResult((pa1, pa2x, pa3))
> +
> +    def testUpdateRLEvince2(self):
> +        pi1 = FakePackage('evince', '1', '1', '0', 'x86_64')
> +        pi1.addRequires('evince-libs', 'EQ', ('0', '1', '1'))
> +        pi2 = FakePackage('evince-libs', '1', '1', '0', 'x86_64')
> +        pi3 = FakePackage('evince-djvu', '1', '1', '0', 'x86_64')
> +        pi3.addRequires('evince-libs', 'EQ', ('0', '1', '1'))
> +
> +        pa1 = FakePackage('evince', '2', '1', '0', 'x86_64')
> +        pa1.addRequires('evince-libs', 'EQ', ('0', '2', '1'))
> +        pa2i = FakePackage('evince-libs', '2', '1', '0', 'i686')
> +        pa2x = FakePackage('evince-libs', '2', '1', '0', 'x86_64')
> +        pa3 = FakePackage('evince-djvu', '2', '1', '0', 'x86_64')
> +        pa3.addRequires('evince-libs', 'EQ', ('0', '2', '1'))
> +
> +        res, msg = self.runOperation(['update', 'evince'],
> +                                     [pi1, pi2, pi3],
> +                                     [pa1, pa2i, pa2x, pa3])
> +        self.assert_(res=='ok', msg)
> +        self.assertResult((pa1, pa2x, pa3))
> --
> 1.7.0.1
>
> _______________________________________________
> Yum-devel mailing list
> Yum-devel at lists.baseurl.org
> http://lists.baseurl.org/mailman/listinfo/yum-devel


The tests are fine, but i would love a short comment about what the test is
about.

ACK.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.baseurl.org/pipermail/yum-devel/attachments/20100509/21fccfeb/attachment.htm>


More information about the Yum-devel mailing list