[gtk+/wip/baedert/meson: 812/841] meson: Add unit test files



commit 603f3a58757581a5759b11ad29ebe611aef6c6ec
Author: Timm Bäder <mail baedert org>
Date:   Sun Aug 21 18:01:14 2016 +0200

    meson: Add unit test files

 meson.build                      |    1 +
 testsuite/css/meson.build        |    6 ++
 testsuite/css/nodes/meson.build  |    3 +
 testsuite/css/parser/meson.build |    3 +
 testsuite/css/style/meson.build  |   15 ++++
 testsuite/gdk/meson.build        |   24 ++++++
 testsuite/gtk/meson.build        |  148 ++++++++++++++++++++++++++++++++++++++
 testsuite/meson.build            |    3 +
 8 files changed, 203 insertions(+), 0 deletions(-)
---
diff --git a/meson.build b/meson.build
index ae9c670..66fb88f 100644
--- a/meson.build
+++ b/meson.build
@@ -156,3 +156,4 @@ configure_file(input: 'config.h.meson', output: 'config.h', configuration: cdata
 subdir('gdk')
 subdir('gtk')
 subdir('demos')
+subdir('testsuite')
diff --git a/testsuite/css/meson.build b/testsuite/css/meson.build
new file mode 100644
index 0000000..a9558c5
--- /dev/null
+++ b/testsuite/css/meson.build
@@ -0,0 +1,6 @@
+subdir('parser')
+subdir('nodes')
+subdir('style')
+
+test_api = executable('api', 'api.c', dependencies: libgtk_dep, link_with: libgtk)
+test('css/api', test_api)
diff --git a/testsuite/css/nodes/meson.build b/testsuite/css/nodes/meson.build
new file mode 100644
index 0000000..55e321d
--- /dev/null
+++ b/testsuite/css/nodes/meson.build
@@ -0,0 +1,3 @@
+
+test_nodes = executable('test-css-nodes', 'test-css-nodes.c', dependencies: libgtk_dep, link_with: libgtk)
+test('css/nodes/test-nodes', test_nodes)
diff --git a/testsuite/css/parser/meson.build b/testsuite/css/parser/meson.build
new file mode 100644
index 0000000..c222233
--- /dev/null
+++ b/testsuite/css/parser/meson.build
@@ -0,0 +1,3 @@
+
+test_parser = executable('test-css-parser', 'test-css-parser.c', dependencies: libgtk_dep, link_with: libgtk)
+test('css/parser/css-parser', test_parser)
diff --git a/testsuite/css/style/meson.build b/testsuite/css/style/meson.build
new file mode 100644
index 0000000..969c182
--- /dev/null
+++ b/testsuite/css/style/meson.build
@@ -0,0 +1,15 @@
+
+cssresources = gnome.compile_resources(
+  'cssresources',
+  'test-css-style.gresource.xml',
+  source_dir: '.',
+)
+
+test_style = executable(
+  'test-css-style',
+  'test-css-style.c',
+  cssresources,
+  dependencies: libgtk_dep, 
+  link_with: libgtk
+)
+test('css/style/test-style', test_style)
diff --git a/testsuite/gdk/meson.build b/testsuite/gdk/meson.build
new file mode 100644
index 0000000..089e140
--- /dev/null
+++ b/testsuite/gdk/meson.build
@@ -0,0 +1,24 @@
+
+test_cairo = executable('cairo', 'cairo.c', dependencies: libgdk_dep, link_with: libgdk)
+test('gdk/cairo', test_cairo)
+
+test_display = executable('display', 'display.c', dependencies: libgdk_dep, link_with: libgdk)
+test('gdk/display', test_display)
+
+test_encoding = executable('encoding', 'encoding.c', dependencies: libgdk_dep, link_with: libgdk)
+test('gdk/encoding', test_encoding)
+
+test_keysyms = executable('keysyms', 'keysyms.c', dependencies: libgdk_dep, link_with: libgdk)
+test('gdk/keysyms', test_keysyms)
+
+test_rectangle = executable('rectangle', 'rectangle.c', dependencies: libgdk_dep, link_with: libgdk)
+test('gdk/rectangle', test_rectangle)
+
+test_rgba = executable('rgba', 'rgba.c', dependencies: libgdk_dep, link_with: libgdk)
+test('gdk/rgba', test_rgba)
+
+test_seat = executable('seat', 'seat.c', dependencies: libgdk_dep, link_with: libgdk)
+test('gdk/seat', test_seat)
+
+test_visual = executable('visual', 'visual.c', dependencies: libgdk_dep, link_with: libgdk)
+test('gdk/visual', test_visual)
diff --git a/testsuite/gtk/meson.build b/testsuite/gtk/meson.build
new file mode 100644
index 0000000..5b905cd
--- /dev/null
+++ b/testsuite/gtk/meson.build
@@ -0,0 +1,148 @@
+test_accel = executable('accel', 'accel.c', dependencies: libgtk_dep, link_with: libgtk)
+test('gtk/accel test', test_accel)
+
+test_accessible = executable('accessible', 'accessible.c', dependencies: libgtk_dep, link_with: libgtk)
+test('gtk/accessible test', test_accessible)
+
+test_action = executable('action', 'action.c', dependencies: libgtk_dep, link_with: libgtk)
+test('gtk/action test', test_action)
+
+
+test_adjustment = executable('adjustment', 'adjustment.c', dependencies: libgtk_dep, link_with: libgtk)
+test('gtk/adjustment test', test_adjustment)
+
+test_bitmask = executable('bitmask', 'bitmask.c', dependencies: libgtk_dep, link_with: libgtk)
+test('gtk/bitmask test', test_bitmask)
+
+test_builder = executable('builder', 'builder.c', dependencies: libgtk_dep, link_with: libgtk)
+test('gtk/builder test', test_builder)
+
+install_subdir('ui', install_dir: '.')
+test_builderparser = executable(
+  'builderparser',
+  'builderparser.c',
+  dependencies: libgtk_dep,
+  link_with: libgtk,
+  env: [
+      'G_TEST_SRCDIR='+meson.source_root(),
+      'G_TEST_BUILDDIR='+meson.build_root()
+  ]
+)
+test('gtk/builderparser test', test_builderparser)
+
+test_cellarea = executable('cellarea', 'cellarea.c', dependencies: libgtk_dep, link_with: libgtk)
+test('gtk/cellarea test', test_cellarea)
+
+test_check_icon_names = executable('check_icon_names', 'check-icon-names.c', dependencies: libgtk_dep, 
link_with: libgtk)
+test('gtk/check_icon_names test', test_check_icon_names)
+
+test_check_cursor_names = executable('check_cursor_names', 'check-cursor-names.c', dependencies: libgtk_dep, 
link_with: libgtk)
+test('gtk/check_cursor_names test', test_check_cursor_names)
+
+test_clipboard = executable('clipboard', 'clipboard.c', dependencies: libgtk_dep, link_with: libgtk)
+test('gtk/clipboard test', test_clipboard)
+
+test_cssprovider = executable('cssprovider', 'cssprovider.c', dependencies: libgtk_dep, link_with: libgtk)
+test('gtk/cssprovider test', test_cssprovider)
+
+test_defaultvalue = executable('defaultvalue', 'defaultvalue.c', dependencies: libgtk_dep, link_with: libgtk)
+test('gtk/defaultvalue test', test_defaultvalue)
+
+test_entry = executable('entry', 'entry.c', dependencies: libgtk_dep, link_with: libgtk)
+test('gtk/entry test', test_entry)
+
+test_firefox_stylecontext = executable('firefox_stylecontext', 'firefox-stylecontext.c', dependencies: 
libgtk_dep, link_with: libgtk)
+test('gtk/firefox_stylecontext test', test_firefox_stylecontext)
+
+test_floating = executable('floating', 'floating.c', dependencies: libgtk_dep, link_with: libgtk)
+test('gtk/floating test', test_floating)
+
+test_focus = executable('focus', 'focus.c', dependencies: libgtk_dep, link_with: libgtk)
+test('gtk/focus test', test_focus)
+
+test_gestures = executable('gestures', 'gestures.c', dependencies: libgtk_dep, link_with: libgtk)
+test('gtk/gestures test', test_gestures)
+
+test_grid = executable('grid', 'grid.c', dependencies: libgtk_dep, link_with: libgtk)
+test('gtk/grid test', test_grid)
+
+test_gtkmenu = executable('gtkmenu', 'gtkmenu.c', dependencies: libgtk_dep, link_with: libgtk)
+test('gtk/gtkmenu test', test_gtkmenu)
+
+test_icontheme = executable('icontheme', 'icontheme.c', dependencies: libgtk_dep, link_with: libgtk)
+test('gtk/icontheme test', test_icontheme)
+
+test_keyhash = executable('keyhash', 'keyhash.c', dependencies: libgtk_dep, link_with: libgtk)
+test('gtk/keyhash test', test_keyhash)
+
+test_listbox = executable('listbox', 'listbox.c', dependencies: libgtk_dep, link_with: libgtk)
+test('gtk/listbox test', test_listbox)
+
+test_notify = executable('notify', 'notify.c', dependencies: libgtk_dep, link_with: libgtk)
+test('gtk/notify test', test_notify)
+
+test_no_gtk_init = executable('no_gtk_init', 'no-gtk-init.c', dependencies: libgtk_dep, link_with: libgtk)
+test('gtk/no_gtk_init test', test_no_gtk_init)
+
+test_object = executable('object', 'object.c', dependencies: libgtk_dep, link_with: libgtk)
+test('gtk/object test', test_object)
+
+test_objects_finalize = executable('objects_finalize', 'objects-finalize.c', dependencies: libgtk_dep, 
link_with: libgtk)
+test('gtk/objects_finalize test', test_objects_finalize)
+
+test_papersize = executable('papersize', 'papersize.c', dependencies: libgtk_dep, link_with: libgtk)
+test('gtk/papersize test', test_papersize)
+
+test_rbtree = executable('rbtree', 'rbtree.c', dependencies: libgtk_dep, link_with: libgtk)
+test('gtk/rbtree test', test_rbtree)
+
+test_recentmanager = executable('recentmanager', 'recentmanager.c', dependencies: libgtk_dep, link_with: 
libgtk)
+test('gtk/recentmanager test', test_recentmanager)
+
+test_regression_tests = executable('regression_tests', 'regression-tests.c', dependencies: libgtk_dep, 
link_with: libgtk)
+test('gtk/regression_tests test', test_regression_tests)
+
+test_scrolledwindow = executable('scrolledwindow', 'scrolledwindow.c', dependencies: libgtk_dep, link_with: 
libgtk)
+test('gtk/scrolledwindow test', test_scrolledwindow)
+
+test_spinbutton = executable('spinbutton', 'spinbutton.c', dependencies: libgtk_dep, link_with: libgtk)
+test('gtk/spinbutton test', test_spinbutton)
+
+test_stylecontext = executable('stylecontext', 'stylecontext.c', dependencies: libgtk_dep, link_with: libgtk)
+test('gtk/stylecontext test', test_stylecontext)
+
+test_templates = executable('templates', 'templates.c', dependencies: libgtk_dep, link_with: libgtk)
+test('gtk/templates test', test_templates)
+
+test_textbuffer = executable('textbuffer', 'textbuffer.c', dependencies: libgtk_dep, link_with: libgtk)
+test('gtk/textbuffer test', test_textbuffer)
+
+test_textiter = executable('textiter', 'textiter.c', dependencies: libgtk_dep, link_with: libgtk)
+test('gtk/textiter test', test_textiter)
+
+test_treemodel = executable(
+  'treemodel',
+  'treemodel.c', 'liststore.c', 'treestore.c', 'filtermodel.c',
+  'modelrefcount.c', 'sortmodel.c', 'gtktreemodelrefcount.c',
+  dependencies: libgtk_dep,
+  link_with: libgtk
+)
+test('gtk/treemodel test', test_treemodel)
+
+test_treepath = executable('treepath', 'treepath.c', dependencies: libgtk_dep, link_with: libgtk)
+test('gtk/treepath test', test_treepath)
+
+test_treeview = executable('treeview', 'treeview.c', dependencies: libgtk_dep, link_with: libgtk)
+test('gtk/treeview test', test_treeview)
+
+test_typename = executable('typename', 'typename.c', dependencies: libgtk_dep, link_with: libgtk)
+test('gtk/typename test', test_typename)
+
+test_window = executable('window', 'window.c', dependencies: libgtk_dep, link_with: libgtk)
+test('gtk/window test', test_window)
+
+test_displayclose = executable('displayclose', 'displayclose.c', dependencies: libgtk_dep, link_with: libgtk)
+test('gtk/displayclose test', test_displayclose)
+
+test_revealer_size = executable('revealer_size', 'revealer-size.c', dependencies: libgtk_dep, link_with: 
libgtk)
+test('gtk/revealer_size test', test_revealer_size)
diff --git a/testsuite/meson.build b/testsuite/meson.build
new file mode 100644
index 0000000..a3507d5
--- /dev/null
+++ b/testsuite/meson.build
@@ -0,0 +1,3 @@
+subdir('gtk')
+subdir('gdk')
+subdir('css')


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