summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* tests: Rename function to avoid conflict with stdio.hHEADmasterMichael Catanzaro2016-07-221-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
* log-iter-xml: Fix crash when logs are corrupted or invalid XMLDebarshi Ray2015-04-281-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
* tests: Add a test for log-iter-xml/get-eventsDebarshi Ray2015-04-202-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
* tests: Add new TpLogger logs that don't parse as XMLDebarshi Ray2015-04-205-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
* logger: fix several string and date leaksSimon McVittie2014-03-182-2/+13
| | | | | Reviewed-by: Guillaume Desmottes (cherry picked from commit a4103cf87192a7e57d1b762438f53cef3c3e61fa)
* use tp_message_get_pending_message_id()Guillaume Desmottes2014-03-031-14/+7
|
* Ask libxml2 to recover from errors of possibleSjoerd Simons2014-01-051-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
* Replace deprecated INCLUDES with AM_CPPFLAGSSimon McVittie2013-11-071-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
* Use subdir-objects (compile a/b.c to a/b.lo, not ./b.lo)Simon McVittie2013-11-071-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
* Use the Automake "parallel-tests" driver, albeit in non-parallel modeSimon McVittie2013-11-073-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
* Use AC_PROG_MKDIR_P, MKDIR_P instead of deprecated AM_PROG_MKDIR_P, mkdir_pSimon McVittie2013-11-073-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
* 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
* Put Autoconf, Automake, Libtool droppings in /build-auxSimon McVittie2013-11-072-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
* Fix out-of-tree documentation buildingSimon McVittie2013-11-071-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
* autogen.sh: don't override Automake versionSimon McVittie2013-11-071-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
* log-store-xml: fix reason leaksGuillaume Desmottes2013-09-301-0/+2
|
* test-tpl-log-store: test end reasonsGuillaume Desmottes2013-09-301-0/+15
|
* log-store-pidgin: keep a ref on the account managerGuillaume Desmottes2013-09-301-6/+10
|
* 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
|
* stop using NUM_TP_*Guillaume Desmottes2013-09-271-1/+1
|
* include telepathy-glib-dbus.hGuillaume Desmottes2013-09-279-0/+9
| | | | Not needed for now but will be for 1.0
* Prepare TpAccount if neededGuillaume Desmottes2013-09-272-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
* log-manager: factor out start_async_op_in_thread()Guillaume Desmottes2013-09-271-10/+13
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=69814
* use account's normalized name instead of its account idGuillaume Desmottes2013-09-272-31/+17
| | | | | | 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
* text-event: chain up disposeGuillaume Desmottes2013-09-271-0/+2
|
* build with TP_DISABLE_SINGLE_INCLUDEGuillaume Desmottes2013-09-261-0/+1
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=69846
* stop using tp-glib sealed variablesGuillaume Desmottes2013-09-263-6/+5
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=69846
* 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-254-4/+3
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=69797
* stop building test-apiGuillaume Desmottes2013-09-252-8/+1
| | | | | | It's usless and should be ported to GDBus. https://bugs.freedesktop.org/show_bug.cgi?id=69797
* bump TP_VERSION_MIN_REQUIRED to 0.22Guillaume Desmottes2013-09-251-1/+1
| | | | 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
* bump tp-glib dep to 0.21.2Guillaume Desmottes2013-09-251-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
* stop using tp_account_new()Guillaume Desmottes2013-09-255-25/+60
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=69797
* client-factory: turn to a singletonGuillaume Desmottes2013-09-253-3/+19
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=69797
* ignore deprecation warning when calling tp_account_parse_object_path()Guillaume Desmottes2013-09-251-0/+3
| | | | | | It's not that clear how to fix this for now. https://bugs.freedesktop.org/show_bug.cgi?id=69797
* stop using tp_text_channel_get_pending_messages()Guillaume Desmottes2013-09-251-2/+2
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=69797
* stop using tp_account_manager_get_valid_accounts()Guillaume Desmottes2013-09-253-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
* stop using tp_account_get_protocol()Guillaume Desmottes2013-09-251-2/+2
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=69797
* use tp_channel_get_connection()Guillaume Desmottes2013-09-252-2/+2
| | | | | | tp_channel_borrow_connection has been deprecated. https://bugs.freedesktop.org/show_bug.cgi?id=69797
* sync tools/ with tp-glib masterGuillaume Desmottes2013-09-2517-138/+165
| | | | | | Needed to stop using deprecated API in generated code. https://bugs.freedesktop.org/show_bug.cgi?id=69797
* bump GLib dep and use versioning macrosGuillaume Desmottes2013-09-251-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
* tpl_log_manager_search_async: fix introspectionGuillaume Desmottes2013-09-231-1/+1
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=69715
* sqlite: deal with g_date_time_new_from_unix_utc() failingGuillaume Desmottes2013-09-231-0/+1
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=69715
* 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