test: add test for events with device sensors

Add test cases to test events with device sensors for threshold events
and sensor failures.

Tested:
```
> meson test -t 10 -C builddir/ --print-errorlogs --wrapper="valgrind --error-exitcode=1" test_device_events
ninja: Entering directory `/host/repos/Modbus/phosphor-modbus/builddir'
[2/2] Linking target tests/test_device_events
1/1 test_device_events        OK              12.47s

Ok:                1
Fail:              0
```

Change-Id: Ic4b70f107eba2e96ce3235f6364b03a88a73c5d7
Signed-off-by: Jagpal Singh Gill <paligill@gmail.com>
4 files changed
tree: fc6a069e8c565f327a37fee0ca7425339546f8a4
  1. common/
  2. mocked_test_device/
  3. rtu/
  4. subprojects/
  5. tests/
  6. .clang-format
  7. .clang-tidy
  8. .gitignore
  9. LICENSE
  10. meson.build
  11. meson.options
  12. OWNERS
  13. README.md
README.md

phosphor-modbus

phosphor-modbus provides a set of software applications to query sensors info, inventory data, firmware info of various modbus devices.

Dependencies

The phosphor-modbus requires phosphor-dbus-interfaces, sdbusplus and phosphor-logging.

Building

The phosphor-modbus is built using meson.

meson build && ninja -C build