blob: bb9ff3340de8bcb4f0d5fcb17cb451e782472525 [file] [log] [blame]
Jie Yangb988dbb2021-08-06 18:34:49 -07001gtest = dependency('gtest', main: true, disabler: true, required: get_option('tests'))
2gmock = dependency('gmock', disabler: true, required: get_option('tests'))
3
Jie Yangb988dbb2021-08-06 18:34:49 -07004tests = [
Willy Tu7f107802023-11-06 23:05:25 -08005 'binarystore_unittest',
Jie Yangb988dbb2021-08-06 18:34:49 -07006 'parse_config_unittest',
7 'sys_file_unittest',
8 'handler_unittest',
9 'handler_open_unittest',
10 'handler_readwrite_unittest',
11 'handler_commit_unittest',
12 'handler_stat_unittest',
13]
14
15foreach t : tests
16 test(
17 t,
18 executable(
19 t.underscorify(),
20 t + '.cpp',
21 implicit_include_directories: false,
William A. Kennington III7e145862024-02-01 15:56:33 -080022 dependencies: [binarystoreblob_dep, binaryblob_proto_dep, gtest, gmock]))
Jie Yangb988dbb2021-08-06 18:34:49 -070023endforeach