blob: 1e5fe0519357a619fda197f8c51adde3a50b20c2 [file] [log] [blame]
Brandon Wyman3f1242f2020-01-28 13:11:25 -06001test('phosphor-power-supply-tests',
2 executable('phosphor-power-supply-tests',
3 'power_supply_tests.cpp',
4 'mock.cpp',
5 dependencies: [
6 gmock,
7 gtest,
Patrick Williams888bebd2023-05-31 19:19:49 -05008 libgpiodcxx,
9 nlohmann_json_dep,
10 phosphor_logging,
Brandon Wyman3f1242f2020-01-28 13:11:25 -060011 sdbusplus,
12 sdeventplus,
Brandon Wyman3f1242f2020-01-28 13:11:25 -060013 ],
14 implicit_include_directories: false,
15 include_directories: [
16 '.',
17 '..',
18 '../..'
19 ],
20 link_args: dynamic_linker,
Brandon Wyman1d7a7df2020-03-26 10:14:05 -050021 link_with: [
22 libpower,
23 ],
Brandon Wyman3f1242f2020-01-28 13:11:25 -060024 build_rpath: get_option('oe-sdk').enabled() ? rpath : '',
25 objects: power_supply,
26 )
27)