From Fedora Project Wiki

Revision as of 12:19, 14 August 2023 by Sumantrom (talk | contribs) (Created page with "{{QA/Test_Case |description=This test case ensures the proper installation and basic functionality of the `dbus` interprocess communication mechanism. |setup= # Install the `dbus` and `dbus-devel` packages: `sudo dnf install dbus dbus-devel`. # Ensure the D-Bus daemon is running: `systemctl status dbus`. # Prepare a basic script or program to test the D-Bus functionalities. |actions= # List all the D-Bus services currently running using: `dbus-send --print-reply --dest=o...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

This test case ensures the proper installation and basic functionality of the dbus interprocess communication mechanism.

Setup

  1. Install the dbus and dbus-devel packages: sudo dnf install dbus dbus-devel.
  2. Ensure the D-Bus daemon is running: systemctl status dbus.
  3. Prepare a basic script or program to test the D-Bus functionalities.

How to test

  1. List all the D-Bus services currently running using: dbus-send --print-reply --dest=org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus.ListNames.
  2. Use the dbus-monitor tool to monitor D-Bus messages on the system bus or session bus.

Expected Results

  1. The list command should display all active D-Bus services.
  2. dbus-monitor should show live D-Bus messages as they occur.
  3. No errors or crashes should occur during the process.

Optional

For advanced testing:

  1. Test sending and receiving custom messages using D-Bus.
  2. Verify the proper functioning of D-Bus activation where services are started on-demand.
  3. Examine the behavior of D-Bus under high load or with large message payloads.