blob: 180d9d5ba9a2107276567984aa6eb818a41d2fe2 [file] [log] [blame]
John Wedigb810c922021-11-17 16:38:03 -08001gtest = dependency('gtest', main: true, disabler: true, required: build_tests)
2gmock = dependency('gmock', disabler: true, required: build_tests)
3
4tests = [
John Edward Broadbente6ffe702021-10-14 14:03:11 -07005 'erase/verifyGeometry_test',
John Edward Broadbent7f2ab642021-11-11 21:00:38 -08006 'erase/pattern_test',
John Edward Broadbent4bc8a102021-12-30 16:11:49 -08007 'erase/zero_test',
John Edward Broadbent59dffa62022-01-13 17:41:32 -08008 'erase/crypto_test',
John Edward Broadbent605085a2021-11-05 13:45:45 -07009 'erase/sanitize_test',
John Wedigb810c922021-11-17 16:38:03 -080010 'estoraged_test',
John Edward Broadbent5d799bb2022-03-22 16:14:24 -070011 'util_test',
John Wedigb810c922021-11-17 16:38:03 -080012]
13
John Edward Broadbent59dffa62022-01-13 17:41:32 -080014test_eStoraged_headers = include_directories('include')
15
John Wedigb810c922021-11-17 16:38:03 -080016foreach t : tests
17 test(t, executable(t.underscorify(), t + '.cpp',
18 implicit_include_directories: false,
19 dependencies: [
20 gtest,
21 gmock,
22 libeStoraged,
23 ],
John Edward Broadbent59dffa62022-01-13 17:41:32 -080024 include_directories: [eStoraged_headers, test_eStoraged_headers]))
John Wedigb810c922021-11-17 16:38:03 -080025endforeach