blob: 386a37e69b5df64925d9e680fe178d76e6af70b9 [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',
Brandon Wymanc3324422022-03-24 20:30:57 +00004 '../record_manager.cpp',
Brandon Wyman3f1242f2020-01-28 13:11:25 -06005 'mock.cpp',
6 dependencies: [
7 gmock,
8 gtest,
Patrick Williams888bebd2023-05-31 19:19:49 -05009 libgpiodcxx,
10 nlohmann_json_dep,
11 phosphor_logging,
Brandon Wyman3f1242f2020-01-28 13:11:25 -060012 sdbusplus,
13 sdeventplus,
Brandon Wyman3f1242f2020-01-28 13:11:25 -060014 ],
15 implicit_include_directories: false,
16 include_directories: [
17 '.',
18 '..',
19 '../..'
20 ],
21 link_args: dynamic_linker,
Brandon Wyman1d7a7df2020-03-26 10:14:05 -050022 link_with: [
23 libpower,
24 ],
Brandon Wyman3f1242f2020-01-28 13:11:25 -060025 build_rpath: get_option('oe-sdk').enabled() ? rpath : '',
26 objects: power_supply,
27 )
28)