summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Use the Automake "parallel-tests" driver, albeit in non-parallel modeSimon McVittie2013-11-072-13/+20
| | | | | | | | | | | | | | | | | | | | 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
* Distribute debug.h, fixing distcheckSimon McVittie2013-11-071-0/+1
| | | | | | | | | (cherry picked from commit e9e819e55d914392be94f5c67e34bb227eb15a97) Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=71100 Conflicts: tests/lib/Makefile.am
* test-tpl-log-store: test end reasonsGuillaume Desmottes2013-09-301-0/+15
|
* move tp_tests_copy_dir() to logger-test-helperGuillaume Desmottes2013-09-275-22/+25
| | | | | 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
* add logger-test-helper.cGuillaume Desmottes2013-09-273-1/+105
| | | | | | | | Introduce a new helper file to contain logger test specific helper functions. Add helper function to register and prepare accounts. https://bugs.freedesktop.org/show_bug.cgi?id=69814
* tests/lib: sync with tp-glib masterGuillaume Desmottes2013-09-2618-176/+1651
| | | | | | Adds a few new files used by the new version of the files we are using. https://bugs.freedesktop.org/show_bug.cgi?id=69846
* 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
* tests/lib: sync with tp-glib masterGuillaume Desmottes2013-09-258-98/+777
| | | | | | Add room-list-chan.c as it's used by simple-conn. 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-084-23/+58
|
* 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-0910-0/+23
| | | | | | | | | | | 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.
* Add missing valgrind suppressionNicolas Dufresne2012-08-281-0/+7
|
* 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-287-2/+70
| | | | | | | 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-055-0/+10
|
* simple-conn: use TP_ERROR instead of TP_ERRORSGuillaume Desmottes2012-06-051-2/+2
| | | | | The latter has been deprecated. Ideally we should sync this file from tp-glib but the current version depends on tp-glib 0.19.x
* 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.
* add missing config.hGuillaume Desmottes2012-02-141-0/+2
|
* Replace g_ptr_array_free with g_ptr_array_unrefCosimo Alfarano2011-11-181-1/+1
|
* Replace g_hash_table_destroy with g_hash_table_unrefCosimo Alfarano2011-11-181-15/+15
|
* 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-264-18/+57
|\
| * Test case where first call is older then any textNicolas Dufresne2011-05-264-3/+39
| |
| * 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
| |