blob: 61c5f530f8ddf5bb380fe9a30555b7ab98ee8925 [file] [log] [blame]
Lei YU093b5912019-10-22 15:28:51 +08001test(
2 'test_version',
3 executable(
4 'test_version',
5 'test_version.cpp',
6 '../version.cpp',
Shawn McCarney14572cf2024-11-06 12:17:57 -06007 '../utils.cpp',
Lei YU093b5912019-10-22 15:28:51 +08008 dependencies: [
9 gtest,
Patrick Williams888bebd2023-05-31 19:19:49 -050010 nlohmann_json_dep,
Lei YU093b5912019-10-22 15:28:51 +080011 phosphor_logging,
12 ],
13 implicit_include_directories: false,
Lei YU7c2fbbb2019-11-06 14:56:02 +080014 include_directories: libpower_inc,
Brandon Wymandc8e9312020-02-14 17:04:18 -060015 link_args: dynamic_linker,
Patrick Williams5c6a6932023-11-29 06:44:29 -060016 build_rpath: get_option('oe-sdk').allowed() ? rpath : '',
Lei YU093b5912019-10-22 15:28:51 +080017 link_with: [
18 libpower,
19 ],
20 objects: record_manager,
21 )
22)
Lei YU9ab6d752019-10-28 17:03:20 +080023
24test(
25 'test_updater',
26 executable(
27 'test_updater',
28 'test_updater.cpp',
29 '../updater.cpp',
Shawn McCarney14572cf2024-11-06 12:17:57 -060030 '../utils.cpp',
Lei YU9ab6d752019-10-28 17:03:20 +080031 dependencies: [
32 gtest,
Lei YU7c2fbbb2019-11-06 14:56:02 +080033 gmock,
Patrick Williams888bebd2023-05-31 19:19:49 -050034 nlohmann_json_dep,
Lei YU9ab6d752019-10-28 17:03:20 +080035 phosphor_logging,
36 ],
37 implicit_include_directories: false,
Shawn McCarneyb1216b92020-01-21 15:22:32 -060038 include_directories: [
39 libpower_inc,
40 libi2c_inc,
41 libi2c_dev_mock_inc
42 ],
Brandon Wymandc8e9312020-02-14 17:04:18 -060043 link_args: dynamic_linker,
Patrick Williams5c6a6932023-11-29 06:44:29 -060044 build_rpath: get_option('oe-sdk').allowed() ? rpath : '',
Lei YU9ab6d752019-10-28 17:03:20 +080045 link_with: [
46 libpower,
Shawn McCarneyb1216b92020-01-21 15:22:32 -060047 libi2c_dev_mock
Lei YU9ab6d752019-10-28 17:03:20 +080048 ],
49 objects: record_manager,
50 )
51)