atk-adaptor/Makefile
login-helper/Makefile
tests/dummyatk/Makefile
- tests/cspi/Makefile
tests/data/Makefile
tests/pyatspi/Makefile
tests/pyatspi/pasytest/Makefile
+pyatspidir = $(pythondir)/pyatspi
pyatspi_PYTHON = \
+ Accessibility.py \
accessible.py \
action.py \
application.py \
utils.py \
value.py
-pyatspidir=$(pyexecdir)/pyatspi
-
CLEANFILES = *.pyc
-SUBDIRS = dummyatk apps data cspi pyatspi
+SUBDIRS = dummyatk apps data pyatspi
#TESTS=testrunner.py
TESTS_ENVIRONMENT = PYTHONPATH=$(abs_top_srcdir)/python \
EXTRA_DIST = \
accessibletest.py\
+ actiontest.py\
componenttest.py\
desktoptest.py\
statetest.py\
Makefile.in\
setvars.sh\
relationtest.py\
- testrunner.py
+ runtests.sh\
+ testrunner
+
+TESTS_ENVIRONMENT = top_builddir=$(top_builddir) top_srcdir=$(top_srcdir)
+
+TESTS = runtests.sh
CLEANFILES = *.pyc
self._path = path
def setup(self, test):
- self._registry = pyatspi.registry.Registry(self._path)
+ self._registry = pyatspi.Registry()
+ print self._path
self._desktop = self._registry.getDesktop(0)
def test_name(self, test):
self._path = path
def setup(self, test):
- self._registry = pyatspi.registry.Registry(self._path)
+ self._registry = pyatspi.Registry()
self._desktop = self._registry.getDesktop(0)
def test_nActions(self, test):
self._path = path
def setup(self, test):
- self._registry = pyatspi.registry.Registry(self._path)
+ self._registry = pyatspi.Registry()
self._desktop = self._registry.getDesktop(0)
def test_contains(self, test):
self._path = path
def setup(self, test):
- self._registry = pyatspi.registry.Registry(self._path)
+ self._registry = pyatspi.Registry()
self._desktop = self._registry.getDesktop(0)
def test_name(self, test):
self._path = path
def setup(self, test):
- self._registry = pyatspi.registry.Registry(self._path)
+ self._registry = pyatspi.Registry()
self._desktop = self._registry.getDesktop(0)
self._root = self._desktop[0]
self._rset = self._root.getRelationSet()
--- /dev/null
+export PYTHONPATH=$top_srcdir
+
+export TEST_DATA_DIRECTORY=$top_srcdir/tests/data
+export TEST_ATSPI_LIBRARY=$top_builddir/atk-adaptor/.libs/libspiatk.so
+export TEST_MODULES_DIRECTORY=$top_builddir/tests/apps/.libs
+export TEST_APPLICATION=$top_builddir/tests/apps/test-application
+
+$top_srcdir/tests/pyatspi/testrunner -l libaccessibleapp.so -m accessibletest -n AccessibleTest
+$top_srcdir/tests/pyatspi/testrunner -l libactionapp.so -m actiontest -n ActionTest
+$top_srcdir/tests/pyatspi/testrunner -l libcomponentapp.so -m componenttest -n ComponentTest
+$top_srcdir/tests/pyatspi/testrunner -l librelationapp.so -m relationtest -n RelationTest
+$top_srcdir/tests/pyatspi/testrunner -l libaccessibleapp.so -m statetest -n StateTest
import gobject
import dbus
import sys
+import os
import time
from random import randint
test = dbus.Interface(to, "org.codethink.atspi.test")
# Run the test script here
+ os.environ["ATSPI_TEST_APP_NAME"] = name
module = __import__(options.test_module)
test_class = getattr(module, options.test_name)
test_object = test_class(bus, name)