summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* refs test: fix unused variableSimon McVittie2011-09-211-1/+0
| | | | This one was added since my more-unused-39231 branch.
* Fix compilation of syslog test in masterSimon McVittie2011-09-211-2/+2
|
* Merge branch 'more-unused-39231'Simon McVittie2011-09-211-4/+0
|\ | | | | | | | | Bug: https://bugs.freedesktop.org/show_bug.cgi?id=39231 Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
| * Remove more never-used variablesSimon McVittie2011-09-191-4/+0
| |
* | Merge branch 'dbus-1.4'Simon McVittie2011-09-215-5/+115
|\ \ | |/ |/| | | | | Conflicts: NEWS
| * Check for Python; skip Python tests if not foundSimon McVittie2011-09-213-4/+7
| | | | | | | | | | | | | | | | As with the optional test-dependencies on GLib and dbus-glib, we make this a hard dependency if --enable-tests[=yes], but not if --enable-tests=auto. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=37847 Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
| * Add a semi-automatic test for _dbus_system_logSimon McVittie2011-09-212-0/+105
| | | | | | | | | | Bug: https://bugs.freedesktop.org/show_bug.cgi?id=39987 Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
| * Make "make -C test clean" idempotentSimon McVittie2011-09-211-1/+3
| | | | | | | | | | | | | | | | Previously, it'd fail when done twice, because you can't rmdir a nonexistent directory. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=40004 Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
* | dbus-daemon-eavesdrop test: apply the same Windows fixes as dbus-daemon testSimon McVittie2011-08-121-2/+3
| | | | | | | | Bug: https://bugs.freedesktop.org/show_bug.cgi?id=40003
* | Fix linking of libdbus-testutils.la with Automake targeting WindowsSimon McVittie2011-08-121-5/+7
| | | | | | | | | | This regressed in commit 9875480ed - libdbus-testutils.la needs static linking too.
* | Merge branch 'dbus-1.4'Simon McVittie2011-08-121-2/+3
|\ \ | |/
| * Fix compiler warnings when cross-compiling dbus-daemon test for mingw32Simon McVittie2011-08-121-2/+3
| | | | | | | | | | Bug: https://bugs.freedesktop.org/show_bug.cgi?id=40003 Reviewed-by: Colin Walters <walters@verbum.org>
* | Merge branch 'dbus-1.4'Simon McVittie2011-08-053-4/+626
|\ \ | |/ | | | | | | Conflicts: bus/main.c
| * Add a regression test for fd.o #38005Simon McVittie2011-08-052-0/+618
| | | | | | | | | | | | | | (The dbus-1.4 version.) Bug: https://bugs.freedesktop.org/show_bug.cgi?id=39836 Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
| * relay test: don't leak the server's addressSimon McVittie2011-08-051-4/+8
| | | | | | | | | | Bug: https://bugs.freedesktop.org/show_bug.cgi?id=39836 Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
* | Remove various never-used variablesSimon McVittie2011-08-053-4/+0
| | | | | | | | | | Bug: https://bugs.freedesktop.org/show_bug.cgi?id=39231 Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
* | test-service, test-shell-service: check what RequestName returnedSimon McVittie2011-08-052-1/+15
| | | | | | | | | | Bug: https://bugs.freedesktop.org/show_bug.cgi?id=39231 Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
* | test, test/name-test: remove SOURCES where they can be inferred from the ↵Simon McVittie2011-07-292-57/+0
| | | | | | | | name of the executable
* | test/name-test: remove useless CFLAGSSimon McVittie2011-07-291-4/+0
| |
* | test/name-test: use AM_CPPFLAGS instead of INCLUDESSimon McVittie2011-07-291-2/+6
| |
* | test: promote GLIB_CFLAGS, DBUS_GLIB_CFLAGS to top level and use AM_CPPFLAGSSimon McVittie2011-07-291-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.
* | test: reverse assumption regarding static/dynamic linkingSimon McVittie2011-07-291-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.
* | Simplify linking for tests that use libdbus-testutilsSimon McVittie2011-07-292-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.
* | Don't explicitly link thread and network libs into various testsSimon McVittie2011-07-292-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.
* | Simplify linking by moving -export-dynamic to AM_LDFLAGSSimon McVittie2011-07-292-19/+6
| |
* | Remove DBUS_GLIB_CFLAGS from name-test subdirectory (not used/needed)Simon McVittie2011-07-291-1/+1
| | | | | | | | This appears to be left over from when dbus-glib was part of dbus.
* | Remove DBUS_CLIENT_CFLAGS, which is always emptySimon McVittie2011-07-291-1/+1
| |
* | Remove DBUS_TEST_CFLAGS, which is emptySimon McVittie2011-07-292-2/+2
| |
* | Add a regression test that can reproduce fd.o #34393Simon McVittie2011-07-282-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
* | Merge branch 'dbus-1.4' and update NEWS for masterSimon McVittie2011-07-181-5/+36
|\ \ | |/ | | | | | | Conflicts: NEWS
| * Use EXEEXT when running tests from another directory, and skip ↵Simon McVittie2011-07-181-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>
| * Run bus tests from test/Simon McVittie2011-07-181-0/+5
| | | | | | | | | | Bug: https://bugs.freedesktop.org/show_bug.cgi?id=34405 Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
| * Run dbus-test from test/, not dbus/Simon McVittie2011-07-181-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>
| * test/Makefile.am: list tests one per lineSimon McVittie2011-07-181-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>
* | Add testsuite for eavesdrop=true DBusMatchRuleCosimo Alfarano2011-07-142-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
* | DBusLoop: remove second layer of watch callbacks where possibleSimon McVittie2011-06-131-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>
* | DBusLoop: remove a layer of pointless abstraction around timeoutsSimon McVittie2011-06-131-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>
* | Merge branch 'dbus-1.4'Simon McVittie2011-06-101-1/+1
|\ \ | |/ | | | | | | | | Conflicts: NEWS configure.ac
| * fix installable tests to not install if unwantedSimon McVittie2011-06-101-1/+1
| |
* | Merge branch 'dbus-1.4'Simon McVittie2011-06-108-2/+1608
|\ \ | |/
| * Fix copyright datesSimon McVittie2011-06-103-3/+3
| | | | | | | | | | Reviewed-by: Will Thompson <will.thompson@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=34570
| * Use DBUS_TIMEOUT_INFINITE in dbus-daemon.cSimon McVittie2011-06-101-2/+3
| | | | | | | | | | Reviewed-by: Will Thompson <will.thompson@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=34570
| * Test that a message with the byte order mangled causes disconnection but no ↵Simon McVittie2011-06-101-0/+90
| | | | | | | | | | | | | | crash Reviewed-by: Will Thompson <will.thompson@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=38120
| * marshal test: test dbus_message_demarshal_bytes_neededSimon McVittie2011-06-101-0/+38
| | | | | | | | | | Reviewed-by: Will Thompson <will.thompson@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=38120
| * Add a test for marshalling and endian-swappingSimon McVittie2011-06-103-0/+229
| | | | | | | | | | Reviewed-by: Will Thompson <will.thompson@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=38120
| * installcheck: don't run installed tests against installed library if in a ↵Simon McVittie2011-06-101-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
| * Alter test-dbus-daemon so it tests the installed dbus-daemon by defaultSimon McVittie2011-06-102-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
| * Add support for installing most of the modular testsSimon McVittie2011-06-102-4/+69
| | | | | | | | | | Reviewed-by: Will Thompson <will.thompson@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=34570
| * new test for being disconnected by a corrupt message streamSimon McVittie2011-06-103-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
| * Test nonce-tcp transportSimon McVittie2011-06-101-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