shithub: rgbds

Download patch

ref: cf7bb9e99fbc3deb73013a7ddedb91a4a63cd73d
parent: df065dbbcb609b2aec2c9ee718784ab8d4df90e8
parent: 1af5343e297105f3b033eb1eb5d45e421a765581
author: Antonio Niño Díaz <antonio_nd@outlook.com>
date: Wed Jun 6 18:05:19 EDT 2018

Merge pull request #285 from Ben10do/allow-test-repos-to-be-kept

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: Antonio Niño Díaz <antonio_nd@outlook.com>

--- a/.gitignore
+++ b/.gitignore
@@ -5,3 +5,7 @@
 *.o
 *.exe
 .checkpatch-camelcase.*
+
+test/pokecrystal/*
+test/pokered/*
+test/ucity/*
--- a/test/run-tests.sh
+++ b/test/run-tests.sh
@@ -15,20 +15,33 @@
 popd
 
 # Test some significant external projects that use RGBDS
+# When adding new ones, don't forget to add them to the .gitignore!
 
-git clone https://github.com/pret/pokecrystal.git --depth=1
+if [ ! -d pokecrystal ]; then
+	git clone https://github.com/pret/pokecrystal.git --shallow-since=2018-06-04 --single-branch
+fi
 pushd pokecrystal
+git fetch
+git checkout 06e169d
 make -j
 make compare
 popd
 
-git clone --recursive https://github.com/pret/pokered.git --depth=1
+if [ ! -d pokered ]; then
+	git clone --recursive https://github.com/pret/pokered.git --shallow-since=2018-03-23 --single-branch
+fi
 pushd pokered
+git fetch
+git checkout 98f09b6
 make -j
 make compare
 popd
 
-git clone https://github.com/AntonioND/ucity.git --depth=1
+if [ ! -d ucity ]; then
+	git clone https://github.com/AntonioND/ucity.git --shallow-since=2018-06-05 --single-branch
+fi
 pushd ucity
+git fetch
+git checkout 9fc8f27
 make -j
 popd