endif
uninstallable_test_programs += \
- test-atomic \
test-bus \
test-bus-dispatch \
test-bus-dispatch-sha1 \
- test-hash \
test-marshal-recursive \
test-message-internals \
- test-misc-internals \
$(NULL)
if DBUS_UNIX
noinst_PROGRAMS += $(uninstallable_test_programs)
TESTS += $(uninstallable_test_programs)
-test_atomic_SOURCES = internals/atomic.c
-test_atomic_LDADD = libdbus-testutils.la
-
else !DBUS_ENABLE_EMBEDDED_TESTS
TEST_BINARIES=
endif !DBUS_ENABLE_EMBEDDED_TESTS
+test_atomic_SOURCES = internals/atomic.c
+test_atomic_LDADD = libdbus-testutils.la
+
noinst_PROGRAMS += $(TEST_BINARIES)
# This helper is meant to crash, so if we're compiling the rest with
test-sleep-forever \
$(NULL)
installable_tests = \
+ test-atomic \
+ test-hash \
test-shell \
+ test-misc-internals \
test-printf \
$(NULL)
installable_manual_tests = \
}
#ifdef DBUS_UNIX
+#ifdef DBUS_ENABLE_EMBEDDED_TESTS
static dbus_bool_t
_dbus_transport_unix_test (const char *test_data_dir _DBUS_GNUC_UNUSED)
{
return ret;
}
+#endif
/**
* Unit test for dbus-userdb.c.
static DBusTestCase tests[] =
{
- { "string", _dbus_string_test },
- { "sysdeps", _dbus_sysdeps_test },
- { "data-slot", _dbus_data_slot_test },
{ "misc", _dbus_misc_test },
{ "address", _dbus_address_test },
{ "server", _dbus_server_test },
- { "object-tree", _dbus_object_tree_test },
{ "signature", _dbus_signature_test },
- { "marshalling", _dbus_marshal_test },
- { "byteswap", _dbus_marshal_byteswap_test },
- { "memory", _dbus_memory_test },
{ "mem-pool", _dbus_mem_pool_test },
{ "list", _dbus_list_test },
- { "marshal-validate", _dbus_marshal_validate_test },
+
+#ifdef DBUS_ENABLE_EMBEDDED_TESTS
+ { "auth", _dbus_auth_test },
+ { "byteswap", _dbus_marshal_byteswap_test },
{ "credentials", _dbus_credentials_test },
+ { "data-slot", _dbus_data_slot_test },
{ "keyring", _dbus_keyring_test },
+ { "marshal-validate", _dbus_marshal_validate_test },
+ { "marshalling", _dbus_marshal_test },
+ { "memory", _dbus_memory_test },
+ { "object-tree", _dbus_object_tree_test },
{ "sha", _dbus_sha_test },
- { "auth", _dbus_auth_test },
+ { "string", _dbus_string_test },
+ { "sysdeps", _dbus_sysdeps_test },
+#endif
#if defined(DBUS_UNIX)
{ "userdb", _dbus_userdb_test },
+#ifdef DBUS_ENABLE_EMBEDDED_TESTS
{ "transport-unix", _dbus_transport_unix_test },
+#endif
#endif
{ NULL }