From Fedora Project Wiki
Description
This test case ensures that the bash
shell works as expected and that the bash-completion
add-on provides accurate command-line tab-completions.
Setup
- Install the
bash
andbash-completion
packages if not already present:sudo dnf install bash bash-completion
.
How to test
- Open a terminal.
- Ensure the shell you're using is
bash
:echo $0
. The output should bebash
. - Test basic commands in bash like
echo
,ls
,pwd
, etc. to ensure the shell is functional. - Begin typing a common command, but don't finish it. For example, type
dnf ins
and then press theTab
key. - Observe if the command is auto-completed to
dnf install
. - Test tab-completion for different commands, file paths, package names, etc.
- For a deeper test, you can attempt to write and execute a basic bash script to verify scripting capabilities.
Expected Results
- The
bash
shell should recognize and execute commands without errors. - The
bash-completion
add-on should auto-complete commands, file paths, and other predictable text when theTab
key is pressed. - Bash scripts should be interpreted and executed correctly by the shell.
Optional
For deeper testing:
- Test tab-completion for more advanced scenarios, like after using flags for a command.
- Explore command history navigation using the
Up
andDown
arrow keys. - Test the behavior of
bash-completion
when multiple possible completions exist. - Examine scripting features like variables, loops, and conditionals.
- Check how
bash-completion
interacts with third-party applications installed on the system.