mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Allow test repos to be kept locally
We no longer assume that the test repos don’t exist when we run run-tests.sh. This allows developers to choose to keep them, to allow them to run the tests more quickly. - Add the test repos to the .gitignore. - Check if the directory for each repo already exists, before trying to clone it. - Do a `git pull` for each repo, to ensure that existing copies of repos are up-to-date. Signed-off-by: Ben10do <Ben10do@users.noreply.github.com>
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -5,3 +5,7 @@ rgbgfx
|
|||||||
*.o
|
*.o
|
||||||
*.exe
|
*.exe
|
||||||
.checkpatch-camelcase.*
|
.checkpatch-camelcase.*
|
||||||
|
|
||||||
|
test/pokecrystal/*
|
||||||
|
test/pokered/*
|
||||||
|
test/ucity/*
|
||||||
|
|||||||
@@ -15,20 +15,30 @@ pushd link
|
|||||||
popd
|
popd
|
||||||
|
|
||||||
# Test some significant external projects that use RGBDS
|
# 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 --depth=1
|
git clone https://github.com/pret/pokecrystal.git --depth=1
|
||||||
|
fi
|
||||||
pushd pokecrystal
|
pushd pokecrystal
|
||||||
|
git pull
|
||||||
make -j
|
make -j
|
||||||
make compare
|
make compare
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
if [ ! -d pokered ]; then
|
||||||
git clone --recursive https://github.com/pret/pokered.git --depth=1
|
git clone --recursive https://github.com/pret/pokered.git --depth=1
|
||||||
|
fi
|
||||||
pushd pokered
|
pushd pokered
|
||||||
|
git pull
|
||||||
make -j
|
make -j
|
||||||
make compare
|
make compare
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
if [ ! -d ucity ]; then
|
||||||
git clone https://github.com/AntonioND/ucity.git --depth=1
|
git clone https://github.com/AntonioND/ucity.git --depth=1
|
||||||
|
fi
|
||||||
pushd ucity
|
pushd ucity
|
||||||
|
git pull
|
||||||
make -j
|
make -j
|
||||||
popd
|
popd
|
||||||
|
|||||||
Reference in New Issue
Block a user