[gssdp/wip/meson: 2/17] meson: Add tests
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gssdp/wip/meson: 2/17] meson: Add tests
- Date: Fri, 26 Oct 2018 14:44:58 +0000 (UTC)
commit bf1b2e28a39742af65bc32572825f84a3c5f220a
Author: Jens Georg <mail jensge org>
Date: Fri Oct 26 16:43:33 2018 +0200
meson: Add tests
meson.build | 1 +
tests/meson.build | 18 ++++++++++++++++++
2 files changed, 19 insertions(+)
---
diff --git a/meson.build b/meson.build
index b3b24e7..e89d58a 100644
--- a/meson.build
+++ b/meson.build
@@ -41,3 +41,4 @@ gio_dep = dependency('gio-2.0', version : '>= 2.32')
soup_dep = dependency('libsoup-2.4', version : '>= 2.26.1')
subdir('libgssdp')
+subdir('tests')
diff --git a/tests/meson.build b/tests/meson.build
new file mode 100644
index 0000000..6c0a60f
--- /dev/null
+++ b/tests/meson.build
@@ -0,0 +1,18 @@
+test_deps = [glib_dep, gobject_dep, gio_dep]
+
+functional = executable('test-functional',
+ ['test-functional.c', 'test-util.c'],
+ dependencies : test_deps,
+ include_directories : include_directories('..'),
+ link_with: libgssdp
+ )
+regression = executable('test-regression',
+ ['test-regression.c', 'test-util.c'],
+ dependencies : test_deps,
+ include_directories : include_directories('..'),
+ link_with: libgssdp
+ )
+
+# Cannot run tests in parallel because both would do UPnP on localhost
+test('Functional test', functional, is_parallel: false)
+test('Bug regression test', regression, is_parallel: false)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]