George Liu | 4b06201 | 2020-10-13 15:26:58 +0800 | [diff] [blame^] | 1 | test_sources = [ |
2 | '../manager.cpp', | ||||
3 | '../serialize.cpp', | ||||
4 | '../utils.cpp' | ||||
5 | ] | ||||
6 | |||||
7 | tests = [ | ||||
8 | 'utest.cpp', | ||||
9 | 'utest-serialize.cpp', | ||||
10 | ] | ||||
11 | |||||
12 | if get_option('use-json').enabled() | ||||
13 | tests += ['utest-led-json.cpp'] | ||||
14 | endif | ||||
15 | |||||
16 | foreach t : tests | ||||
17 | test(t, executable(t.underscorify(), t, | ||||
18 | test_sources, | ||||
19 | include_directories: ['..'], | ||||
20 | dependencies: [ | ||||
21 | gtest, | ||||
22 | gmock, | ||||
23 | deps | ||||
24 | ]), | ||||
25 | workdir: meson.current_source_dir()) | ||||
26 | endforeach |