Don't try to distribute COPYING.AFL-2.1 and COPYING.GPL-2, which we no longer have...
[dbus-python-phuang.git] / test / Makefile.am
bloba40c3d11438306ae0156399e973250d2f17646b4
1 abs_top_srcdir = @abs_top_srcdir@
2 abs_top_builddir = @abs_top_builddir@
4 EXTRA_DIST = \
5              cross-test-client.py \
6              cross-test-server.py \
7              crosstest.py \
8              run-test.sh \
9              run-with-tmp-session-bus.sh \
10              test-client.py \
11              test-p2p.py \
12              test-service.py \
13              test-signals.py \
14              test-standalone.py \
15              test-unusable-main-loop.py \
16              TestSuitePythonService.service.in \
17              tmp-session-bus.conf.in
19 # If you try to make this noinst, libtool helpfully gives us a static
20 # library, which doesn't work as a Python extension: so force the install
21 # target not to work here instead.
22 pyexec_LTLIBRARIES = dbus_py_test.la
24 install:
25         @echo "Not installing anything from test/"
27 dbus_py_test_la_CPPFLAGS = -I$(top_srcdir)/include $(DBUS_CFLAGS) \
28                            $(PYTHON_INCLUDES)
29 dbus_py_test_la_LDFLAGS = -module -avoid-version \
30                           $(DBUS_LIBS)
31 dbus_py_test_la_SOURCES = dbus_py_test.c \
32                           $(top_srcdir)/include/dbus-python.h
34 TESTS_ENVIRONMENT = DBUS_TOP_SRCDIR="$(abs_top_srcdir)" \
35                     DBUS_TOP_BUILDDIR="$(abs_top_builddir)" \
36                     DBUS_PYTHON_VERSION='$(PACKAGE_VERSION)' \
37                     PYTHONPATH="$(abs_top_builddir)/test/.libs:$(abs_top_srcdir):$(abs_top_srcdir)/test:$(abs_top_builddir)/_dbus_bindings/.libs:$(abs_top_builddir)/_dbus_glib_bindings/.libs" \
38                     PYTHON='$(PYTHON)'
40 TESTS = run-test.sh
42 cross-test-server:
43         $(TESTS_ENVIRONMENT) $(PYTHON) $(top_srcdir)/test/cross-test-server.py
44 cross-test-client:
45         $(TESTS_ENVIRONMENT) $(PYTHON) $(top_srcdir)/test/cross-test-client.py
47 .PHONY: cross-test-compile cross-test-server cross-test-client