Files
rgbds/test/run-tests.sh
Rangi d17e9c663e Update the tested commits of pokecrystal, pokered, and ucity (#859)
These are the latest commits as of today. The pokecrystal and
pokered commits use rgbds 0.5.0 features; ucity does not but
is compatible with it.
2021-04-26 10:47:32 -04:00

55 lines
1.2 KiB
Bash
Executable File

#!/usr/bin/env bash
# Return failure as soon as a command fails to execute
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
for dir in asm link fix; do
pushd $dir
./test.sh
popd
done
# Test some significant external projects that use RGBDS
# When adding new ones, don't forget to add them to the .gitignore!
if [ ! -d pokecrystal ]; then
git clone https://github.com/pret/pokecrystal.git --shallow-since=2021-04-19 --single-branch
fi
pushd pokecrystal
git fetch
git checkout 316fa4b69558a1930a1a1ae44a40221a1ddd4f26
make clean
make -j4 compare RGBDS=../../
popd
if [ ! -d pokered ]; then
git clone --recursive https://github.com/pret/pokered.git --shallow-since=2021-04-19 --single-branch
fi
pushd pokered
git fetch
git checkout bcc4380d40767983a0b253d486bb3c82f0f1fd07
make clean
make -j4 compare RGBDS=../../
popd
if [ ! -d ucity ]; then
git clone https://github.com/AntonioND/ucity.git --shallow-since=2020-11-11 --single-branch
fi
pushd ucity
git fetch
git checkout 15be184b26b337110e1ec2998cd42f134f00f281
make clean
make -j4 RGBDS=../../
popd