From Fedora Project Wiki

Description

This test case is intended to verify that the firmware updating service fwupd is working correctly.

Setup

  1. Install the fwupd package using the command: sudo dnf install fwupd.
  2. Enable and start the fwupd service: sudo systemctl enable --now fwupd.service.

How to test

  1. Query available devices that can be updated: fwupdmgr get-devices.
  2. Refresh the metadata from the LVFS: fwupdmgr refresh.
  3. Check for available firmware updates: fwupdmgr get-updates.
  4. Optionally, if an update is available, download and apply it (WARNING: Make sure you know what you are doing): fwupdmgr update.

Expected Results

  1. The command fwupdmgr get-devices should list all devices that can have their firmware updated.
  2. The fwupdmgr refresh command should successfully refresh metadata.
  3. The fwupdmgr get-updates should list available updates, or indicate that all devices are up to date.
  4. If applied, the firmware update should complete successfully and the device should function normally after a reboot.

Optional

  1. You can perform additional tests by installing different versions of firmware and verifying device functionality.