summaryrefslogtreecommitdiff
blob: e5f55ffe765fc6d4bfd6c8691f17c0b0457c2ab6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Make tests optional

--- a/meson_options.txt	2016-09-19 23:35:54.944511834 +0200
+++ b/meson_options.txt	2016-09-19 23:36:10.693485976 +0200
@@ -1,2 +1,3 @@
 option('enable-xunit', type : 'boolean', value : false)
 option('disable-help', type : 'boolean', value : false)
+option('enable-tests', type : 'boolean', value : false)
--- a/meson.build	2017-09-03 22:52:39.681974053 +0200
+++ b/meson.build	2017-09-03 22:53:29.934556188 +0200
@@ -71,8 +71,10 @@
 if not get_option('disable-help')
     subdir('help')
 endif
-subdir('tests')
-subdir('tests/validate-tests')
+if get_option('enable-tests')
+  subdir('tests')
+  subdir('tests/validate-tests')
+endif
 
 archiver = find_program('git-archive-all', required : false)
 if archiver.found()