blob: 4496747245d35b7ca050179236f2d657d4bd7503 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# vim:fileencoding=utf-8
# (c) 2011 Michał Górny <mgorny@gentoo.org>
# Released under the terms of the 2-clause BSD license.
from abc import abstractproperty
from pmstestsuite.library.eclass_case import EclassTestCase
class ExportedPhaseFunctionTest(EclassTestCase):
""" Check whether EXPORTED_FUNCTIONS are used. """
@property
def eclass_contents(self):
return '''
EXPORT_FUNCTIONS src_unpack
%s_src_unpack() {
pms-test_dbus_append_result 'working'
}
''' % self.pn
def check_dbus_result(self, output, pm):
self.assertEqual(output[0], 'working', 'EXPORT_FUNCTIONS')
|