summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChengwei Yang <chengwei.yang@intel.com>2013-06-28 16:06:41 +0800
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2013-06-28 12:17:15 +0100
commit134701b758d834eda139843fcb90c144b57a08b0 (patch)
tree6ab4bda355b391d04fbc1c129a094bc4776f4d3c
parent4df8738794422c216b25e1bc1bbc80654c948c5d (diff)
downloaddbus-134701b758d834eda139843fcb90c144b57a08b0.tar.gz
tests to embedded tests: replaced in automake files
Signed-off-by: Chengwei Yang <chengwei.yang@intel.com> Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=66291
-rw-r--r--bus/Makefile.am4
-rw-r--r--configure.ac6
-rw-r--r--dbus/Makefile.am2
-rw-r--r--test/Makefile.am6
-rw-r--r--test/name-test/Makefile.am4
5 files changed, 9 insertions, 13 deletions
diff --git a/bus/Makefile.am b/bus/Makefile.am
index 526f1101..cd0c67da 100644
--- a/bus/Makefile.am
+++ b/bus/Makefile.am
@@ -164,7 +164,7 @@ endif DBUS_UNIX
## compiled, so we don't put them in TESTS here; we run them in test/
## instead.
-if DBUS_BUILD_TESTS
+if DBUS_ENABLE_EMBEDDED_TESTS
## we use noinst_PROGRAMS not check_PROGRAMS so that we build
## even when not doing "make check"
@@ -178,7 +178,7 @@ noinst_PROGRAMS += bus-test-launch-helper
noinst_PROGRAMS += dbus-daemon-launch-helper-test
endif DBUS_UNIX
-endif DBUS_BUILD_TESTS
+endif DBUS_ENABLE_EMBEDDED_TESTS
bus_test_system_SOURCES= \
$(XML_SOURCES) \
diff --git a/configure.ac b/configure.ac
index 755e4f04..c80fcfcb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -192,16 +192,12 @@ AC_ARG_ENABLE([tests],
[])
# DBUS_ENABLE_EMBEDDED_TESTS controls unit tests built in to .c files
-# and also some stuff in the test/ subdir. DBUS_BUILD_TESTS was an older
-# name for this.
-AM_CONDITIONAL([DBUS_BUILD_TESTS], [test "x$enable_embedded_tests" = xyes])
+# and also some stuff in the test/ subdir.
AM_CONDITIONAL([DBUS_ENABLE_EMBEDDED_TESTS],
[test "x$enable_embedded_tests" = xyes])
if test "x$enable_embedded_tests" = xyes; then
AC_DEFINE([DBUS_ENABLE_EMBEDDED_TESTS], [1],
[Define to build test code into the library and binaries])
- AC_DEFINE([DBUS_BUILD_TESTS], [1],
- [Define to build test code into the library and binaries])
fi
# DBUS_ENABLE_MODULAR_TESTS controls tests that work based on public API.
diff --git a/dbus/Makefile.am b/dbus/Makefile.am
index 9628c834..e118cbbb 100644
--- a/dbus/Makefile.am
+++ b/dbus/Makefile.am
@@ -310,7 +310,7 @@ endif
noinst_PROGRAMS =
-if DBUS_BUILD_TESTS
+if DBUS_ENABLE_EMBEDDED_TESTS
# We can't actually run this til we've reached test/
noinst_PROGRAMS += dbus-test
endif
diff --git a/test/Makefile.am b/test/Makefile.am
index 6f0e6e10..074017a5 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -33,7 +33,7 @@ libdbus_testutils_la_LIBADD = \
noinst_LTLIBRARIES = libdbus-testutils.la
-if DBUS_BUILD_TESTS
+if DBUS_ENABLE_EMBEDDED_TESTS
## break-loader removed for now
## these binaries are used in tests but are not themselves tests
TEST_BINARIES = \
@@ -59,12 +59,12 @@ if DBUS_UNIX
TESTS += ../bus/bus-test-launch-helper$(EXEEXT)
endif
-else !DBUS_BUILD_TESTS
+else !DBUS_ENABLE_EMBEDDED_TESTS
TEST_BINARIES=
TESTS=
-endif !DBUS_BUILD_TESTS
+endif !DBUS_ENABLE_EMBEDDED_TESTS
noinst_PROGRAMS= $(TEST_BINARIES)
diff --git a/test/name-test/Makefile.am b/test/name-test/Makefile.am
index 6aaf1783..424dad3a 100644
--- a/test/name-test/Makefile.am
+++ b/test/name-test/Makefile.am
@@ -11,7 +11,7 @@ AM_LDFLAGS = @R_DYNAMIC_LDFLAG@
## note that TESTS has special meaning (stuff to use in make check)
## so if adding tests not to be run in make check, don't add them to
## TESTS
-if DBUS_BUILD_TESTS
+if DBUS_ENABLE_EMBEDDED_TESTS
TESTS_ENVIRONMENT=DBUS_TOP_BUILDDIR=@abs_top_builddir@ DBUS_TOP_SRCDIR=@abs_top_srcdir@ PYTHON=@PYTHON@
TESTS=run-test.sh run-test-systemserver.sh
else
@@ -20,7 +20,7 @@ endif
EXTRA_DIST=run-test.sh run-test-systemserver.sh test-wait-for-echo.py test-activation-forking.py
-if DBUS_BUILD_TESTS
+if DBUS_ENABLE_EMBEDDED_TESTS
## we use noinst_PROGRAMS not check_PROGRAMS for TESTS so that we
## build even when not doing "make check"