Urchin is a test framework for shell.
Install Urchin like so
wget -O /usr/local/bin https://raw.github.com/scraperwiki/urchin/master/urchin chmod +x /usr/local/bin/urchin
Now you can run it with `urchin`.
Make a directory for your tests. Inside it, write tests as executable files that exit 0 on success and something else on failure. Run `urchin` from within this directory.
Documentation and star-gazing capabilities are available on GitHub.