These are the test programs that are built if dbus is compiled using
--enable-tests.
-dbus/dbus-test
+dbus/test-dbus
This is the main unit test program that tests all aspects of the D-Bus
client library.
Tests
-----
- dbus library check
- bin\dbus-test.exe <build-root>\test\data
+ bin\test-dbus.exe <build-root>\test\data
- bus daemon check
- bin\bus-test.exe <build-root>\test\data
+ bin\test-bus.exe <build-root>\test\data
- check available names
bin\test_names.exe
endif(WIN32)
if (DBUS_ENABLE_EMBEDDED_TESTS)
- add_test_executable(dbus-test ${CMAKE_SOURCE_DIR}/../dbus/dbus-test-main.c ${DBUS_INTERNAL_LIBRARIES})
- set_target_properties(dbus-test PROPERTIES COMPILE_FLAGS ${DBUS_INTERNAL_CLIENT_DEFINITIONS})
+ add_test_executable(test-dbus ${CMAKE_SOURCE_DIR}/../dbus/dbus-test-main.c ${DBUS_INTERNAL_LIBRARIES})
+ set_target_properties(test-dbus PROPERTIES COMPILE_FLAGS ${DBUS_INTERNAL_CLIENT_DEFINITIONS})
ENDIF (DBUS_ENABLE_EMBEDDED_TESTS)
if (UNIX)
Makefile.in
*.lo
*.la
-dbus-test
+test-dbus
*.bb
*.bbg
*.gcov
if DBUS_ENABLE_EMBEDDED_TESTS
# We can't actually run this til we've reached test/
-noinst_PROGRAMS += dbus-test
+noinst_PROGRAMS += test-dbus
endif
-dbus_test_SOURCES= \
+test_dbus_SOURCES= \
dbus-test-main.c
-dbus_test_LDADD = libdbus-internal.la
+test_dbus_LDADD = libdbus-internal.la
## mop up the gcov files
clean-local:
{
dbus_shutdown ();
- printf ("%s: checking for memleaks\n", "dbus-test");
+ printf ("%s: checking for memleaks\n", "test-dbus");
if (_dbus_get_malloc_blocks_outstanding () != 0)
{
_dbus_warn ("%d dbus_malloc blocks were not freed\n",
{
if (!specific_test || strcmp (specific_test, test_name) == 0)
{
- printf ("%s: running %s tests\n", "dbus-test", test_name);
+ printf ("%s: running %s tests\n", "test-dbus", test_name);
if (!test ())
die (test_name);
{
if (!specific_test || strcmp (specific_test, test_name) == 0)
{
- printf ("%s: running %s tests\n", "dbus-test", test_name);
+ printf ("%s: running %s tests\n", "test-dbus", test_name);
if (!test (test_data_dir))
die (test_name);
run_data_test ("auth", specific_test, _dbus_auth_test, test_data_dir);
- printf ("%s: completed successfully\n", "dbus-test");
+ printf ("%s: completed successfully\n", "test-dbus");
#else
printf ("Not compiled with unit tests, not running any\n");
#endif
<sect1 id="client-library">
<title>Testing the D-Bus client library</title>
<para>
- The tests for the client library consist of the dbus-test
+ The tests for the client library consist of the test-dbus
program which is a unit test for all aspects of the client
library. Whenever a bug in the client library is found and
fixed, a test is added to make sure that the bug won't occur again.
<para>
The D-Bus client library consists of some data structures that
are used internally; a linked list class, a hashtable class and
- a string class. All aspects of those are tested by dbus-test.
+ a string class. All aspects of those are tested by test-dbus.
</para>
</sect2>
<sect2 id="message-loader">
the D-Bus Reference Manual.
</para>
<para>
- The message test part of dbus-test is using the message
+ The message test part of test-dbus is using the message
builder to build different kinds of messages, both valid,
invalid, and invalid ones, to make sure that the loader won't
crash or leak memory of any of those, and that the loader
TESTS = \
../bus/bus-test$(EXEEXT) \
../bus/bus-test-system$(EXEEXT) \
- ../dbus/dbus-test$(EXEEXT) \
+ ../dbus/test-dbus$(EXEEXT) \
$(NULL)
if DBUS_UNIX