blob: 33d3df12bd3cbdb6085b23e52c67d836eb32359b [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',
Shawn McCarney14572cf2024-11-06 12:17:57 -06009 '../utils.cpp',
Shawn McCarney23dee382024-11-11 18:41:49 -060010 '../version.cpp',
Lei YU9ab6d752019-10-28 17:03:20 +080011 dependencies: [
12 gtest,
Lei YU7c2fbbb2019-11-06 14:56:02 +080013 gmock,
Patrick Williams888bebd2023-05-31 19:19:49 -050014 nlohmann_json_dep,
Lei YU9ab6d752019-10-28 17:03:20 +080015 phosphor_logging,
16 ],
17 implicit_include_directories: false,
Shawn McCarneyb1216b92020-01-21 15:22:32 -060018 include_directories: [
19 libpower_inc,
20 libi2c_inc,
21 libi2c_dev_mock_inc
22 ],
Brandon Wymandc8e9312020-02-14 17:04:18 -060023 link_args: dynamic_linker,
Patrick Williams5c6a6932023-11-29 06:44:29 -060024 build_rpath: get_option('oe-sdk').allowed() ? rpath : '',
Lei YU9ab6d752019-10-28 17:03:20 +080025 link_with: [
26 libpower,
Shawn McCarneyb1216b92020-01-21 15:22:32 -060027 libi2c_dev_mock
Lei YU9ab6d752019-10-28 17:03:20 +080028 ],
Lei YU9ab6d752019-10-28 17:03:20 +080029 )
30)