| commit | 2fa10f4278efa4a353cbe9a844ca1432df405efd | [log] [tgz] |
|---|---|---|
| author | Jagpal Singh Gill <paligill@gmail.com> | Mon Dec 08 10:35:14 2025 -0800 |
| committer | Jagpal Singh Gill <paligill@gmail.com> | Mon Dec 08 10:35:14 2025 -0800 |
| tree | d3bc846d836e8d3941c2d1483f6b3adb66032fdf | |
| parent | 40fe8597bf2fcffb525298cc7a00154ba67b3063 [diff] |
test: refactor common code into BaseTest Refactor test code into a BaseTest class with common code. Also change the test logic to create a separate thread for modbus test server so it can run independent of client. Tested - ``` > meson test -t 10 -C builddir/ --print-errorlogs --wrapper="valgrind --error-exitcode=1" ninja: Entering directory `/host/repos/Modbus/phosphor-modbus/builddir' ninja: no work to do. 1/7 test_modbus_commands OK 0.73s 2/7 test_firmware OK 3.52s 3/7 test_inventory OK 5.67s 4/7 test_modbus OK 7.91s 5/7 test_events OK 9.55s 6/7 test_port OK 12.06s 7/7 test_sensors OK 16.35s Ok: 7 Fail: 0 ``` Change-Id: I7324494caf641a49f6ad345b09c0942daad0a46f Signed-off-by: Jagpal Singh Gill <paligill@gmail.com>
phosphor-modbus provides a set of software applications to query sensors info, inventory data, firmware info of various modbus devices.
The phosphor-modbus requires phosphor-dbus-interfaces, sdbusplus and phosphor-logging.
The phosphor-modbus is built using meson.
meson build && ninja -C build