blob: 96d7d6b9d11e9cb0e16b7538b6ad04fb51121b78 [file] [log] [blame]
Matt Johnston6586fc12024-09-10 16:01:27 +08001
2tests = [
3 'test_eid',
4 'test_seq',
5 'test_bridge',
6 'test_cmds',
7 'test_core',
8 ]
9
10if get_option('bindings').contains('serial')
11 tests += 'test_serial'
12endif
13if get_option('bindings').contains('astlpc')
14 tests += 'test_astlpc'
15endif
Matt Johnstone5b941d2024-09-17 16:44:38 +080016if get_option('bindings').contains('i2c')
17 tests += 'test_i2c'
18endif
Matt Johnston6586fc12024-09-10 16:01:27 +080019
20test_include_dirs = [include_directories('.'), libmctp_include_dir]
21foreach t : tests
22 test(
23 t,
24 executable(
25 t,
26 [t + '.c', 'test-utils.c'],
27 include_directories: test_include_dirs,
28 dependencies: [libmctp_dep],
29 ),
30 )
31endforeach