William A. Kennington III | 1565897 | 2019-03-27 19:44:36 -0700 | [diff] [blame^] | 1 | gtest = dependency('gtest', main: true, disabler: true, required: build_tests) |
| 2 | gmock = dependency('gmock', disabler: true, required: build_tests) |
| 3 | |
| 4 | tests = [ |
| 5 | 'chip', |
| 6 | 'event', |
| 7 | 'handle', |
| 8 | 'internal/fd', |
| 9 | 'mocks', |
| 10 | 'utility/aspeed', |
| 11 | ] |
| 12 | |
| 13 | foreach t : tests |
| 14 | test(t, executable(t.underscorify(), t + '.cpp', |
| 15 | include_directories: includes, |
| 16 | implicit_include_directories: false, |
| 17 | link_with: gpioplus, |
| 18 | dependencies: [gtest, gmock])) |
| 19 | endforeach |