Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 1 | common_test_src = declare_dependency( |
| 2 | sources: [ |
| 3 | '../utils.cpp']) |
| 4 | |
| 5 | tests = [ |
| 6 | 'pldm_utils_test', |
| 7 | ] |
| 8 | |
| 9 | foreach t : tests |
| 10 | test(t, executable(t.underscorify(), t + '.cpp', |
| 11 | implicit_include_directories: false, |
| 12 | link_args: dynamic_linker, |
| 13 | build_rpath: get_option('oe-sdk').enabled() ? rpath : '', |
| 14 | dependencies: [ |
| 15 | common_test_src, |
| 16 | gtest, |
| 17 | libpldm_dep, |
Brad Bishop | d169dd1 | 2021-07-29 13:24:15 -0400 | [diff] [blame^] | 18 | nlohmann_json, |
Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 19 | phosphor_dbus_interfaces, |
| 20 | sdbusplus]), |
| 21 | workdir: meson.current_source_dir()) |
| 22 | endforeach |