xref: /openbmc/google-ipmi-sys/test/meson.build (revision 559cb01179bcd8a7dd25426455fbe65b5af069fc)
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',
244f0d1de6SSteve 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',
306c71b0f9SWilly Tu  'pcie_bifurcation',
315e70dc8cSNikhil Namjoshi  'bmc_mode',
32a92d0e6bSJohn Wedig  'linux_boot_done',
3315d4d21cSHao Zhou  'bm_mode_transition',
34*559cb011SBrandon Kim  'bm_instance',
35ac730af2SWilliam A. Kennington III]
36ac730af2SWilliam A. Kennington III
37ac730af2SWilliam A. Kennington IIIforeach t : tests
38ac730af2SWilliam A. Kennington III  test(
39ac730af2SWilliam A. Kennington III    t,
40ac730af2SWilliam A. Kennington III    executable(
41ac730af2SWilliam A. Kennington III      t.underscorify(),
42ac730af2SWilliam A. Kennington III      t + '_unittest.cpp',
43ac730af2SWilliam A. Kennington III      implicit_include_directories: false,
448d3d46a2SWilliam A. Kennington III      dependencies: tests_dep))
45ac730af2SWilliam A. Kennington IIIendforeach
46