From 9a4941c7946720ffda3085ee5531a4f9e60ee2e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20K=C4=85dzio=C5=82ka?= Date: Wed, 5 Jun 2019 20:52:35 +0200 Subject: [PATCH 1/3] Allow running the tests from outside of the test folder --- test/run-tests.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/run-tests.sh b/test/run-tests.sh index 02c5b88d..77aa8478 100755 --- a/test/run-tests.sh +++ b/test/run-tests.sh @@ -4,6 +4,8 @@ set -e +cd "$(dirname "$0")" + # Tests included with the repository pushd asm From 4dee999f680f9066c081d10e670ed5b0bae9c942 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20K=C4=85dzio=C5=82ka?= Date: Wed, 5 Jun 2019 20:53:32 +0200 Subject: [PATCH 2/3] Clean the test repositories before running tests --- test/run-tests.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/run-tests.sh b/test/run-tests.sh index 77aa8478..b6e62857 100755 --- a/test/run-tests.sh +++ b/test/run-tests.sh @@ -25,6 +25,7 @@ fi pushd pokecrystal git fetch git checkout 06e169d +make clean make -j make compare popd @@ -35,6 +36,7 @@ fi pushd pokered git fetch git checkout 98f09b6 +make clean make -j make compare popd @@ -45,5 +47,6 @@ fi pushd ucity git fetch git checkout 3315601 +make clean make -j popd From 0a3af87aee82357980bf33ad8a43ddd5463f31b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20K=C4=85dzio=C5=82ka?= Date: Wed, 5 Jun 2019 20:54:21 +0200 Subject: [PATCH 3/3] Ignore the .git folder of the test repositories Before this change, doing `git add test` would also add pokecrystal and the other test repos, even though they didn't show up on `git status`. --- .gitignore | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 32e6b473..e3ca6917 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,6 @@ rgbgfx *.exe .checkpatch-camelcase.* -test/pokecrystal/* -test/pokered/* -test/ucity/* +test/pokecrystal +test/pokered +test/ucity