summaryrefslogtreecommitdiff
path: root/tests/libtracker-sparql
Commit message (Collapse)AuthorAgeFilesLines
* build: Drop autotoolswip/carlosg/drop-autotoolsCarlos Garnacho2018-09-091-29/+0
|
* meson: Consolite vars used for running tracker-store uninstalledSam Thursfield2018-07-171-2/+2
| | | | | | | | | | | | Most importantly, these are consumed in the tracker-miners.git project so that it can run when built with tracker core as a Meson subproject. This should theoretically allow building tracker-miners on systems that don't have tracker installed at all, although I think some problems remain with doing that. Note that meson.source_root() must never be used in variables that are consumed by a subproject, because in that situation they expand to the root of the *toplevel project* and not the current subproject.
* tests: Turn gb-737023 test into a functional-testSam Thursfield2018-07-163-116/+1
| | | | | | | | | | | | | | | This is really testing the IPC methods, so it should go with the other IPC tests which talk to a real tracker-store instance. Now the test is isolated from the user's real data, as it runs through the functional test-runner.sh script. It does still use the tracker-store from the system rather than the one we just built though, more work is needed there. The test sometimes fails due to the tracker-store disconnecting from it and GDBus triggering a SIGTERM due to the exit-on-close option being enabled on the GDBusConnection. I'm not sure how to fix that, there is an open bug here: https://gitlab.gnome.org/GNOME/tracker/issues/18
* meson: Rework how unit tests are definedSam Thursfield2018-07-151-17/+18
| | | | | | | | Today I discovered that three testcases were being ignored in the Meson buildsystem, all due to mistakes. Now, the first thing in each meson.build file is the list of testcases so mistakes should be much easier to spot.
* meson: Enable gb-737023 testSam Thursfield2018-07-151-1/+1
|
* tests: Fix inconsistent test filenamesSam Thursfield2018-07-153-2/+5
|
* tests: Remove unused queries from tracker-sparql-testCarlos Garnacho2017-10-051-42/+5
| | | | | | Those were unused (the test would stop at the third query), and I couldn't quite figure out why they were added or what they were specifically testing.
* meson: Replace all source_root() and build_root() callsSam Thursfield2017-08-041-2/+2
| | | | | These functions need to be avoided so that Tracker doesn't break when included via subproject() into another Meson project.
* tests: Add missing macros to meson build instructionsCarlos Garnacho2017-07-021-2/+8
| | | | Those were added on autotools, but were forgotten on meson...
* libtracker-common: Add a last resort envvar to load default domain ontologywip/carlosg/domain-ontologiesCarlos Garnacho2017-06-293-1/+10
| | | | | | | This can only be used if the default domain ontology file is not found, and is now used on tests that do rely on the default tracker-store instance. Also, add back the TRACKER_DB_ONTOLOGIES_DIR, under the same restrictions.
* Fixes to Meson build systemSam Thursfield2017-06-241-5/+3
| | | | | | | | | | First, instead of using add_global_arguments() we now use a variable to set global compiler args. It turns out that add_global_arguments() is broken if you ever want to include your project as a subproject of something else. Second, dependencies weren't being specified correctly. These are hopefully now fixed to avoid any more random build failures.
* Distribute meson.build files in tarballs generated by AutotoolsSam Thursfield2017-05-221-0/+2
| | | | | | | This is useful for people who are not building from Git but still want to avoid Autotools. See: https://mail.gnome.org/archives/desktop-devel-list/2017-April/msg00091.html
* Meson build instructions for TrackerSam Thursfield2017-05-221-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | See <http://mesonbuild.com/> for information about Meson. Remaining issues: * There's no `make dist` equivalent. We currently produce release tarballs containing the output files of the Vala compiler. We need to think through whether we can stop doing that. Shipping the generated .c files does make the Vala preprocessor useless so it would be good if we can stop. * The Firefox, Thunderbird, Evolution and Nautilus plugins are not built * https://github.com/mesonbuild/meson/issues/671 -- means we can't depend on tracker_common_dep in most places and have to manually set link_with, include_directories and sources instead. * https://github.com/mesonbuild/meson/issues/1469 -- without this we have to install generated Vala headers using a script * https://github.com/mesonbuild/meson/issues/1229 -- means adding the #include guard to libtracker-sparql/tracker-generated-no-checks.h is a pain * The test suite has some spurious failures. Here's a rough speed comparison. Meson: time sh -c 'meson .. --prefix=/opt/tracker-meson -D bash_completion=/opt/tracker-meson/share/bash-completion -Dsystemd_user_services=/opt/tracker-meson/lib/systemd/user -Ddbus_services=/opt/tracker-meson/share/dbus-1/services && ninja-build -j 4 && ninja-build install' real 1m8.194s user 2m16.962s sys 0m20.532s Autotools: time sh -c './configure --prefix=/opt/tracker-autotools --with-bash-completion-dir=/opt/tracker-autotools/share/bash-completion --with-session-bus-services-dir=/opt/tracker-autotools/share/dbus-1/services --disable-nautilus-extension && make -j 4 && make install' real 2m37.750s user 4m37.214s sys 0m54.806s Plus 30+ seconds of ./autogen.sh first. Note that Meson builds may fail if your source tree has generated files from an Autotools build in there. If you see errors about duplicate definitions, first try cleaning your source tree (use `git clean -dfx`, but make sure you commit any work first!!)
* tests: Avoid horrible hang in test-tracker-resourceSam Thursfield2016-09-031-1/+3
| | | | | | | Seems that missing the 'return' statement from a g_test_trap_subprocess() block can result in hanging Linux completely; some kind of fork bomb I guess. The problem only hits when the test is failing, so I didn't spot the mistake before.
* libtracker-sparql: Add TrackerResource classSam Thursfield2016-07-143-1/+170
| | | | | | | | | | | This provides a "resource-oriented" API for inserting and updating the database. Rather than having to generate SPARQL queries, you can use the TrackerResource abstraction to prepare information about a set of resources, then generate a SPARQL query automatically. TrackerResource can also serialize to Turtle directly. https://bugzilla.gnome.org/show_bug.cgi?id=767472
* tests: Give tracker-test.c a slightly better nameSam Thursfield2016-06-092-11/+11
|
* build: Add missing files to .gitignore filesPhilip Withnall2015-07-031-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=751052
* libtracker-sparql: Add tracker-gb-737023-test to .gitignore and to test ↵Martyn Russell2014-12-102-1/+2
| | | | cases to run
* tests: Locale fixDebarshi Ray2014-09-221-0/+4
|
* libtracker-sparql: Add a test caseDebarshi Ray2014-09-222-1/+111
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=737023
* tests: Updated gtester scripts to improve testing systemMartyn Russell2014-02-201-3/+2
| | | | | | | | | | | | | | | We imported Makefile.decl from glib when it was using Subversion, a long time ago. The script had a few issues (like running all unit tests twice on make distcheck) and needed to be updated. I've stolen a latest version from GLib's glib.mk and also their m4 macros which are required to make this all work too. This gives us the advantage of defining installable and uninstallable test cases as well as test data, scripts and other useful stuff. The debug output also looks quite good. And distcheck passes :)
* tests: Removed all cases of g_test_trap_fork() which has been deprecated.Martyn Russell2014-01-171-13/+50
| | | | | | Now we're using g_test_trap_subprocess() instead and that requires GLib 2.38. Tracker now depends on GLib 2.38.
* libtracker-miner, libtracker-sparql: Fixed missing setlocale() in unit testsMartyn Russell2013-10-191-0/+4
| | | | | Due to the new warning we have in place where locale != DB locale, this needs to be set before the tests will work.
* libtracker-bus: allow cancellation when iterating cursorAleksander Morgado2013-10-141-5/+5
| | | | | | | | In the same way as the direct backend allows it. Also modify the unit test so that we make sure the cancellation is detected. https://bugzilla.gnome.org/show_bug.cgi?id=676209
* all: Remove use of g_type_init() now it's deprecated in GLib since 2.35.xMartyn Russell2013-03-081-1/+0
|
* Remove g_thread_init callsJürg Billeter2011-11-271-1/+0
| | | | | | Calling g_thread_init with GLib 2.31 requires explicit dependency on gthread-2.0. However, g_type_init initializes threads since GLib 2.24, so it is no longer needed.
* tests/libtracker-sparql: Add interleaved connection testJürg Billeter2011-05-191-0/+34
| | | | Based on test by James Thomas.
* tests/libtracker-sparql: Fix cancellation error checkJürg Billeter2011-04-041-1/+1
|
* libtracker-sparql: Use static linking instead of pluginsJürg Billeter2011-04-042-4/+1
| | | | | | | | | Plugin loading in threads may be problematic in certain environments. As we do not currently support external plugins anyway, this changes libtracker-bus and libtracker-direct to be part of libtracker-sparql. This will also slightly improve initialization performance. Fixes NB#241659.
* libtracker-sparql: Add test case for the bug this fixes.Martyn Russell2011-03-171-10/+56
| | | | Fixes NB#237150, Second tracker_sparql_connection_get_async never returns
* libtracker-sparql: Use g_assert_no_error() instead in testsMartyn Russell2010-11-111-1/+1
|
* build: Replaced all trailing tabs before \ for spaces in Makefile.amsMartyn Russell2010-10-271-8/+8
| | | | Also standardise the width to 55 characters (unless line is longer)
* build: Use AM_CPPFLAGS now INCLUDES is deprecatedMartyn Russell2010-10-271-1/+1
|
* libtracker-sparql: Cleaned up CFLAGS/LIBS for testsMartyn Russell2010-10-272-19/+13
|
* build: Remove WARN_CFLAGS and GCOV_{CFLAGS|LIBS}, use BUILD_{CFLAGS|LIBS} ↵Martyn Russell2010-10-271-6/+3
| | | | instead
* libtracker-sparql: Fix test case when FTS is disabledMartyn Russell2010-09-301-3/+3
|
* libtracker-sparql: Added locking to sync/async connection_get() methodsMartyn Russell2010-09-291-0/+59
|
* libtracker-sparql: Fixed build failure with new connection_get() APIMartyn Russell2010-09-291-1/+1
|
* libtracker-sparql tests: do not require a prior installationAleksander Morgado2010-09-161-0/+3
|
* libtracker-sparql: Added comprehensive test for cursor_next()Martyn Russell2010-09-141-62/+132
| | | | | | | | | Basically, added cursor_next_async() + cancellable_cancel() + new query to make sure things work properly in those cases. Also use queries which actually exist for most people (based on the ontology). Queries 4 and 5 are there for historical reasons, these are what showed the situation in the first place.
* libtracker-sparql: Include config.h in testJürg Billeter2010-09-131-0/+2
|
* libtracker-sparql: Skip FTS test if FTS is disabledJürg Billeter2010-09-131-0/+6
|
* libtracker-sparql: Updated test case to include the 2nd query from needleMartyn Russell2010-09-131-25/+44
|
* libtracker-sparql: Added cursor_next_async() test caseMartyn Russell2010-09-131-28/+126
| | | | Currently causes a crash running 2 queries at the same time
* Port SPARQL util tests from libtracker-client to libtracker-sparqlJürg Billeter2010-08-243-0/+97