Move format_utils.hpp to root directory

Move format_utils.hpp to the root directory of this repository so that
it serves as common code.  Change the namespace to reflect the directory
change.  Move automated tests to the test directory for common code.

Change-Id: Id1af4b8f6da3e3b4f86231599a19d70ca6164f12
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com>
diff --git a/phosphor-power-sequencer/src/format_utils.hpp b/format_utils.hpp
similarity index 93%
rename from phosphor-power-sequencer/src/format_utils.hpp
rename to format_utils.hpp
index b575f50..241dce3 100644
--- a/phosphor-power-sequencer/src/format_utils.hpp
+++ b/format_utils.hpp
@@ -25,7 +25,7 @@
  *
  * Contains utility functions for formatting data.
  */
-namespace phosphor::power::sequencer::format_utils
+namespace phosphor::power::format_utils
 {
 
 /**
@@ -56,4 +56,4 @@
     return str;
 }
 
-} // namespace phosphor::power::sequencer::format_utils
+} // namespace phosphor::power::format_utils
diff --git a/phosphor-power-sequencer/test/meson.build b/phosphor-power-sequencer/test/meson.build
index 39bafc1..5b404d4 100644
--- a/phosphor-power-sequencer/test/meson.build
+++ b/phosphor-power-sequencer/test/meson.build
@@ -2,7 +2,6 @@
      executable('phosphor-power-sequencer-tests',
                 'config_file_parser_error_tests.cpp',
                 'config_file_parser_tests.cpp',
-                'format_utils_tests.cpp',
                 'pmbus_driver_device_tests.cpp',
                 'rail_tests.cpp',
                 'standard_device_tests.cpp',
diff --git a/phosphor-power-sequencer/test/format_utils_tests.cpp b/test/format_utils_tests.cpp
similarity index 96%
rename from phosphor-power-sequencer/test/format_utils_tests.cpp
rename to test/format_utils_tests.cpp
index 794630f..3f61c99 100644
--- a/phosphor-power-sequencer/test/format_utils_tests.cpp
+++ b/test/format_utils_tests.cpp
@@ -23,7 +23,7 @@
 
 #include <gtest/gtest.h>
 
-using namespace phosphor::power::sequencer::format_utils;
+using namespace phosphor::power::format_utils;
 
 TEST(FormatUtilsTests, toString)
 {
diff --git a/test/meson.build b/test/meson.build
index 2e13604..6fa8fee 100644
--- a/test/meson.build
+++ b/test/meson.build
@@ -3,6 +3,7 @@
     executable(
         'common-code-tests',
         'file_descriptor_tests.cpp',
+        'format_utils_tests.cpp',
         'nvtest.cpp',
         'temporary_file_tests.cpp',
         'temporary_subdirectory_tests.cpp',