1 #Bus name where test application can be found.
2 busname = "test.atspi.tree"
4 #Path of tree interface on test application.
5 objectpath = "/org/freedesktop/atspi/tree"
7 #Directory where test data, such as XML results
11 #Location of test application.
12 testapp = "../apps/test-application"
14 #Directory of test application modules.
15 testmodules = "../apps/.libs"
17 #Atk to at-spi adaptor library location.
18 atspilib = "../../atk-adaptor/.libs/libspiatk.so"
21 def runTestApp(module_name):
23 from subprocess import Popen
25 testmodule = os.path.join(testmodules, module_name)
26 pop = Popen([testapp , "-a", atspilib, "-t", testmodule, "-d", testdata])
28 wait_envar = "TEST_APP_WAIT_FOR_DEBUG"
31 The test application %s has been started with PID %d.
33 To continue the test press ENTER.\n\n
36 if (wait_envar in os.environ.keys()):
37 raw_input(wait_message % (module_name, pop.pid))