John Wedig | b810c92 | 2021-11-17 16:38:03 -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 = [ |
John Edward Broadbent | e6ffe70 | 2021-10-14 14:03:11 -0700 | [diff] [blame] | 5 | 'erase/verifyGeometry_test', |
John Edward Broadbent | 7f2ab64 | 2021-11-11 21:00:38 -0800 | [diff] [blame] | 6 | 'erase/pattern_test', |
John Edward Broadbent | 4bc8a10 | 2021-12-30 16:11:49 -0800 | [diff] [blame] | 7 | 'erase/zero_test', |
John Edward Broadbent | 59dffa6 | 2022-01-13 17:41:32 -0800 | [diff] [blame] | 8 | 'erase/crypto_test', |
John Wedig | b810c92 | 2021-11-17 16:38:03 -0800 | [diff] [blame] | 9 | 'estoraged_test', |
| 10 | ] |
| 11 | |
John Edward Broadbent | 59dffa6 | 2022-01-13 17:41:32 -0800 | [diff] [blame] | 12 | test_eStoraged_headers = include_directories('include') |
| 13 | |
John Wedig | b810c92 | 2021-11-17 16:38:03 -0800 | [diff] [blame] | 14 | foreach t : tests |
| 15 | test(t, executable(t.underscorify(), t + '.cpp', |
| 16 | implicit_include_directories: false, |
| 17 | dependencies: [ |
| 18 | gtest, |
| 19 | gmock, |
| 20 | libeStoraged, |
| 21 | ], |
John Edward Broadbent | 59dffa6 | 2022-01-13 17:41:32 -0800 | [diff] [blame] | 22 | include_directories: [eStoraged_headers, test_eStoraged_headers])) |
John Wedig | b810c92 | 2021-11-17 16:38:03 -0800 | [diff] [blame] | 23 | endforeach |