2007-06-18 19:32:51 +00:00
|
|
|
## the "name-test" subdir in fact contains a bunch of tests now that need a temporary bus
|
|
|
|
|
## to be running to do stuff with. The directory should be renamed.
|
2008-05-30 16:53:35 -04:00
|
|
|
## We want to build the current directory first to pick up the testutils lib
|
|
|
|
|
SUBDIRS= . name-test
|
2006-07-14 16:20:12 +00:00
|
|
|
DIST_SUBDIRS=name-test
|
2003-09-04 00:21:36 +00:00
|
|
|
|
2012-03-12 14:15:48 +00:00
|
|
|
# CPPFLAGS for binaries that are normally dynamic
|
2011-06-15 14:22:42 +01:00
|
|
|
AM_CPPFLAGS = \
|
|
|
|
|
-I$(top_srcdir) \
|
2012-03-12 14:15:48 +00:00
|
|
|
$(DBUS_STATIC_BUILD_CPPFLAGS) \
|
2011-06-15 14:22:42 +01:00
|
|
|
$(GLIB_CFLAGS) \
|
|
|
|
|
$(DBUS_GLIB_CFLAGS) \
|
|
|
|
|
$(NULL)
|
2002-11-25 05:13:09 +00:00
|
|
|
|
2011-06-15 11:32:29 +01:00
|
|
|
# improve backtraces from test stuff
|
|
|
|
|
AM_LDFLAGS = @R_DYNAMIC_LDFLAG@
|
|
|
|
|
|
2012-03-12 14:15:48 +00:00
|
|
|
# CPPFLAGS for binaries that are always static
|
2011-08-05 13:14:54 +01:00
|
|
|
static_cppflags = \
|
|
|
|
|
$(AM_CPPFLAGS) \
|
|
|
|
|
-DDBUS_STATIC_BUILD \
|
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
|
|
libdbus_testutils_la_CPPFLAGS = \
|
|
|
|
|
$(static_cppflags)
|
2011-06-15 11:50:33 +01:00
|
|
|
libdbus_testutils_la_SOURCES = \
|
|
|
|
|
test-utils.c \
|
|
|
|
|
test-utils.h \
|
|
|
|
|
$(NULL)
|
|
|
|
|
libdbus_testutils_la_LIBADD = \
|
|
|
|
|
$(top_builddir)/dbus/libdbus-internal.la \
|
|
|
|
|
$(NULL)
|
2008-05-30 16:53:35 -04:00
|
|
|
|
|
|
|
|
noinst_LTLIBRARIES = libdbus-testutils.la
|
2003-09-04 00:21:36 +00:00
|
|
|
|
2003-01-15 18:30:12 +00:00
|
|
|
if DBUS_BUILD_TESTS
|
2005-01-15 Havoc Pennington <hp@redhat.com>
* Land the new message args API and type system.
This patch is huge, but the public API change is not
really large. The set of D-BUS types has changed somewhat,
and the arg "getters" are more geared toward language bindings;
they don't make a copy, etc.
There are also some known issues. See these emails for details
on this huge patch:
http://lists.freedesktop.org/archives/dbus/2004-December/001836.html
http://lists.freedesktop.org/archives/dbus/2005-January/001922.html
* dbus/dbus-marshal-*: all the new stuff
* dbus/dbus-message.c: basically rewritten
* dbus/dbus-memory.c (check_guards): with "guards" enabled, init
freed blocks to be all non-nul bytes so using freed memory is less
likely to work right
* dbus/dbus-internals.c (_dbus_test_oom_handling): add
DBUS_FAIL_MALLOC=N environment variable, so you can do
DBUS_FAIL_MALLOC=0 to skip the out-of-memory checking, or
DBUS_FAIL_MALLOC=10 to make it really, really, really slow and
thorough.
* qt/message.cpp: port to the new message args API
(operator<<): use str.utf8() rather than str.unicode()
(pretty sure this is right from the Qt docs?)
* glib/dbus-gvalue.c: port to the new message args API
* bus/dispatch.c, bus/driver.c: port to the new message args API
* dbus/dbus-string.c (_dbus_string_init_const_len): initialize the
"locked" flag to TRUE and align_offset to 0; I guess we never
looked at these anyhow, but seems cleaner.
* dbus/dbus-string.h (_DBUS_STRING_ALLOCATION_PADDING):
move allocation padding macro to this header; use it to implement
(_DBUS_STRING_STATIC): ability to declare a static string.
* dbus/dbus-message.c (_dbus_message_has_type_interface_member):
change to return TRUE if the interface is not set.
* dbus/dbus-string.[hc]: move the D-BUS specific validation stuff
to dbus-marshal-validate.[hc]
* dbus/dbus-marshal-basic.c (_dbus_type_to_string): move here from
dbus-internals.c
* dbus/Makefile.am: cut over from dbus-marshal.[hc]
to dbus-marshal-*.[hc]
* dbus/dbus-object-tree.c (_dbus_decompose_path): move this
function here from dbus-marshal.c
2005-01-15 07:15:38 +00:00
|
|
|
## break-loader removed for now
|
2011-11-09 17:19:19 +00:00
|
|
|
## these binaries are used in tests but are not themselves tests
|
2011-06-06 15:01:52 +01:00
|
|
|
TEST_BINARIES = \
|
|
|
|
|
spawn-test \
|
|
|
|
|
test-exit \
|
|
|
|
|
test-names \
|
|
|
|
|
test-segfault \
|
|
|
|
|
test-service \
|
|
|
|
|
test-shell-service \
|
|
|
|
|
test-sleep-forever \
|
|
|
|
|
$(NULL)
|
2005-07-14 20:44:15 +00:00
|
|
|
|
2011-06-13 11:08:28 +01:00
|
|
|
## 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
|
2011-11-09 17:19:19 +00:00
|
|
|
TESTS = \
|
2011-06-15 12:43:15 +01:00
|
|
|
../bus/bus-test$(EXEEXT) \
|
|
|
|
|
../bus/bus-test-system$(EXEEXT) \
|
|
|
|
|
../dbus/dbus-test$(EXEEXT) \
|
2011-06-13 11:08:28 +01:00
|
|
|
$(NULL)
|
|
|
|
|
|
2011-06-15 12:43:15 +01:00
|
|
|
if DBUS_UNIX
|
|
|
|
|
TESTS += ../bus/bus-test-launch-helper$(EXEEXT)
|
|
|
|
|
endif
|
|
|
|
|
|
2011-06-06 15:01:52 +01:00
|
|
|
else !DBUS_BUILD_TESTS
|
|
|
|
|
|
2003-01-18 14:41:37 +00:00
|
|
|
TEST_BINARIES=
|
2005-07-14 20:44:15 +00:00
|
|
|
TESTS=
|
2011-06-06 15:01:52 +01:00
|
|
|
|
|
|
|
|
endif !DBUS_BUILD_TESTS
|
2003-01-15 18:30:12 +00:00
|
|
|
|
2011-02-02 16:51:30 +00:00
|
|
|
noinst_PROGRAMS= $(TEST_BINARIES)
|
2002-11-25 05:13:09 +00:00
|
|
|
|
2011-06-15 14:21:14 +01:00
|
|
|
test_service_CPPFLAGS = $(static_cppflags)
|
2011-06-15 11:50:33 +01:00
|
|
|
test_service_LDADD = libdbus-testutils.la
|
2011-06-15 14:21:14 +01:00
|
|
|
test_names_CPPFLAGS = $(static_cppflags)
|
2011-06-15 11:50:33 +01:00
|
|
|
test_names_LDADD = libdbus-testutils.la
|
2011-06-15 14:21:14 +01:00
|
|
|
## break_loader_CPPFLAGS = $(static_cppflags)
|
2011-06-15 11:41:27 +01:00
|
|
|
## break_loader_LDADD = $(top_builddir)/dbus/libdbus-internal.la
|
2011-06-15 14:21:14 +01:00
|
|
|
test_shell_service_CPPFLAGS = $(static_cppflags)
|
2011-06-15 11:50:33 +01:00
|
|
|
test_shell_service_LDADD = libdbus-testutils.la
|
2011-06-15 14:21:14 +01:00
|
|
|
shell_test_CPPFLAGS = $(static_cppflags)
|
2011-06-15 11:50:33 +01:00
|
|
|
shell_test_LDADD = libdbus-testutils.la
|
2011-06-15 14:21:14 +01:00
|
|
|
spawn_test_CPPFLAGS = $(static_cppflags)
|
2011-06-15 11:41:27 +01:00
|
|
|
spawn_test_LDADD = $(top_builddir)/dbus/libdbus-internal.la
|
2002-11-25 05:13:09 +00:00
|
|
|
|
2013-06-12 13:56:39 +01:00
|
|
|
test_printf_SOURCES = internals/printf.c
|
|
|
|
|
test_printf_CPPFLAGS = $(static_cppflags)
|
|
|
|
|
test_printf_LDADD = $(top_builddir)/dbus/libdbus-internal.la
|
|
|
|
|
|
2011-08-04 17:16:59 +01:00
|
|
|
test_refs_SOURCES = internals/refs.c
|
2011-08-05 14:52:37 +01:00
|
|
|
test_refs_CPPFLAGS = $(static_cppflags)
|
|
|
|
|
test_refs_LDADD = libdbus-testutils.la $(GLIB_LIBS)
|
2011-08-04 17:16:59 +01:00
|
|
|
|
2011-08-23 16:14:21 +01:00
|
|
|
test_syslog_SOURCES = internals/syslog.c
|
2011-09-21 11:53:31 +01:00
|
|
|
test_syslog_CPPFLAGS = $(static_cppflags)
|
|
|
|
|
test_syslog_LDADD = libdbus-testutils.la $(GLIB_LIBS)
|
2011-08-23 16:14:21 +01:00
|
|
|
|
2011-06-08 17:39:41 +01:00
|
|
|
EXTRA_DIST = dbus-test-runner
|
2003-04-03 00:01:15 +00:00
|
|
|
|
2011-06-08 17:39:41 +01:00
|
|
|
testexecdir = $(libdir)/dbus-1.0/test
|
|
|
|
|
|
|
|
|
|
testexec_PROGRAMS =
|
|
|
|
|
|
|
|
|
|
installable_tests = \
|
2011-11-09 17:19:19 +00:00
|
|
|
shell-test \
|
2013-06-12 13:56:39 +01:00
|
|
|
test-printf \
|
2011-11-09 17:18:36 +00:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
|
|
if DBUS_WITH_GLIB
|
|
|
|
|
installable_tests += \
|
2011-04-15 13:32:48 +01:00
|
|
|
test-corrupt \
|
2011-06-08 18:15:05 +01:00
|
|
|
test-dbus-daemon \
|
2011-07-13 18:05:32 +01:00
|
|
|
test-dbus-daemon-eavesdrop \
|
2011-02-22 16:32:14 +00:00
|
|
|
test-loopback \
|
2011-06-09 18:47:04 +01:00
|
|
|
test-marshal \
|
2011-08-04 17:16:59 +01:00
|
|
|
test-refs \
|
2011-06-08 17:39:41 +01:00
|
|
|
test-relay \
|
2012-02-24 12:44:14 +00:00
|
|
|
test-syntax \
|
2011-08-23 16:14:21 +01:00
|
|
|
test-syslog \
|
2011-06-08 17:39:41 +01:00
|
|
|
$(NULL)
|
2011-11-09 17:18:36 +00:00
|
|
|
endif DBUS_WITH_GLIB
|
2011-06-08 17:39:41 +01:00
|
|
|
|
2011-03-11 13:11:30 +00:00
|
|
|
installcheck_tests =
|
|
|
|
|
installcheck_environment = \
|
|
|
|
|
DBUS_TEST_DAEMON=$(DESTDIR)$(DBUS_DAEMONDIR)/dbus-daemon$(EXEEXT) \
|
2011-09-16 15:01:40 +01:00
|
|
|
DBUS_TEST_HOMEDIR=@abs_top_builddir@/dbus \
|
2011-06-08 18:15:05 +01:00
|
|
|
DBUS_TEST_SYSCONFDIR=$(DESTDIR)$(sysconfdir)
|
2011-03-11 13:11:30 +00:00
|
|
|
|
2011-03-11 12:45:08 +00:00
|
|
|
TESTS_ENVIRONMENT = \
|
2011-06-13 11:11:31 +01:00
|
|
|
DBUS_BLOCK_ON_ABORT=1 \
|
|
|
|
|
DBUS_FATAL_WARNINGS=1 \
|
2011-03-11 12:45:08 +00:00
|
|
|
DBUS_TEST_DAEMON=@abs_top_builddir@/bus/dbus-daemon$(EXEEXT) \
|
2011-06-13 11:08:28 +01:00
|
|
|
DBUS_TEST_DATA=@abs_top_builddir@/test/data \
|
|
|
|
|
DBUS_TEST_HOMEDIR=@abs_top_builddir@/dbus \
|
|
|
|
|
$(NULL)
|
2011-03-11 12:45:08 +00:00
|
|
|
|
2011-04-15 13:32:48 +01:00
|
|
|
test_corrupt_SOURCES = corrupt.c
|
|
|
|
|
test_corrupt_LDADD = $(top_builddir)/dbus/libdbus-1.la \
|
|
|
|
|
$(GLIB_LIBS) \
|
|
|
|
|
$(DBUS_GLIB_LIBS)
|
|
|
|
|
|
2011-02-22 13:04:18 +00:00
|
|
|
test_loopback_SOURCES = loopback.c
|
|
|
|
|
test_loopback_LDADD = $(top_builddir)/dbus/libdbus-1.la \
|
|
|
|
|
$(GLIB_LIBS) \
|
|
|
|
|
$(DBUS_GLIB_LIBS)
|
|
|
|
|
|
2011-02-22 16:32:14 +00:00
|
|
|
test_relay_SOURCES = relay.c
|
|
|
|
|
test_relay_LDADD = $(top_builddir)/dbus/libdbus-1.la \
|
|
|
|
|
$(GLIB_LIBS) \
|
|
|
|
|
$(DBUS_GLIB_LIBS)
|
|
|
|
|
|
2011-03-11 13:13:17 +00:00
|
|
|
test_dbus_daemon_SOURCES = dbus-daemon.c
|
|
|
|
|
test_dbus_daemon_LDADD = $(top_builddir)/dbus/libdbus-1.la \
|
2011-06-09 18:47:04 +01:00
|
|
|
$(GLIB_LIBS) \
|
|
|
|
|
$(DBUS_GLIB_LIBS)
|
|
|
|
|
|
2011-07-13 18:05:32 +01:00
|
|
|
test_dbus_daemon_eavesdrop_SOURCES = dbus-daemon-eavesdrop.c
|
|
|
|
|
test_dbus_daemon_eavesdrop_CPPFLAGS = $(GLIB_CFLAGS) $(DBUS_GLIB_CFLAGS)
|
|
|
|
|
test_dbus_daemon_eavesdrop_LDFLAGS = @R_DYNAMIC_LDFLAG@
|
|
|
|
|
test_dbus_daemon_eavesdrop_LDADD = $(top_builddir)/dbus/libdbus-1.la \
|
|
|
|
|
$(GLIB_LIBS) \
|
|
|
|
|
$(DBUS_GLIB_LIBS)
|
|
|
|
|
|
2011-06-09 18:47:04 +01:00
|
|
|
test_marshal_SOURCES = marshal.c
|
|
|
|
|
test_marshal_LDADD = $(top_builddir)/dbus/libdbus-1.la \
|
2011-03-11 13:13:17 +00:00
|
|
|
$(GLIB_LIBS) \
|
|
|
|
|
$(DBUS_GLIB_LIBS)
|
|
|
|
|
|
2012-02-24 12:44:14 +00:00
|
|
|
test_syntax_SOURCES = syntax.c
|
|
|
|
|
test_syntax_LDADD = $(top_builddir)/dbus/libdbus-1.la \
|
|
|
|
|
$(GLIB_LIBS)
|
|
|
|
|
|
2011-02-22 13:04:18 +00:00
|
|
|
if DBUS_ENABLE_MODULAR_TESTS
|
2011-06-08 17:39:41 +01:00
|
|
|
TESTS += $(installable_tests)
|
|
|
|
|
installcheck_tests += $(installable_tests)
|
|
|
|
|
|
|
|
|
|
if DBUS_ENABLE_INSTALLED_TESTS
|
|
|
|
|
testexec_PROGRAMS += $(installable_tests)
|
|
|
|
|
else !DBUS_ENABLE_INSTALLED_TESTS
|
2011-06-10 21:52:39 +01:00
|
|
|
noinst_PROGRAMS += $(installable_tests)
|
2011-06-08 17:39:41 +01:00
|
|
|
endif !DBUS_ENABLE_INSTALLED_TESTS
|
|
|
|
|
|
2011-02-22 13:04:18 +00:00
|
|
|
endif DBUS_ENABLE_MODULAR_TESTS
|
|
|
|
|
|
2011-06-08 18:47:14 +01:00
|
|
|
# If we're installing the tests into a DESTDIR we can't run them
|
|
|
|
|
# again using the installed copy, because we don't know how to
|
|
|
|
|
# do a portable equivalent of setting LD_LIBRARY_PATH.
|
2011-03-11 13:11:30 +00:00
|
|
|
installcheck-local:
|
|
|
|
|
$(MAKE) check-TESTS TESTS='$$(installcheck_tests)' \
|
|
|
|
|
TESTS_ENVIRONMENT='$$(installcheck_environment)'
|
2011-06-08 17:39:41 +01:00
|
|
|
if DBUS_ENABLE_INSTALLED_TESTS
|
2011-06-08 18:47:14 +01:00
|
|
|
test -n "$(DESTDIR)" || \
|
2011-06-08 17:39:41 +01:00
|
|
|
$(installcheck_environment) \
|
|
|
|
|
$(srcdir)/dbus-test-runner \
|
|
|
|
|
$(testexecdir) \
|
|
|
|
|
$(testexec_PROGRAMS)
|
|
|
|
|
endif DBUS_ENABLE_INSTALLED_TESTS
|
2011-03-11 13:11:30 +00:00
|
|
|
|
2011-09-26 11:20:41 +01:00
|
|
|
in_data = \
|
|
|
|
|
data/valid-config-files-system/debug-allow-all-fail.conf.in \
|
|
|
|
|
data/valid-config-files-system/debug-allow-all-pass.conf.in \
|
|
|
|
|
data/valid-config-files/debug-allow-all-sha1.conf.in \
|
|
|
|
|
data/valid-config-files/debug-allow-all.conf.in \
|
|
|
|
|
data/invalid-service-files-system/org.freedesktop.DBus.TestSuiteNoExec.service.in \
|
|
|
|
|
data/invalid-service-files-system/org.freedesktop.DBus.TestSuiteNoService.service.in \
|
|
|
|
|
data/invalid-service-files-system/org.freedesktop.DBus.TestSuiteNoUser.service.in \
|
|
|
|
|
data/valid-service-files-system/org.freedesktop.DBus.TestSuiteEchoService.service.in \
|
|
|
|
|
data/valid-service-files-system/org.freedesktop.DBus.TestSuiteSegfaultService.service.in \
|
|
|
|
|
data/valid-service-files-system/org.freedesktop.DBus.TestSuiteShellEchoServiceFail.service.in \
|
|
|
|
|
data/valid-service-files-system/org.freedesktop.DBus.TestSuiteShellEchoServiceSuccess.service.in \
|
|
|
|
|
data/valid-service-files/org.freedesktop.DBus.TestSuite.PrivServer.service.in \
|
|
|
|
|
data/valid-service-files/org.freedesktop.DBus.TestSuiteEchoService.service.in \
|
|
|
|
|
data/valid-service-files/org.freedesktop.DBus.TestSuiteForkingEchoService.service.in \
|
|
|
|
|
data/valid-service-files/org.freedesktop.DBus.TestSuiteSegfaultService.service.in \
|
|
|
|
|
data/valid-service-files/org.freedesktop.DBus.TestSuiteShellEchoServiceFail.service.in \
|
|
|
|
|
data/valid-service-files/org.freedesktop.DBus.TestSuiteShellEchoServiceSuccess.service.in \
|
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
|
|
EXTRA_DIST += $(in_data)
|
|
|
|
|
|
|
|
|
|
static_data = \
|
|
|
|
|
name-test/tmp-session-like-system.conf \
|
|
|
|
|
data/auth/anonymous-client-successful.auth-script \
|
|
|
|
|
data/auth/anonymous-server-successful.auth-script \
|
|
|
|
|
data/auth/cancel.auth-script \
|
|
|
|
|
data/auth/client-out-of-mechanisms.auth-script \
|
|
|
|
|
data/auth/external-failed.auth-script \
|
|
|
|
|
data/auth/external-root.auth-script \
|
|
|
|
|
data/auth/external-silly.auth-script \
|
|
|
|
|
data/auth/external-successful.auth-script \
|
|
|
|
|
data/auth/extra-bytes.auth-script \
|
|
|
|
|
data/auth/fail-after-n-attempts.auth-script \
|
|
|
|
|
data/auth/fallback.auth-script \
|
|
|
|
|
data/auth/invalid-command-client.auth-script \
|
|
|
|
|
data/auth/invalid-command.auth-script \
|
|
|
|
|
data/auth/invalid-hex-encoding.auth-script \
|
|
|
|
|
data/auth/mechanisms.auth-script \
|
|
|
|
|
data/equiv-config-files/basic/basic-1.conf \
|
|
|
|
|
data/equiv-config-files/basic/basic-2.conf \
|
|
|
|
|
data/equiv-config-files/basic/basic.d/basic.conf \
|
|
|
|
|
data/equiv-config-files/entities/basic.d/basic.conf \
|
|
|
|
|
data/equiv-config-files/entities/entities-1.conf \
|
|
|
|
|
data/equiv-config-files/entities/entities-2.conf \
|
|
|
|
|
data/incomplete-messages/missing-body.message \
|
|
|
|
|
data/invalid-config-files/badselinux-1.conf \
|
|
|
|
|
data/invalid-config-files/badselinux-2.conf \
|
|
|
|
|
data/invalid-config-files/circular-1.conf \
|
|
|
|
|
data/invalid-config-files/circular-2.conf \
|
|
|
|
|
data/invalid-config-files/circular-3.conf \
|
|
|
|
|
data/invalid-config-files/not-well-formed.conf \
|
|
|
|
|
data/invalid-config-files/truncated-file.conf \
|
|
|
|
|
data/invalid-messages/array-of-nil.message \
|
|
|
|
|
data/invalid-messages/array-with-mixed-types.message \
|
|
|
|
|
data/invalid-messages/bad-boolean-array.message \
|
|
|
|
|
data/invalid-messages/bad-boolean.message \
|
|
|
|
|
data/invalid-messages/bad-endian.message \
|
|
|
|
|
data/invalid-messages/bad-header-field-alignment.message \
|
|
|
|
|
data/invalid-messages/boolean-has-no-value.message-raw \
|
|
|
|
|
data/invalid-messages/local-namespace.message \
|
|
|
|
|
data/invalid-messages/no-dot-in-name.message \
|
|
|
|
|
data/invalid-messages/not-nul-header-padding.message \
|
|
|
|
|
data/invalid-messages/overlong-name.message \
|
|
|
|
|
data/invalid-messages/too-little-header-padding.message \
|
|
|
|
|
data/invalid-messages/too-much-header-padding-by-far.message \
|
|
|
|
|
data/invalid-messages/too-much-header-padding.message \
|
|
|
|
|
data/invalid-messages/too-short-dict.message \
|
|
|
|
|
data/sha-1/Readme.txt \
|
|
|
|
|
data/sha-1/bit-hashes.sha1 \
|
|
|
|
|
data/sha-1/bit-messages.sha1 \
|
|
|
|
|
data/sha-1/byte-hashes.sha1 \
|
|
|
|
|
data/sha-1/byte-messages.sha1 \
|
|
|
|
|
data/valid-config-files/basic.conf \
|
|
|
|
|
data/valid-config-files/basic.d/basic.conf \
|
|
|
|
|
data/valid-config-files/entities.conf \
|
2012-03-12 11:55:27 +00:00
|
|
|
data/valid-config-files/incoming-limit.conf \
|
2011-09-26 11:20:41 +01:00
|
|
|
data/valid-config-files/many-rules.conf \
|
|
|
|
|
data/valid-config-files/system.d/test.conf \
|
|
|
|
|
data/valid-messages/array-of-array-of-uint32.message \
|
|
|
|
|
data/valid-messages/dict-simple.message \
|
|
|
|
|
data/valid-messages/dict.message \
|
|
|
|
|
data/valid-messages/emptiness.message \
|
|
|
|
|
data/valid-messages/lots-of-arguments.message \
|
|
|
|
|
data/valid-messages/no-padding.message \
|
|
|
|
|
data/valid-messages/opposite-endian.message \
|
|
|
|
|
data/valid-messages/recursive-types.message \
|
|
|
|
|
data/valid-messages/simplest-manual.message \
|
|
|
|
|
data/valid-messages/simplest.message \
|
|
|
|
|
data/valid-messages/standard-acquire-service.message \
|
|
|
|
|
data/valid-messages/standard-hello.message \
|
|
|
|
|
data/valid-messages/standard-list-services.message \
|
|
|
|
|
data/valid-messages/standard-service-exists.message \
|
|
|
|
|
data/valid-messages/unknown-header-field.message \
|
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
|
|
EXTRA_DIST += $(static_data)
|
|
|
|
|
|
|
|
|
|
## copy tests to builddir so that generated tests and static tests
|
2003-04-03 00:01:15 +00:00
|
|
|
## are all in one place.
|
|
|
|
|
all-local:
|
2012-04-25 19:04:07 +01:00
|
|
|
$(AM_V_at)$(MKDIR_P) data/valid-config-files/session.d
|
2011-09-26 11:20:41 +01:00
|
|
|
$(AM_V_at)set -e && \
|
|
|
|
|
if test $(srcdir) = . || test $(srcdir) -ef .; then \
|
|
|
|
|
echo '-- No need to copy test data as srcdir = builddir'; \
|
|
|
|
|
else \
|
|
|
|
|
for F in $(static_data); do \
|
2012-04-25 19:04:07 +01:00
|
|
|
$(MKDIR_P) $${F%/*}; \
|
2012-06-05 13:27:23 +01:00
|
|
|
rm -f $$F; \
|
2012-04-25 19:04:07 +01:00
|
|
|
cp $(srcdir)/$$F $$F; \
|
2011-09-26 11:20:41 +01:00
|
|
|
done; \
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
## this doesn't clean most copied test data files when srcdir=builddir
|
2003-04-03 00:01:15 +00:00
|
|
|
clean-local:
|
2011-09-26 11:20:41 +01:00
|
|
|
$(AM_V_at)if test $(srcdir) = . || test $(srcdir) -ef .; then \
|
|
|
|
|
echo '-- No need to clean test data as srcdir = builddir'; \
|
|
|
|
|
else \
|
|
|
|
|
rm -f $(static_data); \
|
2003-04-03 00:01:15 +00:00
|
|
|
fi
|
2011-09-26 11:20:41 +01:00
|
|
|
|
|
|
|
|
imported_data = \
|
|
|
|
|
data/valid-config-files/session.conf \
|
|
|
|
|
data/valid-config-files/system.conf \
|
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
|
|
noinst_DATA = $(imported_data)
|
|
|
|
|
CLEANFILES = $(noinst_DATA)
|
|
|
|
|
|
|
|
|
|
data/valid-config-files/session.conf: $(top_builddir)/bus/session.conf
|
2012-04-25 19:04:07 +01:00
|
|
|
$(AM_V_at)$(MKDIR_P) data/valid-config-files
|
|
|
|
|
$(AM_V_GEN)cp $< $@
|
2011-09-26 11:20:41 +01:00
|
|
|
|
|
|
|
|
data/valid-config-files/system.conf: $(top_builddir)/bus/system.conf
|
2012-04-25 19:04:07 +01:00
|
|
|
$(AM_V_at)$(MKDIR_P) data/valid-config-files
|
|
|
|
|
$(AM_V_GEN)cp $< $@
|