Commit 78d5af5c authored by Simon McVittie's avatar Simon McVittie

tests: Move _dbus_sha_test outside libdbus

Instead of exposing _dbus_sha_test() as a private exported symbol,
we can expose _dbus_sha_compute(), which is the only thing called by
the test that isn't already exported.
Signed-off-by: Simon McVittie's avatarSimon McVittie <smcv@collabora.com>
parent 04349461
This diff is collapsed.
......@@ -47,6 +47,7 @@ void _dbus_sha_update (DBusSHAContext *context,
const DBusString *data);
dbus_bool_t _dbus_sha_final (DBusSHAContext *context,
DBusString *results);
DBUS_EMBEDDED_TESTS_EXPORT
dbus_bool_t _dbus_sha_compute (const DBusString *data,
DBusString *ascii_output);
......
......@@ -46,9 +46,6 @@ dbus_bool_t _dbus_mem_pool_test (const char *test_data_dir);
DBUS_PRIVATE_EXPORT
dbus_bool_t _dbus_address_test (const char *test_data_dir);
DBUS_PRIVATE_EXPORT
dbus_bool_t _dbus_sha_test (const char *test_data_dir);
DBUS_PRIVATE_EXPORT
dbus_bool_t _dbus_keyring_test (const char *test_data_dir);
......
......@@ -128,6 +128,7 @@ if(DBUS_ENABLE_EMBEDDED_TESTS)
internals/dbus-sysdeps-util.c
internals/misc-internals.c
internals/misc-internals.h
internals/sha.c
)
add_test_executable(test-misc-internals "${SOURCES}" dbus-testutils)
set_target_properties(test-misc-internals PROPERTIES COMPILE_FLAGS ${DBUS_INTERNAL_CLIENT_DEFINITIONS})
......
......@@ -249,6 +249,7 @@ test_misc_internals_SOURCES = \
internals/dbus-sysdeps-util.c \
internals/misc-internals.c \
internals/misc-internals.h \
internals/sha.c \
$(NULL)
test_misc_internals_LDADD = libdbus-testutils.la
......
......@@ -32,5 +32,6 @@ dbus_bool_t _dbus_marshal_byteswap_test (const char *test_data_dir);
dbus_bool_t _dbus_marshal_validate_test (const char *test_data_dir);
dbus_bool_t _dbus_string_test (const char *test_data_dir);
dbus_bool_t _dbus_sysdeps_test (const char *test_data_dir);
dbus_bool_t _dbus_sha_test (const char *test_data_dir);
#endif
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment