diff options
-rw-r--r-- | meson.build | 4 | ||||
-rw-r--r-- | test/meson.build | 24 |
2 files changed, 14 insertions, 14 deletions
diff --git a/meson.build b/meson.build index a3c77b4..421b8aa 100644 --- a/meson.build +++ b/meson.build @@ -346,7 +346,9 @@ endif subdir('util') # Data and build tests -subdir('test') +if not get_option('tests').disabled() + subdir('test') +endif if not meson.is_subproject() summary('Tests', not get_option('tests').disabled(), bool_yn: true) diff --git a/test/meson.build b/test/meson.build index 092499a..9f87232 100644 --- a/test/meson.build +++ b/test/meson.build @@ -122,17 +122,15 @@ test_names = [ ] # Build and run tests -if not get_option('tests').disabled() - foreach test_name : test_names - test( +foreach test_name : test_names + test( + test_name, + executable( test_name, - executable( - test_name, - files('test_@0@.c'.format(test_name)), - c_args: c_suppressions, - dependencies: lv2_dep, - ), - suite: 'unit', - ) - endforeach -endif + files('test_@0@.c'.format(test_name)), + c_args: c_suppressions, + dependencies: lv2_dep, + ), + suite: 'unit', + ) +endforeach |