1gtest = dependency('gtest', main: true)
2gmock = dependency('gmock')
3
4tests = [
5  'handler_unittest',
6  'handler_open_unittest',
7  'handler_readwrite_unittest',
8  'handler_statclose_unittest',
9]
10
11foreach t : tests
12  test(
13    t,
14    executable(
15      t.underscorify(),
16      t + '.cpp',
17      '../handler.cpp',
18      include_directories: ['../', root_inc],
19      dependencies: [
20        smbiosstore_common_deps,
21        gtest,
22        gmock
23      ]
24    ),
25    protocol: 'gtest'
26  )
27endforeach
28