From Fedora Project Wiki

Revision as of 09:37, 14 August 2023 by Sumantrom (talk | contribs) (Created page with "{{QA/Test_Case |description=This test case ensures that the basic utilities (`coreutils`) and their common files (`coreutils-common`) function properly. These utilities include basic file, shell, and text manipulation utilities of the GNU operating system. |setup= # Install `coreutils` and `coreutils-common`: `sudo dnf install coreutils coreutils-common`. |actions= # Use the `ls` command to list the contents of a directory. # Create a directory with `mkdir testDir` and...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

This test case ensures that the basic utilities (coreutils) and their common files (coreutils-common) function properly. These utilities include basic file, shell, and text manipulation utilities of the GNU operating system.

Setup

  1. Install coreutils and coreutils-common: sudo dnf install coreutils coreutils-common.

How to test

  1. Use the ls command to list the contents of a directory.
  2. Create a directory with mkdir testDir and check its existence.
  3. Use cp to copy a file to the directory you just created.
  4. Remove the file with rm and then remove the directory with rmdir.
  5. Use the echo command to print a string: echo "Test for coreutils".
  6. Check the date with the date command.

Expected Results

  1. The ls command should list the contents without errors.
  2. mkdir should create a directory and its existence should be verifiable.
  3. The cp command should copy a file without errors.
  4. The rm and rmdir commands should remove a file and directory respectively without errors.
  5. The echo command should correctly print the provided string.
  6. The date command should display the current date and time.

Optional

For extended testing:

  1. Test additional utilities like mv, cat, chmod, chown, and others to ensure full functionality.
  2. Check manual pages for these utilities to ensure they are accessible: e.g., man ls.