blob: 9f49857b1633034af15d5cda2dde8cf2bf41aae6 [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,
9 phosphor_logging,
10 ],
11 implicit_include_directories: false,
Lei YU7c2fbbb2019-11-06 14:56:02 +080012 include_directories: libpower_inc,
Brandon Wymandc8e9312020-02-14 17:04:18 -060013 link_args: dynamic_linker,
14 build_rpath: get_option('oe-sdk').enabled() ? rpath : '',
Lei YU093b5912019-10-22 15:28:51 +080015 link_with: [
16 libpower,
17 ],
18 objects: record_manager,
19 )
20)
Lei YU9ab6d752019-10-28 17:03:20 +080021
22test(
23 'test_updater',
24 executable(
25 'test_updater',
26 'test_updater.cpp',
27 '../updater.cpp',
28 dependencies: [
29 gtest,
Lei YU7c2fbbb2019-11-06 14:56:02 +080030 gmock,
Lei YU9ab6d752019-10-28 17:03:20 +080031 phosphor_logging,
32 ],
33 implicit_include_directories: false,
Shawn McCarneyb1216b92020-01-21 15:22:32 -060034 include_directories: [
35 libpower_inc,
36 libi2c_inc,
37 libi2c_dev_mock_inc
38 ],
Brandon Wymandc8e9312020-02-14 17:04:18 -060039 link_args: dynamic_linker,
40 build_rpath: get_option('oe-sdk').enabled() ? rpath : '',
Lei YU9ab6d752019-10-28 17:03:20 +080041 link_with: [
42 libpower,
Shawn McCarneyb1216b92020-01-21 15:22:32 -060043 libi2c_dev_mock
Lei YU9ab6d752019-10-28 17:03:20 +080044 ],
45 objects: record_manager,
46 )
47)