7 ROOT=$(dirname "${BASH_SOURCE}")/..
10 if [[ -z "${color_start-}" ]]; then
11 declare -r color_start="\033["
12 declare -r color_red="${color_start}0;31m"
13 declare -r color_yellow="${color_start}0;33m"
14 declare -r color_green="${color_start}0;32m"
15 declare -r color_norm="${color_start}0m"
20 function is-excluded {
22 if [[ $1 -ef ${BASH_SOURCE} ]]; then
25 if [[ $1 -ef "$ROOT/hack/$e" ]]; then
32 while getopts ":v" opt; do
38 echo "Invalid flag: -$OPTARG" >&2
45 echo "Running in the silent mode, run with -v if you want to see script logs."
51 for t in `ls $ROOT/verify/*.sh`
53 if is-excluded $t ; then
58 echo -e "Verifying $t"
59 if bash "$t" &> /dev/null; then
60 echo -e "${color_green}SUCCESS${color_norm}"
62 echo -e "${color_red}FAILED${color_norm}"