Add lampTest class for LED
- Add the framework of the lamp test class.
- For the lamp test path in led group, Initiate lamp test when the
Asserted property is true, Stop the lamp test when the Asserted
property is false or the timer expires.
Tested:
- stat lamp test:
busctl set-property xyz.openbmc_project.LED.GroupManager
/xyz/openbmc_project/led/groups/lamp_test
xyz.openbmc_project.Led.Group Asserted b true
- stop lamp test:
busctl set-property xyz.openbmc_project.LED.GroupManager
/xyz/openbmc_project/led/groups/lamp_test
xyz.openbmc_project.Led.Group Asserted b false
Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I7e6fe0ffc4679288ab90050742d2680051e61905
diff --git a/Makefile.am b/Makefile.am
index 5128fda..6aba107 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -26,6 +26,10 @@
$(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
$(SDEVENTPLUS_CFLAGS)
+if WANTS_LAMP_TEST
+phosphor_ledmanager_SOURCES += lamptest.cpp
+endif
+
led_default_configdir = ${datadir}/phosphor-led-manager
led_ibm_rainier_2u_configdir = ${datadir}/phosphor-led-manager/ibm,rainier-2u
led_ibm_rainier_4u_configdir = ${datadir}/phosphor-led-manager/ibm,rainier-4u