1processing_cpp_dep = declare_dependency(sources: '../processing.cpp') 2associations_cpp_dep = declare_dependency(sources: '../associations.cpp') 3handler_cpp_dep = declare_dependency(sources: '../handler.cpp') 4 5tests = [ 6 [ 'well_known', [ associations_cpp_dep, processing_cpp_dep ]], 7 [ 'need_to_introspect', [ associations_cpp_dep, processing_cpp_dep ]], 8 [ 'associations', [ associations_cpp_dep ]], 9 [ 'name_change', [ associations_cpp_dep, processing_cpp_dep ]], 10 [ 'interfaces_added', [ associations_cpp_dep, processing_cpp_dep ]], 11 [ 'handler', [ handler_cpp_dep, sdbusplus, phosphor_dbus_interfaces ]], 12] 13 14foreach t : tests 15 name = t[0] 16 extra_deps = t[1] 17 test(name, executable(name.underscorify(), name + '.cpp', 18 implicit_include_directories: false, 19 dependencies: [boost, gtest, gmock, sdbusplus, extra_deps], 20 include_directories: ['../..']), 21 workdir: meson.current_source_dir()) 22endforeach 23