From 1de8edac1a868ce564dbcb28f5ed52fab4f8ec61 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Fri, 2 Aug 2024 22:58:39 +0200 Subject: build(tests): Add complementary scripts --- scripts/lint_missing_tests.sh | 66 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100755 scripts/lint_missing_tests.sh (limited to 'scripts/lint_missing_tests.sh') diff --git a/scripts/lint_missing_tests.sh b/scripts/lint_missing_tests.sh new file mode 100755 index 0000000..dffb86e --- /dev/null +++ b/scripts/lint_missing_tests.sh @@ -0,0 +1,66 @@ +#!/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 -- cgit 1.4.1