meson: reformat with meson formatter
Apply the `meson format` results.
Change-Id: Ib12a5315423c69a14f11429fd2d5683b97431620
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/test/meson.build b/test/meson.build
index 0d2fd0f..46e16e1 100644
--- a/test/meson.build
+++ b/test/meson.build
@@ -1,31 +1,38 @@
-gtest = dependency('gtest', main: true, disabler: true, required: get_option('tests'))
+gtest = dependency(
+ 'gtest',
+ main: true,
+ disabler: true,
+ required: get_option('tests'),
+)
gmock = dependency('gmock', disabler: true, required: get_option('tests'))
if not gtest.found() or not gmock.found()
- gtest_proj = import('cmake').subproject('googletest', required: false)
- if gtest_proj.found()
- gtest = declare_dependency(
- dependencies: [
- gtest_proj.dependency('gtest'),
- gtest_proj.dependency('gtest_main'),
- ])
- gmock = gtest_proj.dependency('gmock')
- else
- assert(not get_option('tests').allowed(), 'Googletest is required')
- endif
+ gtest_proj = import('cmake').subproject('googletest', required: false)
+ if gtest_proj.found()
+ gtest = declare_dependency(
+ dependencies: [
+ gtest_proj.dependency('gtest'),
+ gtest_proj.dependency('gtest_main'),
+ ],
+ )
+ gmock = gtest_proj.dependency('gmock')
+ else
+ assert(not get_option('tests').allowed(), 'Googletest is required')
+ endif
endif
-gtests = [
- 'crc',
- 'tools_blob',
- 'tools_ipmi_error',
- 'tools_ipmi',
-]
+gtests = ['crc', 'tools_blob', 'tools_ipmi_error', 'tools_ipmi']
foreach t : gtests
- test(t, executable(t.underscorify(), t + '_unittest.cpp',
- build_by_default: false,
- implicit_include_directories: false,
- dependencies: [ipmiblob, gtest, gmock]))
+ test(
+ t,
+ executable(
+ t.underscorify(),
+ t + '_unittest.cpp',
+ build_by_default: false,
+ implicit_include_directories: false,
+ dependencies: [ipmiblob, gtest, gmock],
+ ),
+ )
endforeach