[grilo-plugins/wip/carlosg/tracker3: 2/2] fixup! tests: Add tests for the tracker3 plugin




commit d5de5015cfe448d2220d9e40e9705da1d170f81c
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sat Aug 22 16:07:10 2020 +0200

    fixup! tests: Add tests for the tracker3 plugin

 .gitlab-ci.yml                 | 4 +++-
 tests/tracker3/meson.build     | 6 ++++--
 tests/tracker3/test_tracker3.c | 3 +++
 3 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 670a15eb..81ccb35f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -24,12 +24,14 @@ build_stable:
     - dnf install -y --nogpgcheck libseccomp-devel
     - git clone https://gitlab.gnome.org/GNOME/tracker.git
     - cd tracker
+    - git checkout wip/carlosg/sandbox-fixes
     - meson . _build --prefix=/usr -Ddocs=false -Dman=false -Dbash_completion=false -Dtest_utils=true
     - ninja -C _build install
     - cd ..
     - git clone https://gitlab.gnome.org/GNOME/tracker-miners.git
     - cd tracker-miners
-    - meson . _build --prefix=/usr -Dpng=enabled -Dgeneric_media_extractor=gstreamer -Dextract=true 
-Dminer_apps=false -Dminer_rss=false -Dman=false
+    - git checkout wip/carlosg/sandbox-fixes
+    - meson . _build --prefix=/usr -Dpng=enabled -Dgeneric_media_extractor=gstreamer -Dminer_rss=false 
-Dman=false
     - ninja -C _build install
     - cd ..
     # As part of configuring grilo-plugins.git for build, the latest code from
diff --git a/tests/tracker3/meson.build b/tests/tracker3/meson.build
index 4dc1f61b..23dfbed5 100644
--- a/tests/tracker3/meson.build
+++ b/tests/tracker3/meson.build
@@ -14,11 +14,13 @@ foreach t: source_tests
             '-DTRACKER3_DATA_PATH="@0@"'.format(datadir),
         ])
     test(t, tracker_sandbox,
+        timeout: 120,
+        env: ['TRACKER_DEBUG=all'],
         args: [
            '--index-recursive-directories', datadir,
            '--store-tmpdir',
-            '--wait-for-miner=Files',
-            '--wait-for-miner=Extract',
+            '--debug-dbus',
+            '--debug-sandbox',
            exe
        ])
 endforeach
diff --git a/tests/tracker3/test_tracker3.c b/tests/tracker3/test_tracker3.c
index f685c9d3..80fc9577 100644
--- a/tests/tracker3/test_tracker3.c
+++ b/tests/tracker3/test_tracker3.c
@@ -67,6 +67,9 @@ on_source_added (GrlRegistry *registry,
 
   g_assert_cmpstr (grl_source_get_id (source), ==, TRACKER3_SOURCE_ID);
 
+  /* Some silly query, we want to start the miner service */
+  grl_source_test_media_from_uri (source, "file:///");
+
   grl_source_notify_change_start (source, &error);
   g_signal_connect (source, "content-changed", G_CALLBACK (content_changed_cb), main_loop);
   g_assert_no_error (error);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]