test: Add test_Utils
Add the unit test to verify the findFiles() in utils, the tests creates
test directory structure like hwmon and peci and verify the result is
expected.
Tested: Verify the unit test passes.
Signed-off-by: Lei YU <yulei.sh@bytedance.com>
Change-Id: I11976399909235de509e09865af0b3421db6b565
diff --git a/tests/meson.build b/tests/meson.build
index 50eaf0e..e20eccf 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -49,3 +49,18 @@
)
)
endif
+
+test(
+ 'test_utils',
+ executable(
+ 'test_utils',
+ 'test_Utils.cpp',
+ '../src/Utils.cpp',
+ dependencies: [
+ sdbusplus,
+ gtest_dep,
+ ],
+ implicit_include_directories: false,
+ include_directories: '../include',
+ )
+)