Add occ-dbus object
- The intent behind this commit is to add APIs for dynamically
createing D-Bus objects.
- When temperature values such as DIMM or Core are monitored, D-Bus
objects need to be dynamically created and the corresponding
attribute values updated. If the object path exists, only the
attribute value needs to be updated.
- Currently supports Sensor and OperationalStatus interfaces.
- Also, added Unit Test to occ_dbus file.
Tested: built openpower-occ-control successfully and UTest pass.
Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I1eac918d6a7a04d6b72b4e68fff868b04dde9c28
diff --git a/test/Makefile.am b/test/Makefile.am
index 1fee251..3fbcc7c 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -14,7 +14,8 @@
utest_SOURCES = error_files_tests.cpp \
utest.cpp \
- TestI2cOcc.cpp
+ TestI2cOcc.cpp \
+ occ_dbus_test.cpp
utest_CPPFLAGS = $(GTEST_CPPFLAGS) \
$(AM_CPPFLAGS)