Jonathan Doman | 366546c | 2023-07-24 12:33:16 -0700 | [diff] [blame] | 1 | gtest = dependency('gtest', main: true) |
| 2 | gmock = dependency('gmock') |
| 3 | |
| 4 | tests = [ |
| 5 | 'handler_unittest', |
| 6 | 'handler_open_unittest', |
| 7 | 'handler_readwrite_unittest', |
| 8 | 'handler_statclose_unittest', |
| 9 | ] |
| 10 | |
| 11 | foreach t : tests |
| 12 | test( |
| 13 | t, |
| 14 | executable( |
| 15 | t.underscorify(), |
| 16 | t + '.cpp', |
| 17 | '../handler.cpp', |
| 18 | include_directories: ['../', root_inc], |
| 19 | dependencies: [ |
| 20 | smbiosstore_common_deps, |
| 21 | gtest, |
| 22 | gmock |
| 23 | ] |
| 24 | ), |
| 25 | protocol: 'gtest' |
| 26 | ) |
| 27 | endforeach |