3 Implements the Distutils 'check' command.
6 # created 2006/07/12, John (J5) Palmieri
10 from distutils
.core
import Command
11 from distutils
.command
.build
import build
12 from distutils
.dist
import Distribution
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', '?',
27 def initialize_options (self
):
30 # initialize_options()
33 def finalize_options (self
):
38 b
= build(self
.distribution
)
41 top_builddir
= os
.path
.join (os
.getcwd(), b
.build_lib
)
42 cmd
= 'DBUS_TOP_BUILDDIR="%s" test/run-test.sh'%top_builddir