Matt Johnston | 6586fc1 | 2024-09-10 16:01:27 +0800 | [diff] [blame] | 1 | |
Patrick Williams | 5cc2093 | 2025-02-01 08:37:58 -0500 | [diff] [blame^] | 2 | tests = ['test_eid', 'test_seq', 'test_bridge', 'test_cmds', 'test_core'] |
Matt Johnston | 6586fc1 | 2024-09-10 16:01:27 +0800 | [diff] [blame] | 3 | |
| 4 | if get_option('bindings').contains('serial') |
| 5 | tests += 'test_serial' |
| 6 | endif |
| 7 | if get_option('bindings').contains('astlpc') |
| 8 | tests += 'test_astlpc' |
| 9 | endif |
Matt Johnston | e5b941d | 2024-09-17 16:44:38 +0800 | [diff] [blame] | 10 | if get_option('bindings').contains('i2c') |
| 11 | tests += 'test_i2c' |
| 12 | endif |
Matt Johnston | 6586fc1 | 2024-09-10 16:01:27 +0800 | [diff] [blame] | 13 | |
| 14 | test_include_dirs = [include_directories('.'), libmctp_include_dir] |
| 15 | foreach t : tests |
| 16 | test( |
| 17 | t, |
| 18 | executable( |
| 19 | t, |
| 20 | [t + '.c', 'test-utils.c'], |
| 21 | include_directories: test_include_dirs, |
| 22 | dependencies: [libmctp_dep], |
| 23 | ), |
| 24 | ) |
| 25 | endforeach |
Matt Johnston | 060c71e | 2025-01-08 14:35:13 +0800 | [diff] [blame] | 26 | |
| 27 | subdir('fuzz') |