dbus/proxies.py: Give Interface some properties. Vastly simplify __getattr__ on Inter...
[dbus-python-phuang.git] / test / dbus_python_check.py
blobfb6f010bd6931706c3549ba344af5fa2888c8adb
1 """dbus_python_check
3 Implements the Distutils 'check' command.
4 """
6 # created 2006/07/12, John (J5) Palmieri
8 __revision__ = "0.1"
10 from distutils.core import Command
11 from distutils.command.build import build
12 from distutils.dist import Distribution
13 import os
15 class dbus_python_check (Command):
17 # Brief (40-50 characters) description of the command
18 description = "Runs tests in this package"
20 # List of option tuples: long name, short name (None if no short
21 # name), and help string.
22 user_options = [('help', '?',
23 "Shows Help"),
27 def initialize_options (self):
28 self.dummy = None
30 # initialize_options()
33 def finalize_options (self):
34 pass
35 # finalize_options()
37 def run (self):
38 b = build(self.distribution)
39 b.finalize_options()
40 b.run()
41 top_builddir = os.path.join (os.getcwd(), b.build_lib)
42 cmd = 'DBUS_TOP_BUILDDIR="%s" test/run-test.sh'%top_builddir
43 print cmd
44 os.system (cmd)
46 # run()
48 # class check