Prevent tests from running if RGBDS hasn't been built

Prevents a *lot* of spurious errors due to files not generating
This commit is contained in:
ISSOtm
2020-12-26 14:26:50 +01:00
parent f82edaa7ec
commit 097999cad3

View File

@@ -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