[gtksourceview] testsuite: move test-snippets to testsuite



commit fe014e36bec06e2425a6c013e095554b291f16ae
Author: Christian Hergert <chergert redhat com>
Date:   Mon May 2 17:20:47 2022 -0700

    testsuite: move test-snippets to testsuite
    
    This should really be run on every commit and therefore belongs in the
    testsuite directory.

 tests/meson.build                           | 1 -
 testsuite/meson.build                       | 1 +
 {tests => testsuite}/test-snippets.c        | 6 +++---
 {tests/snippets => testsuite}/test.snippets | 0
 4 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/tests/meson.build b/tests/meson.build
index 61a85c1a..3f0a0862 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -8,7 +8,6 @@ tests_sources = {
                     'int2str': ['test-int2str.c'],
                      'search': ['test-search.c'],
         'search-performances': ['test-search-performances.c'],
-                   'snippets': ['test-snippets.c'],
               'space-drawing': ['test-space-drawing.c'],
                        'load': ['test-load.c'],
                      'widget': ['test-widget.c'],
diff --git a/testsuite/meson.build b/testsuite/meson.build
index 1dbd2816..b9733097 100644
--- a/testsuite/meson.build
+++ b/testsuite/meson.build
@@ -36,6 +36,7 @@ testsuite_sources = [
   ['test-regex'],
   ['test-region'],
   ['test-search-context'],
+  ['test-snippets'],
   ['test-space-drawer'],
   ['test-stylescheme'],
   ['test-styleschememanager'],
diff --git a/tests/test-snippets.c b/testsuite/test-snippets.c
similarity index 96%
rename from tests/test-snippets.c
rename to testsuite/test-snippets.c
index 82d8e67a..36112622 100644
--- a/tests/test-snippets.c
+++ b/testsuite/test-snippets.c
@@ -26,8 +26,8 @@ static const gchar *data_search_path[] = {
        TOP_SRCDIR"/data/snippets",
        NULL
 };
-static const char *test_search_path[] = {
-       TOP_SRCDIR"/tests/snippets",
+static const char *testsuite_search_path[] = {
+       TOP_SRCDIR"/testsuite/snippets",
        NULL
 };
 
@@ -63,7 +63,7 @@ test_snippet_fetching (void)
        guint n_items;
 
        mgr = g_object_new (GTK_SOURCE_TYPE_SNIPPET_MANAGER, NULL);
-       gtk_source_snippet_manager_set_search_path (mgr, test_search_path);
+       gtk_source_snippet_manager_set_search_path (mgr, testsuite_search_path);
 
        model = gtk_source_snippet_manager_list_all (mgr);
        n_items = g_list_model_get_n_items (model);
diff --git a/tests/snippets/test.snippets b/testsuite/test.snippets
similarity index 100%
rename from tests/snippets/test.snippets
rename to testsuite/test.snippets


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