set -e # cd into script's directory cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null root=$(pwd) REGEXS=() while [[ $# -gt 0 ]]; do case $1 in -h|--help) cat <"$output" 2>&1; then echo "$file FAILED" if [ -z "$VERBOSE" ]; then echo "output of test is as follows" echo "------------------------------" cat "$output" echo "------------------------------" fi exit 1 fi ) done echo -e '\nall tests succeeded!'