blob: 0182b880c5c3967bede394281ed4eae4997b70d0 [file] [log] [blame]
Jonathan Doman366546c2023-07-24 12:33:16 -07001gtest = dependency('gtest', main: true)
2gmock = dependency('gmock')
3
4tests = [
Patrick Williams9d583912025-02-01 08:37:58 -05005 'handler_unittest',
6 'handler_open_unittest',
7 'handler_readwrite_unittest',
8 'handler_statclose_unittest',
Jonathan Doman366546c2023-07-24 12:33:16 -07009]
10
11foreach t : tests
Patrick Williams9d583912025-02-01 08:37:58 -050012 test(
13 t,
14 executable(
15 t.underscorify(),
16 t + '.cpp',
17 '../handler.cpp',
18 include_directories: ['../', root_inc],
Prithvi Pai6981b7f2025-04-02 10:33:29 +053019 dependencies: [
20 smbiosstore_common_deps,
21 gtest,
22 gmock,
23 phosphor_logging_dep,
24 ],
Patrick Williams9d583912025-02-01 08:37:58 -050025 ),
26 protocol: 'gtest',
27 )
Jonathan Doman366546c2023-07-24 12:33:16 -070028endforeach