[dia: 56/105] #19: Add initial tests/meson.build.
- From: Zander <zbrown src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia: 56/105] #19: Add initial tests/meson.build.
- Date: Mon, 28 Jan 2019 19:24:02 +0000 (UTC)
commit 89cea42012fab96a5982df174f65a72e385fa628
Author: Eduard Nicodei <eddnicodei gmail com>
Date: Fri Jan 4 00:06:00 2019 +0000
#19: Add initial tests/meson.build.
- Only contains the three compiled tests: boundingbox, testsvg and
test-objects. Of the three, test-objects is the most extensive.
meson.build | 1 +
tests/meson.build | 28 ++++++++++++++++++++++++++++
2 files changed, 29 insertions(+)
---
diff --git a/meson.build b/meson.build
index 4b0f5957..c04f50f7 100644
--- a/meson.build
+++ b/meson.build
@@ -82,6 +82,7 @@ subdir('doc')
subdir('plug-ins')
subdir('sheets')
subdir('shapes')
+subdir('tests')
# Convenience target
run_target('run',
diff --git a/tests/meson.build b/tests/meson.build
new file mode 100644
index 00000000..a83936b3
--- /dev/null
+++ b/tests/meson.build
@@ -0,0 +1,28 @@
+# TODO: minimise code duplication.
+bb = executable(
+ 'boundingbox',
+ 'test-boundingbox.c',
+ dependencies: [libgtk_dep, libxml_dep, libm_dep],
+ link_with: [libdia],
+ link_args: dia_link_args,
+ include_directories: [configuration_inc, libdia_inc],
+)
+objs = executable(
+ 'objects',
+ 'test-objects.c',
+ dependencies: [libgtk_dep, libxml_dep, libm_dep],
+ link_with: [libdia],
+ link_args: dia_link_args,
+ include_directories: [configuration_inc, libdia_inc],
+)
+tsvg = executable(
+ 'testsvg',
+ 'test-svg.c',
+ dependencies: [libgtk_dep, libxml_dep, libm_dep],
+ link_with: [libdia],
+ link_args: dia_link_args,
+ include_directories: [configuration_inc, libdia_inc],
+)
+test('boundingbox', bb)
+test('objects', objs, args: [join_paths(meson.build_root(), 'objects')])
+test('testsvg', tsvg)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]