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 Edward Broadbent | 605085a | 2021-11-05 13:45:45 -0700 | [diff] [blame^] | 9 | 'erase/sanitize_test', |
John Wedig | b810c92 | 2021-11-17 16:38:03 -0800 | [diff] [blame] | 10 | 'estoraged_test', |
| 11 | ] |
| 12 | |
John Edward Broadbent | 59dffa6 | 2022-01-13 17:41:32 -0800 | [diff] [blame] | 13 | test_eStoraged_headers = include_directories('include') |
| 14 | |
John Wedig | b810c92 | 2021-11-17 16:38:03 -0800 | [diff] [blame] | 15 | foreach t : tests |
| 16 | test(t, executable(t.underscorify(), t + '.cpp', |
| 17 | implicit_include_directories: false, |
| 18 | dependencies: [ |
| 19 | gtest, |
| 20 | gmock, |
| 21 | libeStoraged, |
| 22 | ], |
John Edward Broadbent | 59dffa6 | 2022-01-13 17:41:32 -0800 | [diff] [blame] | 23 | include_directories: [eStoraged_headers, test_eStoraged_headers])) |
John Wedig | b810c92 | 2021-11-17 16:38:03 -0800 | [diff] [blame] | 24 | endforeach |