| 1 |
# Copyright 2021-2026 David Robillard <[email protected]> |
| 2 |
# SPDX-License-Identifier: 0BSD OR ISC |
| 3 |
|
| 4 |
################### |
| 5 |
# Header Warnings # |
| 6 |
################### |
| 7 |
|
| 8 |
subdir('headers') |
| 9 |
|
| 10 |
############## |
| 11 |
# Unit Tests # |
| 12 |
############## |
| 13 |
|
| 14 |
common_test_sources = files( |
| 15 |
'forge_test_object.c', |
| 16 |
'test_uri_map.c', |
| 17 |
) |
| 18 |
|
| 19 |
unit_test_names = [ |
| 20 |
'trip', |
| 21 |
'write', |
| 22 |
] |
| 23 |
|
| 24 |
unit_test_sources = common_test_sources |
| 25 |
|
| 26 |
foreach name : unit_test_names |
| 27 |
sources = files('test_@[email protected]'.format(name), 'test_uri_map.c') |
| 28 |
unit_test_sources += sources |
| 29 |
|
| 30 |
test( |
| 31 |
name, |
| 32 |
executable( |
| 33 |
'test_' + name, |
| 34 |
common_test_sources + sources, |
| 35 |
c_args: c_suppressions, |
| 36 |
dependencies: [lv2_dep, serd_dep, sratom_dep], |
| 37 |
implicit_include_directories: false, |
| 38 |
), |
| 39 |
suite: 'unit', |
| 40 |
) |
| 41 |
endforeach |
| 42 |
|
| 43 |
######## |
| 44 |
# Lint # |
| 45 |
######## |
| 46 |
|
| 47 |
if get_option('lint') |
| 48 |
subdir('lint') |
| 49 |
endif |