mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-05 23:58:26 +02:00
Run dbus-test from test/, not dbus/
This avoids failures caused by test/data not having been set up yet. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=34405 Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
This commit is contained in:
parent
68b17dbb4c
commit
e07a8f8e44
2 changed files with 15 additions and 13 deletions
|
|
@ -269,19 +269,12 @@ libdbus_internal_la_CPPFLAGS = -DDBUS_STATIC_BUILD
|
|||
libdbus_internal_la_LIBADD=$(DBUS_CLIENT_LIBS)
|
||||
libdbus_internal_la_LDFLAGS=$(export_symbols_internal) @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
|
||||
TESTS_ENVIRONMENT=DBUS_TEST_DATA=$(top_builddir)/test/data DBUS_TEST_HOMEDIR=$(top_builddir)/dbus
|
||||
TESTS=dbus-test
|
||||
else
|
||||
TESTS=
|
||||
endif
|
||||
noinst_PROGRAMS =
|
||||
|
||||
## we use noinst_PROGRAMS not check_PROGRAMS so that we build
|
||||
## even when not doing "make check"
|
||||
noinst_PROGRAMS=$(TESTS)
|
||||
if DBUS_BUILD_TESTS
|
||||
# We can't actually run this til we've reached test/
|
||||
noinst_PROGRAMS += dbus-test
|
||||
endif
|
||||
|
||||
dbus_test_SOURCES= \
|
||||
dbus-test-main.c
|
||||
|
|
|
|||
|
|
@ -30,6 +30,13 @@ TESTS = \
|
|||
shell-test \
|
||||
$(NULL)
|
||||
|
||||
## These are conceptually part of directories that come earlier in SUBDIRS
|
||||
## order, but we don't want to run them til we arrive in this directory,
|
||||
## since they depend on stuff from this directory
|
||||
TESTS += \
|
||||
../dbus/dbus-test \
|
||||
$(NULL)
|
||||
|
||||
else !DBUS_BUILD_TESTS
|
||||
|
||||
TEST_BINARIES=
|
||||
|
|
@ -105,7 +112,9 @@ installcheck_environment = \
|
|||
|
||||
TESTS_ENVIRONMENT = \
|
||||
DBUS_TEST_DAEMON=@abs_top_builddir@/bus/dbus-daemon$(EXEEXT) \
|
||||
DBUS_TEST_DATA=@abs_top_builddir@/test/data
|
||||
DBUS_TEST_DATA=@abs_top_builddir@/test/data \
|
||||
DBUS_TEST_HOMEDIR=@abs_top_builddir@/dbus \
|
||||
$(NULL)
|
||||
|
||||
test_corrupt_SOURCES = corrupt.c
|
||||
test_corrupt_CPPFLAGS = $(GLIB_CFLAGS) $(DBUS_GLIB_CFLAGS)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue