summaryrefslogtreecommitdiff
path: root/tests/dbus
Commit message (Collapse)AuthorAgeFilesLines
* Use the Automake "parallel-tests" driver, albeit in non-parallel modeSimon McVittie2013-11-071-9/+14
| | | | | | | | | | | | | | | | | | | | This seems perverse, but it means we invoke tests in the same way I want to use for other Telepathy projects, which will help when we want to merge their source trees together. Now that we can rely on having the parallel-tests setup, we can use AM_TESTS_ENVIRONMENT instead of TESTS_ENVIRONMENT (which is now reserved for the user, like CFLAGS), and we must use LOG_COMPILER rather than TESTS_ENVIRONMENT for "adverb" command prefixes. We no longer need to use test-wrapper.sh for the tests, because Automake has similar functionality built-in. On a buildbot or similar, use "make check VERBOSE=1" to cat the logs automatically. (cherry picked from commit 09ff23c267f2b90576cb79c8d3187eda6cb435c8) Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=71100
* Use AC_PROG_MKDIR_P, MKDIR_P instead of deprecated AM_PROG_MKDIR_P, mkdir_pSimon McVittie2013-11-071-1/+1
| | | | | | | | | Similar to MC commit 04dd9b4. (cherry picked from commit 6b05f8f7b39b2dd77f4e71447a633b568cb1311c) Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=71100
* test-tpl-log-store: test end reasonsGuillaume Desmottes2013-09-301-0/+15
|
* move tp_tests_copy_dir() to logger-test-helperGuillaume Desmottes2013-09-271-0/+1
| | | | | This function is logger specific so best to have it in this file. Makes syncing with tp-glib easier.
* stop using tp_account_is_prepared()Guillaume Desmottes2013-09-272-4/+2
|
* include telepathy-glib-dbus.hGuillaume Desmottes2013-09-273-0/+3
| | | | Not needed for now but will be for 1.0
* Prepare TpAccount if neededGuillaume Desmottes2013-09-271-0/+45
| | | | | | | Make sure that the TpAccount we receive from public API is prepared as more and more API are relying on it. https://bugs.freedesktop.org/show_bug.cgi?id=69814
* use account's normalized name instead of its account idGuillaume Desmottes2013-09-271-2/+4
| | | | | | It doesn't make sense to use the account opaque ID as 'self id'. Fix fdo#69814.
* tests/dbus/test-tpl-log-iters-xml: use tpl_test_create_and_prepare_account()Guillaume Desmottes2013-09-271-7/+22
| | | | | | This test will rely on the TpAccount to be prepared soon. https://bugs.freedesktop.org/show_bug.cgi?id=69814
* tests/dbus/test-tpl-log-store-xml: use tpl_test_create_and_prepare_account()Guillaume Desmottes2013-09-271-18/+38
| | | | | | This test will rely on the TpAccount to be prepared soon. https://bugs.freedesktop.org/show_bug.cgi?id=69814
* fix tp-glib single headersGuillaume Desmottes2013-09-253-3/+3
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=69797
* test-entity: stop using tp_connection_get_contacts_by_handle()Guillaume Desmottes2013-09-251-31/+29
| | | | | | It has been deprecated. https://bugs.freedesktop.org/show_bug.cgi?id=69797
* stop using tp_account_new()Guillaume Desmottes2013-09-254-23/+47
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=69797
* test-log-manager: make sure to pass a (gint64) as timestampGuillaume Desmottes2013-09-231-2/+2
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=69715
* Make log-manager tests writableDan Vrátil2013-04-082-23/+35
|
* Add ignore list capabilityDan Vrátil2013-04-041-0/+149
| | | | | | This allow disabling logging for a specific contact. Fix bug https://bugs.freedesktop.org/show_bug.cgi?id=54033
* tests: Add a test for log-walker/rewindDebarshi Ray2013-01-091-0/+35
| | | | | | ... to cover the use of a filter. Fixes: https://bugs.freedesktop.org/54270
* tests: Add a test for log-walker/get-eventsDebarshi Ray2013-01-091-0/+41
| | | | | | ... to cover the use of a filter. Fixes: https://bugs.freedesktop.org/54270
* log-walker: Run the filter synchronously in the walkerDebarshi Ray2013-01-092-6/+6
| | | | | | | | | | This ensures that the TplLogEventFilter is always run from the same thread which invoked the walker. This is implemented by keeping track of skipped events in the history instead of silently ignoring them within the LogIters. This has the nice side effect that we do not need to run the filter while rewinding. Fixes: https://bugs.freedesktop.org/54270
* Include config.h as the first thing in every .c fileDebarshi Ray2013-01-097-0/+17
| | | | | | | | | | | This is Autoconf best-practice, and ensures that the GLib and Telepathy version-selection macros defined by configure.ac work as intended. Including config.h turns on ENABLE_DEBUG, which in turn leads to the usage of _tpl_debug_set_flags_from_env. In those cases we should include telepathy-logger/debug-internal.h also. Fixes: https://bugs.freedesktop.org/59165
* Make TplLogStore:name immutable.Will Thompson2012-09-254-9/+3
| | | | | | For all log stores except the Xml one, this is always set to the same thing. For the Xml one, the name of the store depends entirely on the value of empathy-legacy.
* TplLogStore: make :readable property immutableWill Thompson2012-09-251-1/+0
| | | | | Again, it's meaningless to have this be a writeable construct-only property—a store is either readable or it's not.
* TplLogStore: remove writable property.Will Thompson2012-09-251-1/+0
| | | | | | This property was defined by the interface to be readwrite, but this doesn't make any sense: if the object implements the add_event method, then it is writable, and if not, it doesn't.
* tests: Add a test for log-walker/rewindDebarshi Ray2012-08-281-0/+90
| | | | | | | ... to cover events coming from multiple stores spanning several days where multiple events might have the same timestamp. Fixes: https://bugs.freedesktop.org/41772
* tests: Add a test for log-walker/get-eventsDebarshi Ray2012-08-282-0/+294
| | | | | | | ... to cover events coming from multiple stores spanning several days where multiple events might have the same timestamp. Fixes: https://bugs.freedesktop.org/41772
* tests: Add new TpLogger and purple logs to flex the TplLogWalkerDebarshi Ray2012-08-281-2/+7
| | | | | | | The actual test case will be added later. Existing test cases have been adjusted accordingly. Fixes: https://bugs.freedesktop.org/41772
* tests: Add a test for log-iter-pidgin/rewindDebarshi Ray2012-08-281-0/+270
| | | | | | ... to cover text events spanning multiple days. Fixes: https://bugs.freedesktop.org/41772
* tests: Add a test for log-iter-pidgin/get-eventsDebarshi Ray2012-08-282-0/+577
| | | | | | ... to cover text events spanning multiple days. Fixes: https://bugs.freedesktop.org/41772
* tests: Add a test for log-iter-xml/rewindDebarshi Ray2012-08-281-0/+195
| | | | | | | ... to cover text events spanning multiple days, and a mix of call and text events. Fixes: https://bugs.freedesktop.org/41772
* tests: Add a test for log-iter-xml/get-eventsDebarshi Ray2012-08-282-0/+234
| | | | | | | ... to cover text events spanning multiple days, and a mix of call and text events. Fixes: https://bugs.freedesktop.org/41772
* Stop using TplChannelFactory, reply on TplClientFactory insteadXavier Claessens2012-07-041-16/+1
| | | | | Give a TplClientFactory to the TplObserver, so we get already prepared TplTextChannel and TplCallChannel subclasses.
* add missing config.h includesGuillaume Desmottes2012-06-052-0/+4
|
* Port TplCallChannel to Call1 APINicolas Dufresne2012-03-281-6/+4
| | | | | This include a API break in the unstable Call code. Code using the unstable call log feature will need porting.
* Fix observer singleton and select featuresNicolas Dufresne2011-10-141-2/+2
|
* test_add_superseding_event: add some edit timestampsDavid Laban2011-05-261-3/+14
| | | | They should be preserved, but shouldn't affect how events are processed.
* Revert "Update tests to use original-timestamp"David Laban2011-05-261-9/+5
| | | | This reverts commit 31411d5c9d19678ff862e07c508ff3cf78cbf40a.
* Merge branch 'fix-insert-after'Nicolas Dufresne2011-05-262-18/+47
|\
| * Test case where first call is older then any textNicolas Dufresne2011-05-262-3/+29
| |
| * Add comment to explain a bit the testsNicolas Dufresne2011-05-261-0/+4
| |
| * Fixed initial call event_queue_insert_sorted_after()Nicolas Dufresne2011-05-261-15/+16
| | | | | | | | The current code would always insert after the first element.
| * Fixed initialised but unused warningNicolas Dufresne2011-05-261-3/+1
| |
* | Add a testcase for bug #37288Emilio Pozuelo Monfort2011-05-261-0/+23
|/
* Fix warn not checking system() return valueNicolas Dufresne2011-05-251-1/+4
|
* Update tests to use original-timestampDavid Laban2011-05-241-5/+9
|
* text-event: s/dup_supersedes/get_supersedes/David Laban2011-05-241-11/+5
| | | | | | Copying and freeing lists of events is a waste of time. Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
* fixup! fixup! Test message edits that have broken timestampsDavid Laban2011-05-191-9/+9
| | | | cast to GFunc
* fixup! fixup! Add tests to cover messages arriving a bit/a lot lateDavid Laban2011-05-191-2/+2
| | | | cast to GFunc
* fixup! Test message edits that have broken timestampsDavid Laban2011-05-191-9/+22
| | | | | Note that this also fixes something from "test_add_superseding_event" but rebasing to fix that would cause conflicts so I'm not going to.
* fixup! Add tests to cover messages arriving a bit/a lot lateDavid Laban2011-05-191-2/+4
|
* Test message edits that have broken timestampsDavid Laban2011-05-181-3/+80
| | | | | Note that the timestamps on edits should be that of the original message if possible.