From 097999cad3c5c565c4e15695e691e603476bed00 Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Sat, 26 Dec 2020 14:26:50 +0100 Subject: [PATCH] Prevent tests from running if RGBDS hasn't been built Prevents a *lot* of spurious errors due to files not generating --- test/run-tests.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/run-tests.sh b/test/run-tests.sh index 40f38893..b533b412 100755 --- a/test/run-tests.sh +++ b/test/run-tests.sh @@ -6,6 +6,12 @@ set -e cd "$(dirname "$0")" +# Refuse to run if RGBDS isn't present +if [[ ! ( -x ../rgbasm && -x ../rgblink && -x ../rgbfix && -x ../rgbgfx ) ]]; then + echo "Please build RGBDS before running the tests" + false +fi + # Tests included with the repository pushd asm