From 52958b6a4eec63ddd170ef88e29f9c51685d3fcb Mon Sep 17 00:00:00 2001 From: Arthur Diniz Date: Mon, 9 Dec 2024 23:24:53 +0000 Subject: [PATCH] Fix silent test failures enforcing min shunit2 version Closes: #39 Signed-off-by: Arthur Diniz --- tests/tests.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/tests.sh b/tests/tests.sh index ffc3082..de76396 100755 --- a/tests/tests.sh +++ b/tests/tests.sh @@ -32,6 +32,14 @@ export PATH="${ROOTDIR}:${PATH}" readonly WCURL_CMD="wcurl --dry-run " +oneTimeSetUp() { + if ! assertContains "Check compatibility" "test" "test"; then + echo "Error: shunit2 version 2.1.8 or higher is required." + echo "Please install a compatible version of shunit2." + exit 1 + fi +} + debug() { if [ -n "${DEBUG}" ]; then