Update analyze function to check STATUS_WORD

The STATUS_WORD PMBus command response will be the start of the power
supply fault analysis. Update the analyze() function to read its value
and process (select) fault bits.

Signed-off-by: Brandon Wyman <bjwyman@gmail.com>
Change-Id: If7274ad237c0604a56008676ae64804a5fd2854e
diff --git a/phosphor-power-supply/test/meson.build b/phosphor-power-supply/test/meson.build
new file mode 100644
index 0000000..a71ac57
--- /dev/null
+++ b/phosphor-power-supply/test/meson.build
@@ -0,0 +1,22 @@
+test('phosphor-power-supply-tests',
+     executable('phosphor-power-supply-tests',
+                'power_supply_tests.cpp',
+                'mock.cpp',
+                dependencies: [
+                    gmock,
+                    gtest,
+                    sdbusplus,
+                    sdeventplus,
+                    phosphor_logging,
+                ],
+                implicit_include_directories: false,
+                include_directories: [
+                    '.',
+                    '..',
+                    '../..'
+                ],
+                link_args: dynamic_linker,
+                build_rpath: get_option('oe-sdk').enabled() ? rpath : '',
+                objects: power_supply,
+     )
+)