#!/usr/bin/env sh # Shell library {{{ die() { echo "$1" >&2 exit 1 } warning() { eprintln "\033[1;91m==> WARNING:\033[0m" "\033[1;93m$*\033[0m" } eprintln() { >&2 println "$@" } println() { printf "$*\n" } # }}} test_template() { test_name="$(basename "$1")" cat <"$test_file" else warning "'$dir' is missing it's test (at '$test_file')!" fi done