From Fedora Project Wiki

Description

This test case verifies the functionality of the "dnf search" command.

Setup

Install the latest version of Fedora on a bare metal system using the default Anaconda settings except to reclaim all disk space in the process.

How to test

  • Open a terminal window
  • Type "dnf search <package-name>" and press Enter, where <package-name> is the name of a package you want to search for.
  • Observe the output

Expected Results

The following must be true to consider this a successful test run:

  • The command executes without error.
  • The output includes a list of packages that match the search criteria, sorted alphabetically.
  • Each package listed should include the package name, a brief description, the version number, and the repository from which it is available.
  • The output is readable and formatted correctly.

Optional

Optionally, perform exploratory testing by running the command with different options, such as "--info" and "--color", to verify their functionality. Additionally, test the command with different search criteria, such as searching for packages by keywords or searching for packages with specific dependencies, to verify that the results are accurate.