summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* tests/cross-test-*: don't use deprecated sets moduleSimon McVittie2010-02-182-5/+3
| | | | set() has been a built-in since 2.4, and we don't support older versions.
* Avoid some compiler warningsSimon McVittie2008-07-231-0/+2
|
* Omit the remote traceback from certain D-Bus errorsSimon McVittie2008-07-172-0/+59
| | | | | | | | | | | Specifically, DBusException and its subclasses no longer have the remote traceback by default (although subclasses can turn it back on again by setting include_traceback = True, and the various "programmer error" subclasses of DBusException do have this set). Hopefully this will stop people thinking it's a dbus-python or telepathy-python bug when a D-Bus API like Telepathy deliberately raises an error (and so dbus-python or telepathy-python is visible in the traceback).
* Alter dbus.server.Server API to have pseudo-signalsSimon McVittie2008-07-151-11/+13
| | | | | | By either appending to a list of callbacks, or subclassing and providing a method, you can be notified when connections are added or removed. Inspired by the DBusServer patch from Huang Peng.
* test-server: import Connection from the right placeSimon McVittie2008-07-141-2/+2
|
* Initial support for DBusServer class (#14322).Mathias Hasselmann2008-07-141-0/+74
|
* Use MIT/X11 license as per permission given on the dbus mailing list.Simon McVittie2007-10-092-0/+40
| | | | | | | | | | | This affects code with copyright statements from the following individuals: * Anders Carlsson * Colin Walters * David Zeuthen * Rob Taylor and the following companies: * Collabora Ltd. (represented by me) * Red Hat Inc. (represented by Havoc Pennington)
* test/: add some missing copyright headersSimon McVittie2007-10-093-1/+31
|
* Use MIT/X11 license for code owned by Collabora and Red Hat only, as per ↵Simon McVittie2007-09-285-58/+93
| | | | | | Havoc's permission (Message-ID: <815098350709271800k2505485dlef9414609d392b48@mail.gmail.com>)
* Update NEWS, and add regression tests for fd.o #12096 and #12403Simon McVittie2007-09-272-0/+23
|
* Relicense Collabora code under the MIT/X11 license proposed for dbus core, ↵Simon McVittie2007-09-275-53/+91
| | | | removing all references to the LGPL as a result
* Makefile.am, test/Makefile.am: Use @abs_top_builddir@, @abs_top_srcdir@Simon McVittie2007-08-061-4/+6
| | | | | This fixes incorrect Python path for docs and tests if doing an out-of-tree build using an absolute path for $(srcdir), and is also less ugly.
* Add rel_path_keyword to @method (fd.o #11623)Simon McVittie2007-08-012-11/+27
|
* Avoid deprecated API in cross-testSimon McVittie2007-08-012-9/+10
|
* Fix introspection on objects with more than one connection or more than one ↵Simon McVittie2007-08-012-0/+19
| | | | object path (bugs.fd.o #11794)
* Measure async call timeout in seconds as intended, not in ms (blocking calls ↵Simon McVittie2007-07-312-0/+53
| | | | already used seconds). Add regression tests
* test-client: Avoid deprecated usage - explicitly pass SessionBus() to ↵Simon McVittie2007-07-261-1/+1
| | | | BusName ctor
* Implement fallback objects.Simon McVittie2007-06-184-7/+85
| | | | | | | | In the process, simplify the signal decorator a bit - don't allow the signal to be emitted from a subset of interfaces (removing connection_keyword), deprecate path_keyword, disallow path_keyword on objects that support multiple object paths, and add rel_path_keyword. This is an API removal since previous patches, but is compatible with the last release.
* dbus.service: Allow objects to start off unexported, and become exported later.Simon McVittie2007-06-111-5/+3
| | | | | | Also allow them to be exported on more than one object path or even connection. dbus.decorators: Allow connection_keyword on signals and methods, so we can tell which connection to use for any follow-up actions.
* dbus.service: change unexport() to remove_from_connection() at J5's requestSimon McVittie2007-06-042-2/+2
|
* dbus.service: Make it possible to unexport objects (fd.o#10457)Simon McVittie2007-05-302-3/+51
|
* _dbus_bindings/conn-methods.c: add list_exported_child_objects().Simon McVittie2007-05-292-0/+11
| | | | This is equivalent to dbus_connection_list_registered() in libdbus.
* dbus.connection: Release signals lock before calling _clean_up_signal_match().Simon McVittie2007-05-282-10/+26
| | | | | | | | | | This prevents a deadlock when a signal match that's tracking name owner changes is removed, causing a match on NameOwnerChanged to be removed too. (Debian bug#426412) Also move more of the tree manipulation inside the lock, to be nice to anyone attempting a port to implementations without a GIL (mainly IronPython), and add a regression test for the above bug.
* Don't run the examples during "make check" - timing/startup issues cause ↵Simon McVittie2007-05-091-12/+12
| | | | intermittent failures
* dbus/gobject_service.py: Make ExportedGObject work correctly.Simon McVittie2007-05-032-0/+21
| | | | Also add a simple unit test for it.
* test/test-p2p.py: Added. Test "peer-to-peer" connections.Simon McVittie2007-04-303-0/+95
| | | | | (Actually tested by connecting to the bus daemon, because I haven't implemented a Python binding for DBusServer yet.)
* dbus/_bus_mixin.py: Add bindings for ListNames, ListActivatableNames, ↵Simon McVittie2007-04-301-2/+22
| | | | GetNameOwner too
* test/test-service.py: Use constants for the bus name and object pathSimon McVittie2007-04-271-4/+5
|
* Preparation for fallback-object support:Simon McVittie2007-04-252-0/+19
| | | | | | * Let exported methods receive the path, destination and raw message via kwargs, as well as the sender * Let exported signals be emitted from a variable object-path
* Fix fd.o #10174: make it possible to return multiple values with no signature.Simon McVittie2007-04-242-0/+11
| | | | | | | | | | | | | | | | | | More specifically: when a service method with no signature synchronously returns a tuple that is not a Struct, interpret it as a multi-valued return, rather than as a structure. This is a common Python idiom, and returning a struct makes little sense anyway when D-Bus lets you return multiple values. Returned lists are still interpreted as arrays - returning an array is entirely sensible, and indeed likely to be common. Async service methods are unaffected (there is no ambiguity), and it's still possible to return a structure by returning a dbus.Struct with appropriate contents. https://bugs.freedesktop.org/show_bug.cgi?id=10174
* test/test-service.py: use a constant for the interface name, for claritySimon McVittie2007-04-241-20/+23
|
* test/run-with-tmp-session-bus.sh: untabify, remove trailing whitespaceSimon McVittie2007-04-241-4/+4
|
* test/test-client.py: untabifySimon McVittie2007-04-241-8/+8
|
* Actually commit the numerous copyright-statement changes.Simon McVittie2007-02-074-16/+16
|
* test/, include/: remove accidentally duplicated lines from license statementSimon McVittie2007-01-257-14/+0
|
* Split up Makefile.am between subdirectoriesSimon McVittie2007-01-221-0/+44
| | | | | | As well as being conventional, this seems to be necessary to avoid having dbus_py_test.so installed, while still having it be a Libtool shared library (noinst libraries are helpfully made static).
* Add regression test for main loop failure handling (a main loop that never ↵Simon McVittie2007-01-163-0/+124
| | | | | | | works) Also run tests with DBUS_FATAL_WARNINGS and ulimit -c unlimited so they dump core at the slightest provocation.
* Ensure we put the right number of items in a struct or message and add test ↵Simon McVittie2007-01-161-1/+43
| | | | | | | | | | | cases. This avoids us getting kicked off the bus when trying to put the wrong number of things in a struct - this used to happen, but was masked by the fact that the tests ran with service activation, so the service was just killed and reactivated. Forthcoming changes to get_object make this automatic reactivation not happen (messages will be directed to the unique name by default, so stateful communication can work).
* test/run-test.sh: Re-order to run the simpler tests (standalone, examples, ↵Simon McVittie2007-01-161-16/+18
| | | | cross tests) first
* Comment on why we're putting the client at path /TestSimon McVittie2007-01-161-0/+2
|
* Add special case to serialization: objects with a __dbus_object_path__ ↵Simon McVittie2007-01-101-0/+15
| | | | attribute are serialized as that object path. Add that attribute to ProxyObject, dbus.Interface and dbus.service.Object.
* When putting a ByteArray into a variant array, serialise it as an array of ↵Simon McVittie2007-01-091-1/+2
| | | | variants containing byte, not an array of variants containing string
* dbus.Interface, dbus.ProxyObject: add get_dbus_method(), which can be used ↵Simon McVittie2007-01-091-0/+4
| | | | to call awkwardly-named methods like __getattr__
* Add an example of asynchronous calls. Run the examples during 'make check'.Simon McVittie2007-01-091-0/+13
|
* Include the cross-test in 'make check'Simon McVittie2006-12-191-0/+30
|
* Respect utf8_strings, byte_arrays options when calling methods asynchronously.Simon McVittie2006-12-191-9/+29
| | | | Also make it possible to fail the async call tests in test-client, and add a test case for utf8_strings in async use.
* Do cross-product of options in more obvious waySimon McVittie2006-12-191-12/+13
|
* Switch to autotools and test with Python 2.5 as well as 2.4.Simon McVittie2006-12-188-48/+122
| | | | | | | | | | | | | | In the process: HACKING.txt: update include/dbus-python.h: add some typedefs to make it saner bus.c, conn.c, conn-methods.c: further alter docstrings to keep epydoc happy exceptions.c: create exceptions in a more longwinded way for Python 2.5 compatibility message-get-args.c, bus/__init__.py: tweak docstrings dbus/introspect_parser.py: make docstring valid reStructuredText run-test.sh: simplify, since configure now does some of the work test/*.py: use paths from run-test.sh, cope with out-of-tree builds test-standalone.py: carry out additional sanity checks
* test/test-client.py: Add test case for weak reference logic (which would ↵Simon McVittie2006-12-131-0/+10
| | | | segfault on 0.80rc1)
* Stop asserting that dbus.Struct(()) worksSimon McVittie2006-12-051-2/+2
|