summaryrefslogtreecommitdiff
path: root/test/run-test.sh
Commit message (Collapse)AuthorAgeFilesLines
* Add clearer licensing information in SPDX formatSimon McVittie2019-07-151-0/+2
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* Use TAP syntax for all directly-run testsSimon McVittie2016-08-111-39/+48
| | | | | | | For now this means that skipped tests will be reported as passed. This will be corrected in the next commit. Signed-off-by: Simon McVittie <smcv@debian.org>
* run-test: avoid "test: =: unary operator expected"Simon McVittie2016-03-051-2/+3
| | | | Signed-off-by: Simon McVittie <smcv@debian.org>
* Replace hard-coded sleep with a wait for the D-Bus name to appearSimon McVittie2016-01-201-6/+13
|
* Use non-recursive make for tests, and make them into installed-testsSimon McVittie2016-01-201-15/+33
|
* Simplify testing by using dbus-run-session and Automake "log compiler"Simon McVittie2015-12-061-75/+29
| | | | | | | Fall back to Telepathy's old with-session-bus.sh script if dbus doesn't have dbus-run-session (versions < 1.8). Also run most of the tests individually, instead of under run-test.sh.
* Add support for skipping tests, and use itSimon McVittie2013-05-081-9/+28
| | | | | Now that Python 2.6 isn't a supported version in Debian, it doesn't get a gi module, but we can still get some minimal test coverage.
* Support unicode messages for DBusException in Python 2Michael Vogt2012-10-161-0/+6
| | | | | | [commit message amended -smcv] Bug: https://bugs.freedesktop.org/show_bug.cgi?id=55899 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
* run-test.sh: don't go via make to run the cross-testSimon McVittie2012-07-041-2/+2
| | | | | | Based on a patch from Christoph Höger. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=51725
* More Python 3 porting, this time primarily to get test-client.py working.Barry Warsaw2011-12-161-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | Changes include: - DBusException.get_dbus_message(): In Python 3, the str of the exception will already be a unicode, so don't try to decode it unless it's a bytes object (a.k.a. 8-bit str in Python 2). - gobject_service.py: Switch to pygi and rewrite the metaclass instantiation code to be portable between Python 2 and Python 3. - run-test.sh: echo a few more useful environment variables - test-client.py: - Globally replace deprecated assertEquals with assertEqual - Globally replace deprecated assert_ with assertTrue - Use bytes objects for both 'ay' signatured methods on the server - AcceptUnicodeString will return a native unicode, i.e. a str in Python 3 and a unicode in Python 2. Python 3 has no `unicode` built-in. - Reformat some long lines for debugging. - test-service.py: - Open the log file in 'a' mode for easier tailing. - AcceptUnicodeString will return a native unicode, i.e. a str in Python 3 and a unicode in Python 2. Python 3 has no `unicode` built-in. - reformat some long lines for debugging. - Put module-scope code into a main() function and add a bunch of logger output for better debugging. `session_bus` must still be global though. Wrap main() in a bit try/except to log all top-level exceptions.
* Re-enable the other tests, even though these still fail for me (b.f.o #43303).Barry Warsaw2011-12-161-6/+6
| | | | Fix another except syntax problem.
* - Added back the missing PY3PORT.rst file, with updates.Barry Warsaw2011-12-151-0/+1
| | | | | | | - Disallow appending unicode objects with 'y' (bytes) signatures. This now requires either a bytes object or an integer. Update the tests to reflect - this change. - Fix broken __all__ in Python 3.
* This is the big one; it adds Python 3 support.Barry Warsaw2011-12-151-6/+8
|
* Use MIT/X11 license as per permission given on the dbus mailing list.Simon McVittie2007-10-091-0/+20
| | | | | | | | | | | 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-091-0/+3
|
* Implement fallback objects.Simon McVittie2007-06-181-0/+3
| | | | | | | | 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.
* Don't run the examples during "make check" - timing/startup issues cause ↵Simon McVittie2007-05-091-12/+12
| | | | intermittent failures
* test/test-p2p.py: Added. Test "peer-to-peer" connections.Simon McVittie2007-04-301-0/+3
| | | | | (Actually tested by connecting to the bus daemon, because I haven't implemented a Python binding for DBusServer yet.)
* Add regression test for main loop failure handling (a main loop that never ↵Simon McVittie2007-01-161-0/+6
| | | | | | | works) Also run tests with DBUS_FATAL_WARNINGS and ulimit -c unlimited so they dump core at the slightest provocation.
* test/run-test.sh: Re-order to run the simpler tests (standalone, examples, ↵Simon McVittie2007-01-161-16/+18
| | | | cross tests) first
* 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
|
* Switch to autotools and test with Python 2.5 as well as 2.4.Simon McVittie2006-12-181-20/+23
| | | | | | | | | | | | | | 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-signals.py: add test case for signal handling; test/run-test.sh: ↵Simon McVittie2006-12-041-0/+3
| | | | run test-signals.
* Update tests for the new variant APISimon McVittie2006-11-141-2/+2
|
* Throughout dbus-python: Use the C implementation.Simon McVittie2006-09-261-1/+2
| | | | | | Add document API_CHANGES.txt listing visible API changes. Add more test cases, for low-level Python <-> D-Bus type mappings. Amend existing test cases to cope with the API changes.
* * Patch from Joseph Sacco <joseph_sacco [at] comcast [dot] net>:John (J5) Palmieri2006-07-241-1/+0
| | | | Export the correct cflags in distutils
* * run-test.sh:John (J5) Palmieri2006-07-121-9/+8
| | | | create the .service file before we launch dbus
* * Add tests backJohn (J5) Palmieri2006-07-121-0/+39
* create a check command for distutils (python setup.py check)