blob: d5a134fb84863f1b430b9cda401955d7edd67964 [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',
7 dependencies: [
8 gtest,
Patrick Williams888bebd2023-05-31 19:19:49 -05009 nlohmann_json_dep,
Lei YU093b5912019-10-22 15:28:51 +080010 phosphor_logging,
11 ],
12 implicit_include_directories: false,
Lei YU7c2fbbb2019-11-06 14:56:02 +080013 include_directories: libpower_inc,
Brandon Wymandc8e9312020-02-14 17:04:18 -060014 link_args: dynamic_linker,
15 build_rpath: get_option('oe-sdk').enabled() ? rpath : '',
Lei YU093b5912019-10-22 15:28:51 +080016 link_with: [
17 libpower,
18 ],
19 objects: record_manager,
20 )
21)
Lei YU9ab6d752019-10-28 17:03:20 +080022
23test(
24 'test_updater',
25 executable(
26 'test_updater',
27 'test_updater.cpp',
28 '../updater.cpp',
29 dependencies: [
30 gtest,
Lei YU7c2fbbb2019-11-06 14:56:02 +080031 gmock,
Patrick Williams888bebd2023-05-31 19:19:49 -050032 nlohmann_json_dep,
Lei YU9ab6d752019-10-28 17:03:20 +080033 phosphor_logging,
34 ],
35 implicit_include_directories: false,
Shawn McCarneyb1216b92020-01-21 15:22:32 -060036 include_directories: [
37 libpower_inc,
38 libi2c_inc,
39 libi2c_dev_mock_inc
40 ],
Brandon Wymandc8e9312020-02-14 17:04:18 -060041 link_args: dynamic_linker,
42 build_rpath: get_option('oe-sdk').enabled() ? rpath : '',
Lei YU9ab6d752019-10-28 17:03:20 +080043 link_with: [
44 libpower,
Shawn McCarneyb1216b92020-01-21 15:22:32 -060045 libi2c_dev_mock
Lei YU9ab6d752019-10-28 17:03:20 +080046 ],
47 objects: record_manager,
48 )
49)