Lei YU | 093b591 | 2019-10-22 15:28:51 +0800 | [diff] [blame] | 1 | test( |
| 2 | 'test_version', |
| 3 | executable( |
| 4 | 'test_version', |
| 5 | 'test_version.cpp', |
| 6 | '../version.cpp', |
| 7 | dependencies: [ |
| 8 | gtest, |
Patrick Williams | 888bebd | 2023-05-31 19:19:49 -0500 | [diff] [blame] | 9 | nlohmann_json_dep, |
Lei YU | 093b591 | 2019-10-22 15:28:51 +0800 | [diff] [blame] | 10 | phosphor_logging, |
| 11 | ], |
| 12 | implicit_include_directories: false, |
Lei YU | 7c2fbbb | 2019-11-06 14:56:02 +0800 | [diff] [blame] | 13 | include_directories: libpower_inc, |
Brandon Wyman | dc8e931 | 2020-02-14 17:04:18 -0600 | [diff] [blame] | 14 | link_args: dynamic_linker, |
Patrick Williams | 5c6a693 | 2023-11-29 06:44:29 -0600 | [diff] [blame] | 15 | build_rpath: get_option('oe-sdk').allowed() ? rpath : '', |
Lei YU | 093b591 | 2019-10-22 15:28:51 +0800 | [diff] [blame] | 16 | link_with: [ |
| 17 | libpower, |
| 18 | ], |
| 19 | objects: record_manager, |
| 20 | ) |
| 21 | ) |
Lei YU | 9ab6d75 | 2019-10-28 17:03:20 +0800 | [diff] [blame] | 22 | |
| 23 | test( |
| 24 | 'test_updater', |
| 25 | executable( |
| 26 | 'test_updater', |
| 27 | 'test_updater.cpp', |
| 28 | '../updater.cpp', |
| 29 | dependencies: [ |
| 30 | gtest, |
Lei YU | 7c2fbbb | 2019-11-06 14:56:02 +0800 | [diff] [blame] | 31 | gmock, |
Patrick Williams | 888bebd | 2023-05-31 19:19:49 -0500 | [diff] [blame] | 32 | nlohmann_json_dep, |
Lei YU | 9ab6d75 | 2019-10-28 17:03:20 +0800 | [diff] [blame] | 33 | phosphor_logging, |
| 34 | ], |
| 35 | implicit_include_directories: false, |
Shawn McCarney | b1216b9 | 2020-01-21 15:22:32 -0600 | [diff] [blame] | 36 | include_directories: [ |
| 37 | libpower_inc, |
| 38 | libi2c_inc, |
| 39 | libi2c_dev_mock_inc |
| 40 | ], |
Brandon Wyman | dc8e931 | 2020-02-14 17:04:18 -0600 | [diff] [blame] | 41 | link_args: dynamic_linker, |
Patrick Williams | 5c6a693 | 2023-11-29 06:44:29 -0600 | [diff] [blame] | 42 | build_rpath: get_option('oe-sdk').allowed() ? rpath : '', |
Lei YU | 9ab6d75 | 2019-10-28 17:03:20 +0800 | [diff] [blame] | 43 | link_with: [ |
| 44 | libpower, |
Shawn McCarney | b1216b9 | 2020-01-21 15:22:32 -0600 | [diff] [blame] | 45 | libi2c_dev_mock |
Lei YU | 9ab6d75 | 2019-10-28 17:03:20 +0800 | [diff] [blame] | 46 | ], |
| 47 | objects: record_manager, |
| 48 | ) |
| 49 | ) |