aboutsummaryrefslogtreecommitdiff
blob: 8812fb059d74f33bfbf33b01114866418ad8ad2f (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
#	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 DBusEclassDependencyTestCase
from .util import EbuildToucher

class DependInheritanceTest(DBusEclassDependencyTestCase):
	""" DEPEND variable inheritance test. """

	depend_classes = [EbuildToucher]
	eclass_depend_classes = [EbuildToucher]
	eclass_contents = ''

	def __init__(self, *args, **kwargs):
		DBusEclassDependencyTestCase.__init__(self, *args, **kwargs)
		self.phase_funcs['src_compile'].extend((
			'pms-test-suite-%s || die' % self.dependant_ebuilds[0].pv,
			'pms-test-suite-%s || die' % self.dependant_ebuilds[1].pv
		))

class RDependInheritanceTest(DBusEclassDependencyTestCase):
	""" RDEPEND variable inheritance test. """

	rdepend_classes = [EbuildToucher]
	eclass_rdepend_classes = [EbuildToucher]
	eclass_contents = ''

	def __init__(self, *args, **kwargs):
		DBusEclassDependencyTestCase.__init__(self, *args, **kwargs)
		self.phase_funcs['pkg_postinst'].extend((
			'pms-test-suite-%s || die' % self.dependant_ebuilds[0].pv,
			'pms-test-suite-%s || die' % self.dependant_ebuilds[1].pv
		))

class PDependInheritanceTest(DBusEclassDependencyTestCase):
	""" PDEPEND variable inheritance test. """

	pdepend_classes = [EbuildToucher]
	eclass_pdepend_classes = [EbuildToucher]
	eclass_contents = ''