Add in test case which validates elog client interface
Change-Id: I5c5f7a550a8f272251893ff616408c41d32281f9
Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
diff --git a/elog-gen.hpp b/elog-gen.hpp
index 52d8d9b..3aba8fb 100644
--- a/elog-gen.hpp
+++ b/elog-gen.hpp
@@ -16,6 +16,7 @@
struct errnum
{
static constexpr auto str = "ERRNO=%d";
+ static constexpr auto str_short = "ERRNO";
using type = std::tuple<std::decay_t<decltype(str)>,int>;
explicit constexpr errnum(int a) : _entry(entry(str, a)) {};
type _entry;
@@ -24,6 +25,7 @@
struct file_path
{
static constexpr auto str = "FILE_PATH=%s";
+ static constexpr auto str_short = "FILE_PATH";
using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
explicit constexpr file_path(const char *a) : _entry(entry(str,a)) {};
type _entry;
@@ -32,6 +34,7 @@
struct file_name
{
static constexpr auto str = "FILE_NAME=%s";
+ static constexpr auto str_short = "FILE_NAME";
using type = std::tuple<std::decay_t<decltype(str)>,const char*>;
explicit constexpr file_name(const char *a) : _entry(entry(str,a)) {};
type _entry;