Skip to content

Commit 8c2b3d4

Browse files
authored
Only include tests in subproject if explicitly requested (#41)
1 parent fd66b4b commit 8c2b3d4

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

meson.build

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,6 @@ if install
7777
endif
7878

7979
# add the testsuite
80-
subdir('test')
80+
if get_option('testing').auto() ? not meson.is_subproject() : get_option('testing').enabled()
81+
subdir('test')
82+
endif

meson_options.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,10 @@ option(
3232
value: 'auto',
3333
description: 'Support quadruple precision',
3434
)
35+
36+
option(
37+
'testing',
38+
type: 'feature',
39+
value: 'auto',
40+
description: 'Enable testing of test-drive library',
41+
)

0 commit comments

Comments
 (0)