Skip to content

Commit fc1f89d

Browse files
committed
test: make GTest optional
1 parent 074f03b commit fc1f89d

4 files changed

Lines changed: 6 additions & 0 deletions

File tree

‎debian/changelog‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ cm4all-workshop (7.8) unstable; urgency=low
22

33
* workshop: fix variable expansion bug
44
* fix crash bug with "sticky" and only one node
5+
* meson.build: make GTest optional
56

67
--
78

‎debian/rules‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ MESON_OPTIONS = \
66
-Dcap=enabled \
77
-Dseccomp=enabled \
88
-Dsystemd=enabled \
9+
-Dtest=enabled \
910
-Dzeroconf=enabled \
1011
--werror
1112

‎meson_options.txt‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
option('documentation', type: 'feature',
22
description: 'Build documentation')
33

4+
option('test', type: 'feature', description: 'Build unit tests')
5+
46
option('cap', type: 'feature', description: 'Linux capability support (using libcap)')
57
option('seccomp', type: 'feature', description: 'seccomp support (using libseccomp)')
68
option('systemd', type: 'feature', description: 'systemd support (using libsystemd)')

‎t/meson.build‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
gtest = dependency('gtest', main: true,
22
include_type: 'system',
3+
disabler: true,
4+
required: get_option('test'),
35
fallback: ['gtest', 'gtest_main_dep'])
46

57
executable('http',

0 commit comments

Comments
 (0)