From Fedora Project Wiki
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
andcoreutils-common
:sudo dnf install coreutils coreutils-common
.
How to test
- Use the
ls
command to list the contents of a directory. - Create a directory with
mkdir testDir
and check its existence. - Use
cp
to copy a file to the directory you just created. - Remove the file with
rm
and then remove the directory withrmdir
. - Use the
echo
command to print a string:echo "Test for coreutils"
. - Check the date with the
date
command.
Expected Results
- The
ls
command should list the contents without errors. mkdir
should create a directory and its existence should be verifiable.- The
cp
command should copy a file without errors. - The
rm
andrmdir
commands should remove a file and directory respectively without errors. - The
echo
command should correctly print the provided string. - The
date
command should display the current date and time.
Optional
For extended testing:
- Test additional utilities like
mv
,cat
,chmod
,chown
, and others to ensure full functionality. - Check manual pages for these utilities to ensure they are accessible: e.g.,
man ls
.