1 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 16if get_option('bindings').contains('i2c') 17 tests += 'test_i2c' 18endif 19 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 32