1test_src = declare_dependency( 2 sources: [ 3 '../terminus_manager.cpp', 4 '../terminus.cpp', 5 '../platform_manager.cpp', 6 '../manager.cpp', 7 '../sensor_manager.cpp', 8 '../numeric_sensor.cpp', 9 '../../requester/mctp_endpoint_discovery.cpp', 10 ], 11 include_directories: ['../../requester', '../../pldmd'], 12) 13 14tests = [ 15 'terminus_manager_test', 16 'terminus_test', 17 'platform_manager_test', 18 'sensor_manager_test', 19 'numeric_sensor_test', 20] 21 22foreach t : tests 23 test( 24 t, 25 executable( 26 t.underscorify(), 27 t + '.cpp', 28 implicit_include_directories: false, 29 dependencies: [ 30 gtest, 31 gmock, 32 libpldm_dep, 33 libpldmutils, 34 nlohmann_json_dep, 35 phosphor_dbus_interfaces, 36 phosphor_logging_dep, 37 sdbusplus, 38 sdeventplus, 39 test_src, 40 ], 41 ), 42 workdir: meson.current_source_dir(), 43 ) 44endforeach 45