ref: 097999cad3c5c565c4e15695e691e603476bed00
parent: f82edaa7ec6a2b9eed73f2a35819ae9e254cea54
author: ISSOtm <eldredhabert0@gmail.com>
date: Sat Dec 26 09:26:50 EST 2020
Prevent tests from running if RGBDS hasn't been built Prevents a *lot* of spurious errors due to files not generating
--- a/test/run-tests.sh
+++ b/test/run-tests.sh
@@ -6,6 +6,12 @@
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