mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Add PinoBatch's game Libbet to the test suite (#1260)
This commit is contained in:
16
.github/workflows/testing.yml
vendored
16
.github/workflows/testing.yml
vendored
@@ -70,7 +70,11 @@ jobs:
|
|||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
run: |
|
run: |
|
||||||
test/fetch-test-deps.sh
|
test/fetch-test-deps.sh
|
||||||
- name: Test
|
- name: Install test dependency dependencies
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
test/fetch-test-deps.sh --get-deps ${{ matrix.os }}
|
||||||
|
- name: Run tests
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
test/run-tests.sh
|
test/run-tests.sh
|
||||||
@@ -154,7 +158,11 @@ jobs:
|
|||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
run: |
|
run: |
|
||||||
test/fetch-test-deps.sh
|
test/fetch-test-deps.sh
|
||||||
- name: Test
|
- name: Install test dependency dependencies
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
test/fetch-test-deps.sh --get-deps ${{ matrix.os }}
|
||||||
|
- name: Run tests
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
cp bins/* .
|
cp bins/* .
|
||||||
@@ -257,6 +265,10 @@ jobs:
|
|||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
run: |
|
run: |
|
||||||
test/fetch-test-deps.sh
|
test/fetch-test-deps.sh
|
||||||
|
- name: Install test dependency dependencies
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
test/fetch-test-deps.sh --get-deps ${{ matrix.os }}
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
1
test/.gitignore
vendored
1
test/.gitignore
vendored
@@ -1,3 +1,4 @@
|
|||||||
|
/libbet/
|
||||||
/pokecrystal/
|
/pokecrystal/
|
||||||
/pokered/
|
/pokered/
|
||||||
/ucity/
|
/ucity/
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ usage() {
|
|||||||
echo "Options:"
|
echo "Options:"
|
||||||
echo " -h, --help show this help message"
|
echo " -h, --help show this help message"
|
||||||
echo " --only-free download only freely licensed codebases"
|
echo " --only-free download only freely licensed codebases"
|
||||||
|
echo " --get-deps install programs' own dependencies instead of themselves"
|
||||||
echo " --get-hash print programs' commit hashes instead of downloading them"
|
echo " --get-hash print programs' commit hashes instead of downloading them"
|
||||||
echo " --get-paths print programs' GitHub paths instead of downloading them"
|
echo " --get-paths print programs' GitHub paths instead of downloading them"
|
||||||
}
|
}
|
||||||
@@ -16,6 +17,7 @@ usage() {
|
|||||||
# in what util-linux `getopt` calls `GETOPT_COMPATIBLE` mode
|
# in what util-linux `getopt` calls `GETOPT_COMPATIBLE` mode
|
||||||
nonfree=true
|
nonfree=true
|
||||||
actionname=
|
actionname=
|
||||||
|
osname=
|
||||||
while [[ $# -gt 0 ]]; do
|
while [[ $# -gt 0 ]]; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
-h|--help)
|
-h|--help)
|
||||||
@@ -25,6 +27,11 @@ while [[ $# -gt 0 ]]; do
|
|||||||
--only-free)
|
--only-free)
|
||||||
nonfree=false
|
nonfree=false
|
||||||
;;
|
;;
|
||||||
|
--get-deps)
|
||||||
|
actionname="$1"
|
||||||
|
shift
|
||||||
|
osname="$1"
|
||||||
|
;;
|
||||||
--get-hash|--get-paths)
|
--get-hash|--get-paths)
|
||||||
actionname="$1"
|
actionname="$1"
|
||||||
;;
|
;;
|
||||||
@@ -40,6 +47,25 @@ while [[ $# -gt 0 ]]; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
case "$actionname" in
|
case "$actionname" in
|
||||||
|
--get-deps)
|
||||||
|
action() { # # owner/repo
|
||||||
|
# libbet depends on PIL to build
|
||||||
|
if [ "$1" = "pinobatch/libbet" ]; then
|
||||||
|
case "${osname%-*}" in
|
||||||
|
ubuntu|macos)
|
||||||
|
python3 -m pip install pillow
|
||||||
|
;;
|
||||||
|
windows)
|
||||||
|
py -3 -m pip install pillow
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "WARNING: Cannot install Pillow for OS '$osname'"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
;;
|
||||||
|
|
||||||
--get-hash)
|
--get-hash)
|
||||||
action() { # owner/repo shallow-since commit
|
action() { # owner/repo shallow-since commit
|
||||||
printf "%s@%s-" "${1##*/}" "$3"
|
printf "%s@%s-" "${1##*/}" "$3"
|
||||||
@@ -69,7 +95,8 @@ case "$actionname" in
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
if "$nonfree"; then
|
if "$nonfree"; then
|
||||||
action pret/pokecrystal 2023-10-22 38667169809b81eb39990b4341f9919332d27248
|
action pret/pokecrystal 2023-11-22 9a917e35760210a1f34057ecada2148f1fefc390
|
||||||
action pret/pokered 2023-10-10 b302e93674f376f2881cbd931a698345ad27bec3
|
action pret/pokered 2023-11-21 d4d7b91aecf651b06d1f466ecc22b65da234a299
|
||||||
fi
|
fi
|
||||||
action AntonioND/ucity 2023-11-02 c781ae20c0b319262b19b51e5067a2c93cf3b362
|
action AntonioND/ucity 2023-11-02 c781ae20c0b319262b19b51e5067a2c93cf3b362
|
||||||
|
action pinobatch/libbet 2023-11-30 9f56cf94883c58517c2cd41a752cfee5a5800e8d
|
||||||
|
|||||||
@@ -69,3 +69,4 @@ if "$nonfree"; then
|
|||||||
test_downstream pret/pokered compare
|
test_downstream pret/pokered compare
|
||||||
fi
|
fi
|
||||||
test_downstream AntonioND/ucity ''
|
test_downstream AntonioND/ucity ''
|
||||||
|
test_downstream pinobatch/libbet all
|
||||||
|
|||||||
Reference in New Issue
Block a user