summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)AuthorFilesLines
2011-08-05test-service, test-shell-service: check what RequestName returnedSimon McVittie2-1/+15
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=39231 Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
2011-07-29Imported Upstream version 1.5.6upstream/1.5.6Simon McVittie10-624/+1175
2011-07-29test, test/name-test: remove SOURCES where they can be inferred from the ↵Simon McVittie2-57/+0
name of the executable
2011-07-29test/name-test: remove useless CFLAGSSimon McVittie1-4/+0
2011-07-29test/name-test: use AM_CPPFLAGS instead of INCLUDESSimon McVittie1-2/+6
2011-07-29test: promote GLIB_CFLAGS, DBUS_GLIB_CFLAGS to top level and use AM_CPPFLAGSSimon McVittie1-6/+5
INCLUDES is a deprecated way to get the same effect as AM_CPPFLAGS. It's harmless to add extra -I directories to all the tests, even those that use neither GLib nor dbus-glib, so we can simplify by setting these AM_CPPFLAGS for the whole directory.
2011-07-29test: reverse assumption regarding static/dynamic linkingSimon McVittie1-3/+10
If we change the default assumption to be that new tests will be dynamically-linked to libdbus, those tests can be useful for installcheck or even for installation. Accordingly, explicitly use new variable $(static_cppflags) for all tests that need static linking.
2011-07-29Simplify linking for tests that use libdbus-testutilsSimon McVittie2-9/+15
This is the library used by tests that link libdbus-internal and DBusLoop. By linking libdbus-internal into it, we can avoid having to repeat that dependency all over the place - libtool and cmake both know how to follow recursive dependencies. In cmake, also use libdbus-testutils for more tests, in preference to repeating its source files.
2011-07-29Don't explicitly link thread and network libs into various testsSimon McVittie2-16/+15
These tests get everything they need from the public or internal API of libdbus-internal.la, and libtool knows how to pull in libraries' dependencies, so we don't need explicit linking. spawn-test and break-loader don't actually need test-utils.[ch] either.
2011-07-29Simplify linking by moving -export-dynamic to AM_LDFLAGSSimon McVittie2-19/+6
2011-07-29Remove DBUS_GLIB_CFLAGS from name-test subdirectory (not used/needed)Simon McVittie1-1/+1
This appears to be left over from when dbus-glib was part of dbus.
2011-07-29Remove DBUS_CLIENT_CFLAGS, which is always emptySimon McVittie1-1/+1
2011-07-29Remove DBUS_TEST_CFLAGS, which is emptySimon McVittie2-2/+2
2011-07-28Add a regression test that can reproduce fd.o #34393Simon McVittie2-16/+77
The number of messages is arbitrary; the more messages, the more likely the crash is. 2000 messages seem to cause it reliably on this laptop, but I've set it to 10000 to be safe. Reviewed-by: Colin Walters <walters@verbum.org> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=34393
2011-07-18Merge branch 'dbus-1.4' and update NEWS for masterSimon McVittie1-5/+36
Conflicts: NEWS
2011-07-18Use EXEEXT when running tests from another directory, and skip ↵Simon McVittie1-4/+7
bus-test-launch-helper on non-Unix This is necessary when cross-compiling from Linux to mingw32 and running the resulting tests under Wine. (This partially works! Some tests fail, though.) Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
2011-07-18Run bus tests from test/Simon McVittie1-0/+5
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=34405 Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
2011-07-18Run dbus-test from test/, not dbus/Simon McVittie1-1/+10
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>
2011-07-18test/Makefile.am: list tests one per lineSimon McVittie1-4/+18
This improves clarity, and makes conflicts less likely and merges more obviously correct. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=34405 Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
2011-07-14Add testsuite for eavesdrop=true DBusMatchRuleCosimo Alfarano2-0/+566
[with some typos fixed during commit -smcv] Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=37890 Bug-NB: NB#269748
2011-06-13Add a stub _dbus_loop_toggle_watch and call it where neededSimon McVittie1-7/+20
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=33337 Bug-NB: NB#197191
2011-06-13DBusLoop: remove second layer of watch callbacks where possibleSimon McVittie1-32/+4
Similar to the previous commit, almost every use of DBusWatch can just have the main loop call dbus_watch_handle. The one exception is the bus activation code; it's had a comment explaining why it's wrong since 2003. We should fix that one day, but for now, just migrate it to a new _dbus_loop_add_watch_full which preserves the second-layer callback. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=33342 Reviewed-by: Thiago Macieira <thiago@kde.org>
2011-06-13DBusLoop: remove a layer of pointless abstraction around timeoutsSimon McVittie1-24/+4
Instead of supplying 8 tiny wrapper functions around dbus_timeout_handle, each with a user_data parameter that's a potentially unsafe borrowed pointer but isn't actually used, we can call dbus_timeout_handle directly and save a lot of trouble. One of the wrappers previously called dbus_timeout_handle repeatedly if it returned FALSE to indicate OOM, but that timeout's handler never actually returned FALSE, so there was no practical effect. The rest just ignore the return, which is documented as OK to do. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=33342 Reviewed-by: Thiago Macieira <thiago@kde.org>
2011-06-10Imported Upstream version 1.5.4upstream/1.5.4Simon McVittie9-34/+1910
2011-06-10Merge branch 'dbus-1.4'Simon McVittie1-1/+1
Conflicts: NEWS configure.ac
2011-06-10fix installable tests to not install if unwantedSimon McVittie1-1/+1
2011-06-10Merge branch 'dbus-1.4'Simon McVittie8-2/+1608
2011-06-10Fix copyright datesSimon McVittie3-3/+3
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=34570
2011-06-10Use DBUS_TIMEOUT_INFINITE in dbus-daemon.cSimon McVittie1-2/+3
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=34570
2011-06-10Test that a message with the byte order mangled causes disconnection but no ↵Simon McVittie1-0/+90
crash Reviewed-by: Will Thompson <will.thompson@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=38120
2011-06-10marshal test: test dbus_message_demarshal_bytes_neededSimon McVittie1-0/+38
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=38120
2011-06-10Add a test for marshalling and endian-swappingSimon McVittie3-0/+229
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=38120
2011-06-10installcheck: don't run installed tests against installed library if in a ↵Simon McVittie1-0/+4
DESTDIR That probably won't work, because it'll find the system-wide library which might be older. Reviewed-by: Will Thompson <will.thompson@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=34570
2011-06-10Alter test-dbus-daemon so it tests the installed dbus-daemon by defaultSimon McVittie2-27/+14
For installcheck, adjust it to use things from DESTDIR. Reviewed-by: Will Thompson <will.thompson@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=34570
2011-06-10Add support for installing most of the modular testsSimon McVittie2-4/+69
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=34570
2011-06-10new test for being disconnected by a corrupt message streamSimon McVittie3-0/+281
This was meant to reproduce fd.o #15578, but doesn't; the cause of that bug isn't this simple. Reviewed-by: Will Thompson <will.thompson@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=34570
2011-06-10Test nonce-tcp transportSimon McVittie1-0/+5
Regression test for https://bugs.freedesktop.org/show_bug.cgi?id=34569 Reviewed-by: David Zeuthen <davidz@redhat.com> Reviewed-by: Will Thompson <will.thompson@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=34570
2011-06-10dbus-daemon test: sanity-check the just-installed config file when using DESTDIRSimon McVittie2-2/+14
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=34570
2011-06-10Add a simple integration test for dbus-daemonSimon McVittie3-0/+329
This just pushes 2000 messages (or 100000 in performance-testing mode) through the dbus-daemon, to an echo service and back. Reviewed-by: Will Thompson <will.thompson@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=34570
2011-06-10Run integration tests on the installed dbus binaries during installcheckSimon McVittie1-1/+12
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=34570
2011-06-10Give the tests DBUS_TEST_DAEMON and DBUS_TEST_DATA in their environmentSimon McVittie1-0/+4
This will allow modular tests to spawn a dbus-daemon with a specified config file; nothing uses this just yet. Reviewed-by: Will Thompson <will.thompson@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=34570
2011-06-10Attempt to reproduce fd.o #34393 via another regression testSimon McVittie3-1/+328
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=34570
2011-06-10loopback test: unref messages after useSimon McVittie1-0/+4
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=34570
2011-06-10Add an end-to-end sanity check for TCP and Unix DBusServer/DBusConnectionSimon McVittie3-1/+220
Reviewed-by: Will Thompson <will.thompson@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=34570
2011-06-01Imported Upstream version 1.5.2upstream/1.5.2Simon McVittie4-32/+31
2011-05-25Merge branch 'dbus-1.4'Simon McVittie1-0/+19
2011-05-25Check for X even if X11 autolaunching is disabledSimon McVittie1-1/+1
DBUS_ENABLE_X11_AUTOLAUNCH obviously requires DBUS_BUILD_X11. However, the converse is not true. If DBUS_BUILD_X11 is defined, dbus-launch will be able to connect to the X server to determine when the session ends; most distributors will want this, but it can be disabled with the standard Autoconf option --without-x. If DBUS_ENABLE_X11_AUTOLAUNCH is *also* defined, dbus-launch and libdbus will be willing to perform autolaunch. Again, most distributors will want this, but it can be disabled with --disable-x11-autolaunch. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=19997 Reviewed-by: Colin Walters <walters@verbum.org>
2011-05-25test-autolaunch: don't expect autolaunching to work if X11 is disabledSimon McVittie1-0/+19
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=19997 Reviewed-by: Colin Walters <walters@verbum.org>
2011-04-08Imported Upstream version 1.4.8upstream/1.4.8Simon McVittie3-6/+24
2011-03-14Revert merge of master (dbus-1.5) into dbus-1.4Simon McVittie1-1/+1
This reverts commits d1d395774435..09c9d6406b75f, keeping Lennart's addition of UnknownInterface etc.