mirror of
https://github.com/gbdev/rgbds.git
synced 2026-08-26 08:44:35 +00:00
Move external tests files to tests/external/
This commit is contained in:
Vendored
+6
-5
@@ -6,24 +6,25 @@ export LC_ALL=C
|
||||
# Game Boy release date, 1989-04-21T12:34:56Z (for reproducible test results)
|
||||
export SOURCE_DATE_EPOCH=609165296
|
||||
|
||||
cd "$(dirname "$0")/.."
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
RGBDS_PATH="RGBDS=../../"
|
||||
|
||||
if [ ! -f "external/$1.cfg" ]; then
|
||||
if [ ! -f "$1.cfg" ]; then
|
||||
echo >&2 'External test file '"$1"'.cfg does not exist'
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Sourcing "$1.cfg" defines `EXT_TEST_*` variables used below.
|
||||
. "external/$1.cfg"
|
||||
. "$1.cfg"
|
||||
|
||||
if ! cd "$EXT_TEST_REPO"; then
|
||||
echo >&2 'Please fetch test deps before running any external test'
|
||||
exit 1
|
||||
fi
|
||||
|
||||
RGBDS_PATH="RGBDS=../../../"
|
||||
make clean $RGBDS_PATH
|
||||
make -j4 "$EXT_TEST_TARGET" $RGBDS_PATH
|
||||
|
||||
hash="$(sha1sum -b "$EXT_TEST_FILE" | head -c 40)"
|
||||
if [ "$hash" != "$EXT_TEST_HASH" ]; then
|
||||
cat >&2 <<EOM
|
||||
|
||||
Reference in New Issue
Block a user