shelltest

test command-line programs or arbitrary shell commands

Install

All systems
curl cmd.cat/shelltest.sh
Debian Debian
apt-get install shelltestrunner
Ubuntu
apt-get install shelltestrunner
image/svg+xml Kali Linux
apt-get install shelltestrunner
Windows (WSL2)
sudo apt-get update sudo apt-get install shelltestrunner
OS X
brew install shelltestrunner
Raspbian
apt-get install shelltestrunner

shelltestrunner

test command-line programs or arbitrary shell commands

shelltestrunner is a cross-platform tool for testing command-line programs (or arbitrary shell commands). It reads simple declarative tests specifying a command, some input, and the expected output, error output and exit status. Tests can be run selectively, in parallel, with a timeout, in color, and/or with differences highlighted.