From 5493210786a3fbf0ec39250e365909ff08beb816 Mon Sep 17 00:00:00 2001 From: Marri Devender Rao Date: Tue, 4 Apr 2017 04:16:35 -0500 Subject: Add/adjust tests for new commit and report methods Change-Id: I49ac9574958f4870b04dedd91580c15825c6dd36 Signed-off-by: Marri Devender Rao --- logging_test.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'logging_test.cpp') diff --git a/logging_test.cpp b/logging_test.cpp index 2325444..0ad10b7 100644 --- a/logging_test.cpp +++ b/logging_test.cpp @@ -18,7 +18,7 @@ Options: \n\ -h, --help Display this usage text. \n\ -c, --commit Commit desired error. \n\n\ Valid errors to commit: \n\ -AutoTestSimple\n"; +AutoTestSimple, AutoTestCreateAndCommit\n"; // validate the journal metadata equals the input value int validate_journal(const char *i_entry, const char *i_value) @@ -222,6 +222,13 @@ void commitError(const char *text) commit(e.name()); } } + else if (strcmp(text, "AutoTestCreateAndCommit") == 0) + { + report( + example::xyz::openbmc_project::Example::Elog:: + AutoTestSimple::STRING("FOO")); + } return; } @@ -248,7 +255,6 @@ int main(int argc, char *argv[]) case 'c': commitError(optarg); return 0; - case 'h': case '?': std::cerr << usage; -- cgit v1.2.1