William A. Kennington III | ac730af | 2021-06-24 03:15:38 -0700 | [diff] [blame] | 1 | gtest = dependency('gtest', main: true, disabler: true, required: get_option('tests')) |
| 2 | gmock = dependency('gmock', disabler: true, required: get_option('tests')) |
| 3 | |
| 4 | tests = [ |
| 5 | 'cable', |
| 6 | 'cpld', |
| 7 | 'entity', |
| 8 | 'eth', |
| 9 | 'flash', |
| 10 | 'handler', |
| 11 | 'machine', |
| 12 | 'pcie', |
| 13 | 'poweroff', |
| 14 | 'psu', |
| 15 | ] |
| 16 | |
| 17 | foreach t : tests |
| 18 | test( |
| 19 | t, |
| 20 | executable( |
| 21 | t.underscorify(), |
| 22 | t + '_unittest.cpp', |
| 23 | implicit_include_directories: false, |
| 24 | dependencies: [sys_dep, gtest, gmock])) |
| 25 | endforeach |