diff options
author | Gunnar Mills <gmills@us.ibm.com> | 2017-08-14 16:13:32 -0500 |
---|---|---|
committer | Gunnar Mills <gmills@us.ibm.com> | 2017-08-21 14:26:40 +0000 |
commit | 2c11e4561c42331decf12e373c0839f40116c936 (patch) | |
tree | 2838cd1a312f0220de035eb23fd253693f7e9735 | |
parent | 30474cf5daff8ce4a9fdeeaab63957673eeb9f4b (diff) | |
download | phosphor-dbus-monitor-2c11e4561c42331decf12e373c0839f40116c936.tar.gz phosphor-dbus-monitor-2c11e4561c42331decf12e373c0839f40116c936.zip |
Add tests for elog
Change-Id: I58a6ac714cfa80462ab53d4487dc727e40038b06
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
-rw-r--r-- | src/example/test.yaml | 48 | ||||
-rw-r--r-- | src/test/Makefile.am | 8 |
2 files changed, 55 insertions, 1 deletions
diff --git a/src/example/test.yaml b/src/example/test.yaml index 1ba22a4..43755f3 100644 --- a/src/example/test.yaml +++ b/src/example/test.yaml @@ -223,6 +223,54 @@ severity: INFO message: Testing... +- name: test string elog + class: callback + callback: elog + paths: test path group + properties: test string property group + error: xyz::openbmc_project::Common::Error::InvalidArgument + metadata: + - name: xyz::openbmc_project::Common::InvalidArgument::ARGUMENT_NAME + value: testing... + type: string + - name: xyz::openbmc_project::Common::InvalidArgument::ARGUMENT_VALUE + value: testing... + type: string + +- name: test int32 elog + class: callback + callback: elog + paths: test path group + properties: test string property group + error: xyz::openbmc_project::Common::Callout::Error::Device + metadata: + - name: xyz::openbmc_project::Common::Callout::Device::CALLOUT_ERRNO + value: 123 + type: int32 + - name: xyz::openbmc_project::Common::Callout::Device::CALLOUT_DEVICE_PATH + value: testing... + type: string + +- name: test int64 elog + class: callback + callback: elog + paths: test path group + properties: test string property group + error: xyz::openbmc_project::Common::File::Error::Seek + metadata: + - name: xyz::openbmc_project::Common::File::Seek::OFFSET + value: 123 + type: int64 + - name: xyz::openbmc_project::Common::File::Seek::WHENCE + value: 123 + type: int32 + - name: xyz::openbmc_project::Common::File::Seek::ERRNO + value: 123 + type: int32 + - name: xyz::openbmc_project::Common::File::Seek::PATH + value: testing... + type: string + - name: test method class: callback callback: method diff --git a/src/test/Makefile.am b/src/test/Makefile.am index a5d7405..7dddccd 100644 --- a/src/test/Makefile.am +++ b/src/test/Makefile.am @@ -185,9 +185,15 @@ callbacktest_SOURCES = \ callbacktest.cpp callbacktest_CXXFLAGS = \ $(gtest_cflags) + $(SDBUSPLUS_CFLAGS) \ + $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \ + $(PHOSPHOR_LOGGING_CFLAGS) callbacktest_LDFLAGS = \ $(OESDK_TESTCASE_FLAGS) callbacktest_LDADD = \ ${gtest_ldadd} \ ${SDBUSPLUS_LIBS} \ - $(builddir)/../journal.o + $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ + $(PHOSPHOR_LOGGING_LIBS) \ + $(builddir)/../journal.o \ + $(builddir)/../elog.o |