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