blob: 06f483bc013a2113be5f0751d290bcd63911592b [file] [log] [blame]
Lei YU093b5912019-10-22 15:28:51 +08001test(
Shawn McCarney23dee382024-11-11 18:41:49 -06002 'psutils-tests',
Lei YU093b5912019-10-22 15:28:51 +08003 executable(
Shawn McCarney23dee382024-11-11 18:41:49 -06004 'psutils-tests',
Lei YU9ab6d752019-10-28 17:03:20 +08005 'test_updater.cpp',
Shawn McCarney23dee382024-11-11 18:41:49 -06006 'test_utils.cpp',
7 'test_version.cpp',
Lei YU9ab6d752019-10-28 17:03:20 +08008 '../updater.cpp',
Faisal Awada5ace9fb2025-01-07 13:26:25 -06009 '../aei_updater.cpp',
Shawn McCarney14572cf2024-11-06 12:17:57 -060010 '../utils.cpp',
Shawn McCarney23dee382024-11-11 18:41:49 -060011 '../version.cpp',
Lei YU9ab6d752019-10-28 17:03:20 +080012 dependencies: [
13 gtest,
Lei YU7c2fbbb2019-11-06 14:56:02 +080014 gmock,
Patrick Williams888bebd2023-05-31 19:19:49 -050015 nlohmann_json_dep,
Lei YU9ab6d752019-10-28 17:03:20 +080016 phosphor_logging,
17 ],
18 implicit_include_directories: false,
Shawn McCarneyb1216b92020-01-21 15:22:32 -060019 include_directories: [
20 libpower_inc,
21 libi2c_inc,
22 libi2c_dev_mock_inc
23 ],
Brandon Wymandc8e9312020-02-14 17:04:18 -060024 link_args: dynamic_linker,
Patrick Williams5c6a6932023-11-29 06:44:29 -060025 build_rpath: get_option('oe-sdk').allowed() ? rpath : '',
Lei YU9ab6d752019-10-28 17:03:20 +080026 link_with: [
27 libpower,
Shawn McCarneyb1216b92020-01-21 15:22:32 -060028 libi2c_dev_mock
Lei YU9ab6d752019-10-28 17:03:20 +080029 ],
Lei YU9ab6d752019-10-28 17:03:20 +080030 )
31)