diff options
Diffstat (limited to 'test_runner')
-rwxr-xr-x | test_runner | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/test_runner b/test_runner index 93ca521..22aed9e 100755 --- a/test_runner +++ b/test_runner @@ -12,6 +12,20 @@ # This script runs all the unit tests that can be found, and generates a nice # report of the tests. # +### Sample usage: +# +# Run all tests for all shells. +# $ ./test_runner +# +# Run all tests for single shell. +# $ ./test_runner -s /bin/bash +# +# Run single test for all shells. +# $ ./test_runner -t shunit_asserts_test.sh +# +# Run single test for single shell. +# $ ./test_runner -s /bin/bash -t shunit_asserts_test.sh +# ### ShellCheck (http://www.shellcheck.net/) # Disable source following. # shellcheck disable=SC1090,SC1091 @@ -172,4 +186,6 @@ EOF } # Execute main() if this is run in standalone mode (i.e. not from a unit test). -if [ -z "${SHUNIT_VERSION}" ]; then main "$@"; fi +if [ -z "${SHUNIT_VERSION}" ]; then + main "$@" +fi |