Matt Johnston | 6586fc1 | 2024-09-10 16:01:27 +0800 | [diff] [blame] | 1 | |
| 2 | tests = [ |
| 3 | 'test_eid', |
| 4 | 'test_seq', |
| 5 | 'test_bridge', |
| 6 | 'test_cmds', |
| 7 | 'test_core', |
| 8 | ] |
| 9 | |
| 10 | if get_option('bindings').contains('serial') |
| 11 | tests += 'test_serial' |
| 12 | endif |
| 13 | if get_option('bindings').contains('astlpc') |
| 14 | tests += 'test_astlpc' |
| 15 | endif |
| 16 | |
| 17 | test_include_dirs = [include_directories('.'), libmctp_include_dir] |
| 18 | foreach t : tests |
| 19 | test( |
| 20 | t, |
| 21 | executable( |
| 22 | t, |
| 23 | [t + '.c', 'test-utils.c'], |
| 24 | include_directories: test_include_dirs, |
| 25 | dependencies: [libmctp_dep], |
| 26 | ), |
| 27 | ) |
| 28 | endforeach |