blob: fe4c0f20a46672f1f7520c5f443633d52c3877f0 [file] [log] [blame]
gtest = dependency('gtest', main: true, disabler: true, required: get_option('tests'))
gmock = dependency('gmock', disabler: true, required: get_option('tests'))
test_dep = declare_dependency(
include_directories: include_directories('.'),
dependencies: [gtest, gmock])
tests = [
'binarystore_unittest',
'parse_config_unittest',
'sys_file_unittest',
'handler_unittest',
'handler_open_unittest',
'handler_readwrite_unittest',
'handler_commit_unittest',
'handler_stat_unittest',
]
foreach t : tests
test(
t,
executable(
t.underscorify(),
t + '.cpp',
implicit_include_directories: false,
dependencies: [binarystoreblob_dep, test_dep]))
endforeach