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
bashandbash-completionpackages 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 insand then press theTabkey. - 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
bashshell should recognize and execute commands without errors. - The
bash-completionadd-on should auto-complete commands, file paths, and other predictable text when theTabkey 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
UpandDownarrow keys. - Test the behavior of
bash-completionwhen multiple possible completions exist. - Examine scripting features like variables, loops, and conditionals.
- Check how
bash-completioninteracts with third-party applications installed on the system.
