Compare commits

...

2 commits

Author SHA1 Message Date
Florian Müllner
8dfe5f61a7 Merge branch 'optional-tests' into 'main'
build: Make tests optional

See merge request GNOME/blueprint-compiler!245
2025-06-14 17:26:48 +02:00
Florian Müllner
eb16b36405
build: Make tests optional
When used as a subproject, there is little point in adding tests
to the parent project's test suite. Even if the tests caught an
error, it wouldn't be in the position of fixing it.

So add a build option that allows parent projects to turn off tests.
2025-06-04 17:42:17 +02:00
2 changed files with 4 additions and 1 deletions

View file

@ -42,4 +42,6 @@ else
install_subdir('blueprintcompiler', install_dir: py.get_install_dir())
endif
subdir('tests')
if get_option('tests')
subdir('tests')
endif

View file

@ -1 +1,2 @@
option('docs', type: 'boolean', value: false)
option('tests', type: 'boolean', value: true)