xref: /openbmc/google-ipmi-sys/test/meson.build (revision 4f0d1de67e310404c93c0b4266f936850890b036)
1ac730af2SWilliam A. Kennington IIIgtest = dependency('gtest', main: true, disabler: true, required: get_option('tests'))
2ac730af2SWilliam A. Kennington IIIgmock = dependency('gmock', disabler: true, required: get_option('tests'))
3ac730af2SWilliam A. Kennington III
48d3d46a2SWilliam A. Kennington IIItests_pre = declare_dependency(
58d3d46a2SWilliam A. Kennington III  dependencies: [sys_dep, gtest, gmock])
68d3d46a2SWilliam A. Kennington III
78d3d46a2SWilliam A. Kennington IIItests_lib = static_library(
88d3d46a2SWilliam A. Kennington III  'common',
98d3d46a2SWilliam A. Kennington III  'common.cpp',
10ff3cd8e9SWilly Tu  'helper.cpp',
118d3d46a2SWilliam A. Kennington III  implicit_include_directories: false,
128d3d46a2SWilliam A. Kennington III  dependencies: tests_pre)
138d3d46a2SWilliam A. Kennington III
148d3d46a2SWilliam A. Kennington IIItests_dep = declare_dependency(
158d3d46a2SWilliam A. Kennington III  link_with: tests_lib,
168d3d46a2SWilliam A. Kennington III  dependencies: tests_pre)
178d3d46a2SWilliam A. Kennington III
18ac730af2SWilliam A. Kennington IIItests = [
19ac730af2SWilliam A. Kennington III  'cable',
20ac730af2SWilliam A. Kennington III  'cpld',
21ac730af2SWilliam A. Kennington III  'entity',
22ac730af2SWilliam A. Kennington III  'eth',
23ac730af2SWilliam A. Kennington III  'flash',
24*4f0d1de6SSteve Foreman  'google_accel_oob',
25ac730af2SWilliam A. Kennington III  'handler',
26ac730af2SWilliam A. Kennington III  'machine',
27ac730af2SWilliam A. Kennington III  'pcie',
28ac730af2SWilliam A. Kennington III  'poweroff',
29ac730af2SWilliam A. Kennington III  'psu',
30ac730af2SWilliam A. Kennington III]
31ac730af2SWilliam A. Kennington III
32ac730af2SWilliam A. Kennington IIIforeach t : tests
33ac730af2SWilliam A. Kennington III  test(
34ac730af2SWilliam A. Kennington III    t,
35ac730af2SWilliam A. Kennington III    executable(
36ac730af2SWilliam A. Kennington III      t.underscorify(),
37ac730af2SWilliam A. Kennington III      t + '_unittest.cpp',
38ac730af2SWilliam A. Kennington III      implicit_include_directories: false,
398d3d46a2SWilliam A. Kennington III      dependencies: tests_dep))
40ac730af2SWilliam A. Kennington IIIendforeach
41