qulogic/talkatu

Parents e160e9a8f2f7
Children 904150101683
Add an option to disable tests as xvfb-run isn't exactly portable
--- a/meson.build Sun Sep 16 01:21:46 2018 -0500
+++ b/meson.build Thu Sep 20 22:25:55 2018 -0500
@@ -44,7 +44,9 @@
HELP2MAN = find_program('help2man')
-XVFB_RUN = find_program('xvfb-run')
+if get_option('tests')
+ XVFB_RUN = find_program('xvfb-run')
+endif
###############################################################################
# NLS
--- a/meson_options.txt Sun Sep 16 01:21:46 2018 -0500
+++ b/meson_options.txt Thu Sep 20 22:25:55 2018 -0500
@@ -19,3 +19,8 @@
description : 'build gobject-introspection support'
)
+option(
+ 'tests',
+ type : 'boolean', value : true,
+ description : 'run unit tests'
+)
\ No newline at end of file
--- a/talkatu/tests/meson.build Sun Sep 16 01:21:46 2018 -0500
+++ b/talkatu/tests/meson.build Thu Sep 20 22:25:55 2018 -0500
@@ -1,8 +1,12 @@
TEST_WRAPPER = find_program('./test-wrapper.py', required : true)
+if get_option('tests')
+
e = executable(
'test-html-serialization',
'talkatutesthtmlserialization.c',
dependencies : [talkatu_dep, GLIB, GTK3]
)
test('html', TEST_WRAPPER, args : e)
+
+endif