Sharness is a portable shell library to write, run, and analyze automated tests for Unix programs. Since all tests output TAP, the Test Anything Protocol, they can be run with any TAP harness.
The following files are essential to using Sharness:
sharness.sh- core shell library providing test functionality, see separate API documentation
aggregate-results.sh- helper script to aggregate test results
Makefile- test driver
Copy them to the project you want to write automated tests for, e.g. to a folder
To learn how to write and run actual test scripts based on
read README.git until I come up with more documentation myself.
Projects using Sharness
See how Sharness is used in real-world projects:
Sharness is licensed under the terms of the GNU General Public License version 2 or higher. See file COPYING for full license text.