From Fedora Project Wiki
Description
This test case ensures the proper installation and basic functionality of the dbus-broker, dbus-common, and dbus-daemon.
Setup
- Install the
dbus-broker,dbus-common, anddbus-daemonpackages:sudo dnf install dbus-broker dbus-common dbus-daemon. - Ensure the D-Bus broker is running:
systemctl status dbus-broker.service.
How to test
- Check the version of the installed packages:
rpm -q dbus-broker dbus-common dbus-daemon. - List all the D-Bus services currently running using
dbus-send --print-reply --dest=org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus.ListNames. - Use the
dbus-monitortool to monitor D-Bus messages on the system bus or session bus. - Restart the
dbus-brokerservice:systemctl restart dbus-broker.service.
Expected Results
- The version command should display the correct versions of the installed packages.
- The list command should display all active D-Bus services.
dbus-monitorshould show live D-Bus messages as they occur.- No errors or crashes should occur during the process, and services relying on D-Bus should remain functional after the
dbus-brokerrestart.
Optional
For advanced testing:
- Test sending and receiving custom messages using D-Bus and the broker.
- Verify the proper functioning of D-Bus activation where services are started on-demand.
- Examine the behavior of D-Bus under high load or with large message payloads.
