summaryrefslogtreecommitdiff
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-28log-iter-xml: Fix crash when logs are corrupted or invalid XMLDebarshi Ray1-1/+5
Chances of _tpl_log_store_get_events_for_date returning NULL due to an invalid XML file are lower because we ask libxml2 (since commit 734af80691) to recover from errors if possible. Even then, it doesn't hurt to defend against this eventuality. Thanks to Daniel Thompson for catching this! https://bugs.freedesktop.org/show_bug.cgi?id=89595
2015-04-20tests: Add a test for log-iter-xml/get-eventsDebarshi Ray2-2/+47
... 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
2014-03-18logger: fix several string and date leaksSimon McVittie2-2/+13
Reviewed-by: Guillaume Desmottes (cherry picked from commit a4103cf87192a7e57d1b762438f53cef3c3e61fa)
2014-03-03use tp_message_get_pending_message_id()Guillaume Desmottes1-14/+7
2014-01-05Ask libxml2 to recover from errors of possibleSjoerd Simons1-1/+1
Let libxml2 try and recover on parse error instead to avoid crashes in case logs can't be parsed fully. Works around https://bugs.freedesktop.org/show_bug.cgi?id=40675
2013-11-07Replace deprecated INCLUDES with AM_CPPFLAGSSimon McVittie1-2/+2
(cherry picked from commit 87b42a1950b66a9f1ecec70566c60e4caafd7198) Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=71100
2013-11-07Use subdir-objects (compile a/b.c to a/b.lo, not ./b.lo)Simon McVittie1-1/+1
Automake 2 will make this the default, and 1.14 warns about not using it. Equivalent to MC commit 1f11065. (cherry picked from commit 9bde9a0b3cf6e1971705308ca2cba5cdcd0cd9b2) Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=71100
2013-11-07Use the Automake "parallel-tests" driver, albeit in non-parallel modeSimon McVittie3-14/+21
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 McVittie3-4/+4
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-11-07Put Autoconf, Automake, Libtool droppings in /build-auxSimon McVittie2-1/+2
Equivalent to MC commit c3cba93. (cherry picked from commit 38a9c206d9fc3b8b778788440c92020268a1b955) Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=71100
2013-11-07Fix out-of-tree documentation buildingSimon McVittie1-1/+1
(cherry picked from commit a1447182c813cd44a3a354069890331d3cb54329) Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=71100
2013-11-07autogen.sh: don't override Automake versionSimon McVittie1-14/+0
We now require 1.12, so explicitly selecting 1.11 makes no sense. (cherry picked from commit 0d3328321b5533e98fc6dd501f439fcaf7aca534) Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=71100 Bug: https://bugs.freedesktop.org/show_bug.cgi?id=70269
2013-09-30log-store-xml: fix reason leaksGuillaume Desmottes1-0/+2
2013-09-30test-tpl-log-store: test end reasonsGuillaume Desmottes1-0/+15
2013-09-30log-store-pidgin: keep a ref on the account managerGuillaume Desmottes1-6/+10
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-27stop using NUM_TP_*Guillaume Desmottes1-1/+1
2013-09-27include telepathy-glib-dbus.hGuillaume Desmottes9-0/+9
Not needed for now but will be for 1.0
2013-09-27Prepare TpAccount if neededGuillaume Desmottes2-1/+104
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-27log-manager: factor out start_async_op_in_thread()Guillaume Desmottes1-10/+13
https://bugs.freedesktop.org/show_bug.cgi?id=69814
2013-09-27use account's normalized name instead of its account idGuillaume Desmottes2-31/+17
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-27text-event: chain up disposeGuillaume Desmottes1-0/+2
2013-09-26build with TP_DISABLE_SINGLE_INCLUDEGuillaume Desmottes1-0/+1
https://bugs.freedesktop.org/show_bug.cgi?id=69846
2013-09-26stop using tp-glib sealed variablesGuillaume Desmottes3-6/+5
https://bugs.freedesktop.org/show_bug.cgi?id=69846
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 Desmottes4-4/+3
https://bugs.freedesktop.org/show_bug.cgi?id=69797
2013-09-25stop building test-apiGuillaume Desmottes2-8/+1
It's usless and should be ported to GDBus. https://bugs.freedesktop.org/show_bug.cgi?id=69797
2013-09-25bump TP_VERSION_MIN_REQUIRED to 0.22Guillaume Desmottes1-1/+1
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-25bump tp-glib dep to 0.21.2Guillaume Desmottes1-2/+2
Needed for tp_dbus_properties_mixin_dup_all() which I'm going to use in tests. https://bugs.freedesktop.org/show_bug.cgi?id=69797
2013-09-25stop using tp_account_new()Guillaume Desmottes5-25/+60
https://bugs.freedesktop.org/show_bug.cgi?id=69797
2013-09-25client-factory: turn to a singletonGuillaume Desmottes3-3/+19
https://bugs.freedesktop.org/show_bug.cgi?id=69797
2013-09-25ignore deprecation warning when calling tp_account_parse_object_path()Guillaume Desmottes1-0/+3
It's not that clear how to fix this for now. https://bugs.freedesktop.org/show_bug.cgi?id=69797
2013-09-25stop using tp_text_channel_get_pending_messages()Guillaume Desmottes1-2/+2
https://bugs.freedesktop.org/show_bug.cgi?id=69797
2013-09-25stop using tp_account_manager_get_valid_accounts()Guillaume Desmottes3-5/+5
The code example in log-walker.c was wrong as get_valid_accounts() is (transfer container). dup_valid_accounts() is (transfer full) so it's correct now. https://bugs.freedesktop.org/show_bug.cgi?id=69797
2013-09-25stop using tp_account_get_protocol()Guillaume Desmottes1-2/+2
https://bugs.freedesktop.org/show_bug.cgi?id=69797
2013-09-25use tp_channel_get_connection()Guillaume Desmottes2-2/+2
tp_channel_borrow_connection has been deprecated. https://bugs.freedesktop.org/show_bug.cgi?id=69797
2013-09-25sync tools/ with tp-glib masterGuillaume Desmottes17-138/+165
Needed to stop using deprecated API in generated code. https://bugs.freedesktop.org/show_bug.cgi?id=69797
2013-09-25bump GLib dep and use versioning macrosGuillaume Desmottes1-8/+4
Set to 2.32 as tp-glib so we can safely use newer API. Also, stop disabling single include warnings. https://bugs.freedesktop.org/show_bug.cgi?id=69797
2013-09-23tpl_log_manager_search_async: fix introspectionGuillaume Desmottes1-1/+1
https://bugs.freedesktop.org/show_bug.cgi?id=69715
2013-09-23sqlite: deal with g_date_time_new_from_unix_utc() failingGuillaume Desmottes1-0/+1
https://bugs.freedesktop.org/show_bug.cgi?id=69715
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