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
coreutilsandcoreutils-common:sudo dnf install coreutils coreutils-common.
How to test
- Use the
lscommand to list the contents of a directory. - Create a directory with
mkdir testDirand check its existence. - Use
cpto copy a file to the directory you just created. - Remove the file with
rmand then remove the directory withrmdir. - Use the
echocommand to print a string:echo "Test for coreutils". - Check the date with the
datecommand.
Expected Results
- The
lscommand should list the contents without errors. mkdirshould create a directory and its existence should be verifiable.- The
cpcommand should copy a file without errors. - The
rmandrmdircommands should remove a file and directory respectively without errors. - The
echocommand should correctly print the provided string. - The
datecommand 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.
