blob: 0ecfe9ef4b9f0f53a50241cd3d988a60c15a41ab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# vim:fileencoding=utf-8
# (c) 2011 Michał Górny <mgorny@gentoo.org>
# Released under the terms of the 2-clause BSD license.
from .dbus_case import DBusEbuildDependencyTestCase
from .util import EbuildToucher, FailingEbuild
class DependTest(DBusEbuildDependencyTestCase):
""" DEPEND fulfilling test. """
depend_classes = [EbuildToucher]
def __init__(self, *args, **kwargs):
DBusEbuildDependencyTestCase.__init__(self, *args, **kwargs)
self.phase_funcs['src_compile'].append(
'pms-test-suite-%s || die' % self.dependant_ebuilds[0].pv
)
class RDependTest(DBusEbuildDependencyTestCase):
""" RDEPEND fulfilling test. """
rdepend_classes = [EbuildToucher]
def __init__(self, *args, **kwargs):
DBusEbuildDependencyTestCase.__init__(self, *args, **kwargs)
self.phase_funcs['pkg_postinst'].append(
'pms-test-suite-%s || die' % self.dependant_ebuilds[0].pv
)
class PDependTest(DBusEbuildDependencyTestCase):
""" PDEPEND fulfilling test. """
pdepend_classes = [EbuildToucher]
class FailingDependTest(DBusEbuildDependencyTestCase):
""" Unfulfilled DEPEND test. """
depend_classes = [FailingEbuild]
expect_failure = True
class FailingRDependTest(DBusEbuildDependencyTestCase):
""" Unfulfilled RDEPEND test. """
depend_classes = [FailingEbuild]
expect_failure = True
|