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