Add initial unit tests
Signed-off-by: Lei YU <yulei.sh@bytedance.com>
Change-Id: Id4850e52073ea6780a978c6cd5a5c439aa8ed846
diff --git a/meson.build b/meson.build
index 9da20c2..e58eb10 100644
--- a/meson.build
+++ b/meson.build
@@ -17,6 +17,7 @@
phosphor_dbus_interfaces = dependency('phosphor-dbus-interfaces')
phosphor_logging = dependency('phosphor-logging')
libipmid = dependency('libipmid')
+sdbusplus = dependency('sdbusplus')
# Common configurations for src and test
cdata = configuration_data()
@@ -25,3 +26,8 @@
cdata.set_quoted('BIOS_OBJPATH', get_option('BIOS_OBJPATH'))
subdir('src')
+
+build_tests = get_option('tests')
+if not build_tests.disabled()
+ subdir('test')
+endif