From f8479140d228d7d5043069a0e966e9d3bf94e341 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Sat, 5 Dec 2015 15:40:52 +0000 Subject: Update build system for Automake 1.13 (parallel test driver) --- test/Makefile.am | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'test') diff --git a/test/Makefile.am b/test/Makefile.am index e9f9016..f4bc6e5 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -33,11 +33,13 @@ dbus_py_test_la_LDFLAGS = -module -avoid-version \ dbus_py_test_la_SOURCES = dbus_py_test.c \ $(top_srcdir)/include/dbus-python.h -TESTS_ENVIRONMENT = DBUS_TOP_SRCDIR="$(abs_top_srcdir)" \ - DBUS_TOP_BUILDDIR="$(abs_top_builddir)" \ - DBUS_PYTHON_VERSION='$(PACKAGE_VERSION)' \ - 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" \ - PYTHON='$(PYTHON)' +AM_TESTS_ENVIRONMENT = \ + export DBUS_TOP_SRCDIR="$(abs_top_srcdir)"; \ + export DBUS_TOP_BUILDDIR="$(abs_top_builddir)"; \ + export DBUS_PYTHON_VERSION='$(PACKAGE_VERSION)'; \ + export 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"; \ + export PYTHON='$(PYTHON)'; \ + $(NULL) TESTS = run-test.sh test-import-repeatedly @@ -48,8 +50,8 @@ test_import_repeatedly_CPPFLAGS = $(PYTHON_INCLUDES) test_import_repeatedly_LDFLAGS = $(PYTHON_LIBS) cross-test-server: - $(TESTS_ENVIRONMENT) $(PYTHON) $(top_srcdir)/test/cross-test-server.py + $(AM_TESTS_ENVIRONMENT) $(PYTHON) $(top_srcdir)/test/cross-test-server.py cross-test-client: - $(TESTS_ENVIRONMENT) $(PYTHON) $(top_srcdir)/test/cross-test-client.py + $(AM_TESTS_ENVIRONMENT) $(PYTHON) $(top_srcdir)/test/cross-test-client.py .PHONY: cross-test-compile cross-test-server cross-test-client -- cgit v1.2.3