build: meson support for test-utils
Build on-hardware test utilities logging-test and callout-test
using meson.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I1a95ed56d1b81caa379bcaa48cc0de2eb10d2f01
diff --git a/meson.build b/meson.build
index f448b39..bc21ff7 100644
--- a/meson.build
+++ b/meson.build
@@ -170,3 +170,25 @@
],
install: true,
)
+# Generate test executables which run in obmc env (qemu, real hardware).
+executable('logging-test',
+ 'logging_test.cpp',
+ link_with: libphosphor_logging,
+ dependencies: [
+ elog_errors_dep,
+ pdi_dep,
+ sdbusplus_dep,
+ ],
+ install: true,
+)
+executable('callout-test',
+ 'callouts/callout_test.cpp',
+ link_with: libphosphor_logging,
+ dependencies: [
+ elog_errors_dep,
+ pdi_dep,
+ sdbusplus_dep,
+ sdeventplus_dep,
+ ],
+ install: true,
+)