William A. Kennington III | d4b33e9 | 2018-12-04 17:22:05 -0800 | [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 | 'clock', |
| 6 | 'event', |
| 7 | 'exception', |
William A. Kennington III | d4b33e9 | 2018-12-04 17:22:05 -0800 | [diff] [blame] | 8 | 'internal/utils', |
| 9 | 'source/base', |
| 10 | 'source/child', |
| 11 | 'source/event', |
| 12 | 'source/io', |
| 13 | 'source/signal', |
| 14 | 'source/time', |
| 15 | 'utility/timer', |
| 16 | ] |
| 17 | |
| 18 | foreach t : tests |
| 19 | test(t, executable(t.underscorify(), t + '.cpp', |
William A. Kennington III | d4b33e9 | 2018-12-04 17:22:05 -0800 | [diff] [blame] | 20 | implicit_include_directories: false, |
William A. Kennington III | 8ec59e6 | 2019-04-03 13:38:17 -0700 | [diff] [blame] | 21 | dependencies: [sdeventplus, gtest, gmock])) |
William A. Kennington III | d4b33e9 | 2018-12-04 17:22:05 -0800 | [diff] [blame] | 22 | endforeach |