summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2016-07-22tests: Rename function to avoid conflict with stdio.hHEADmasterMichael Catanzaro1-26/+26
I guess stdio.h is being included somewhere it previously wasn't by some header file somewhere. https://bugs.freedesktop.org/show_bug.cgi?id=97034
2015-04-20tests: Add a test for log-iter-xml/get-eventsDebarshi Ray1-1/+45
... to cover files with invalid XML. Since WARNINGs interfere with the test, we suppress them when testmode is on. https://bugs.freedesktop.org/show_bug.cgi?id=40675 https://bugs.freedesktop.org/show_bug.cgi?id=89595
2015-04-20tests: Add new TpLogger logs that don't parse as XMLDebarshi Ray5-2/+19
This is meant to flex the error handling code paths. https://bugs.freedesktop.org/show_bug.cgi?id=40675 https://bugs.freedesktop.org/show_bug.cgi?id=89595
2013-11-07Use the Automake "parallel-tests" driver, albeit in non-parallel modeSimon McVittie2-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
2013-11-07Use AC_PROG_MKDIR_P, MKDIR_P instead of deprecated AM_PROG_MKDIR_P, mkdir_pSimon McVittie1-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
2013-11-07Distribute debug.h, fixing distcheckSimon McVittie1-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
2013-09-30test-tpl-log-store: test end reasonsGuillaume Desmottes1-0/+15
2013-09-27move tp_tests_copy_dir() to logger-test-helperGuillaume Desmottes5-22/+25
This function is logger specific so best to have it in this file. Makes syncing with tp-glib easier.
2013-09-27stop using tp_account_is_prepared()Guillaume Desmottes2-4/+2
2013-09-27include telepathy-glib-dbus.hGuillaume Desmottes3-0/+3
Not needed for now but will be for 1.0
2013-09-27Prepare TpAccount if neededGuillaume Desmottes1-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
2013-09-27use account's normalized name instead of its account idGuillaume Desmottes1-2/+4
It doesn't make sense to use the account opaque ID as 'self id'. Fix fdo#69814.
2013-09-27tests/dbus/test-tpl-log-iters-xml: use tpl_test_create_and_prepare_account()Guillaume Desmottes1-7/+22
This test will rely on the TpAccount to be prepared soon. https://bugs.freedesktop.org/show_bug.cgi?id=69814
2013-09-27tests/dbus/test-tpl-log-store-xml: use tpl_test_create_and_prepare_account()Guillaume Desmottes1-18/+38
This test will rely on the TpAccount to be prepared soon. https://bugs.freedesktop.org/show_bug.cgi?id=69814
2013-09-27add logger-test-helper.cGuillaume Desmottes3-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
2013-09-26tests/lib: sync with tp-glib masterGuillaume Desmottes18-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
2013-09-25fix tp-glib single headersGuillaume Desmottes3-3/+3
https://bugs.freedesktop.org/show_bug.cgi?id=69797
2013-09-25test-entity: stop using tp_connection_get_contacts_by_handle()Guillaume Desmottes1-31/+29
It has been deprecated. https://bugs.freedesktop.org/show_bug.cgi?id=69797
2013-09-25tests/lib: sync with tp-glib masterGuillaume Desmottes8-98/+777
Add room-list-chan.c as it's used by simple-conn. https://bugs.freedesktop.org/show_bug.cgi?id=69797
2013-09-25stop using tp_account_new()Guillaume Desmottes4-23/+47
https://bugs.freedesktop.org/show_bug.cgi?id=69797
2013-09-23test-log-manager: make sure to pass a (gint64) as timestampGuillaume Desmottes1-2/+2
https://bugs.freedesktop.org/show_bug.cgi?id=69715
2013-04-08Make log-manager tests writableDan Vrátil4-23/+58
2013-04-04Add ignore list capabilityDan Vrátil1-0/+149
This allow disabling logging for a specific contact. Fix bug https://bugs.freedesktop.org/show_bug.cgi?id=54033
2013-01-09tests: Add a test for log-walker/rewindDebarshi Ray1-0/+35
... to cover the use of a filter. Fixes: https://bugs.freedesktop.org/54270
2013-01-09tests: Add a test for log-walker/get-eventsDebarshi Ray1-0/+41
... to cover the use of a filter. Fixes: https://bugs.freedesktop.org/54270
2013-01-09log-walker: Run the filter synchronously in the walkerDebarshi Ray2-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
2013-01-09Include config.h as the first thing in every .c fileDebarshi Ray10-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
2012-09-25Make TplLogStore:name immutable.Will Thompson4-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.
2012-09-25TplLogStore: make :readable property immutableWill Thompson1-1/+0
Again, it's meaningless to have this be a writeable construct-only property—a store is either readable or it's not.
2012-09-25TplLogStore: remove writable property.Will Thompson1-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.
2012-08-28Add missing valgrind suppressionNicolas Dufresne1-0/+7
2012-08-28tests: Add a test for log-walker/rewindDebarshi Ray1-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
2012-08-28tests: Add a test for log-walker/get-eventsDebarshi Ray2-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
2012-08-28tests: Add new TpLogger and purple logs to flex the TplLogWalkerDebarshi Ray7-2/+70
The actual test case will be added later. Existing test cases have been adjusted accordingly. Fixes: https://bugs.freedesktop.org/41772
2012-08-28tests: Add a test for log-iter-pidgin/rewindDebarshi Ray1-0/+270
... to cover text events spanning multiple days. Fixes: https://bugs.freedesktop.org/41772
2012-08-28tests: Add a test for log-iter-pidgin/get-eventsDebarshi Ray2-0/+577
... to cover text events spanning multiple days. Fixes: https://bugs.freedesktop.org/41772
2012-08-28tests: Add a test for log-iter-xml/rewindDebarshi Ray1-0/+195
... to cover text events spanning multiple days, and a mix of call and text events. Fixes: https://bugs.freedesktop.org/41772
2012-08-28tests: Add a test for log-iter-xml/get-eventsDebarshi Ray2-0/+234
... to cover text events spanning multiple days, and a mix of call and text events. Fixes: https://bugs.freedesktop.org/41772
2012-07-04Stop using TplChannelFactory, reply on TplClientFactory insteadXavier Claessens1-16/+1
Give a TplClientFactory to the TplObserver, so we get already prepared TplTextChannel and TplCallChannel subclasses.
2012-06-05add missing config.h includesGuillaume Desmottes5-0/+10
2012-06-05simple-conn: use TP_ERROR instead of TP_ERRORSGuillaume Desmottes1-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
2012-03-28Port TplCallChannel to Call1 APINicolas Dufresne1-6/+4
This include a API break in the unstable Call code. Code using the unstable call log feature will need porting.
2012-02-14add missing config.hGuillaume Desmottes1-0/+2
2011-11-18Replace g_ptr_array_free with g_ptr_array_unrefCosimo Alfarano1-1/+1
2011-11-18Replace g_hash_table_destroy with g_hash_table_unrefCosimo Alfarano1-15/+15
2011-10-14Fix observer singleton and select featuresNicolas Dufresne1-2/+2
2011-05-26test_add_superseding_event: add some edit timestampsDavid Laban1-3/+14
They should be preserved, but shouldn't affect how events are processed.
2011-05-26Revert "Update tests to use original-timestamp"David Laban1-9/+5
This reverts commit 31411d5c9d19678ff862e07c508ff3cf78cbf40a.
2011-05-26Merge branch 'fix-insert-after'Nicolas Dufresne4-18/+57
2011-05-26Add a testcase for bug #37288Emilio Pozuelo Monfort1-0/+23