mirror of
https://github.com/gbdev/rgbds.git
synced 2026-03-25 06:13:03 +00:00
Document run-tests.sh --os
Also switch to heredoc syntax for ease of editing
This commit is contained in:
@@ -4,14 +4,16 @@ set -euo pipefail
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
usage() {
|
||||
echo "Downloads source code of Game Boy programs used as RGBDS test cases."
|
||||
echo "Options:"
|
||||
echo " -h, --help show this help message"
|
||||
echo " --only-free download only freely licensed codebases"
|
||||
echo " --only-internal do not download any codebases"
|
||||
echo " --get-deps install programs' own dependencies instead of themselves"
|
||||
echo " --get-hash print programs' commit hashes instead of downloading them"
|
||||
echo " --get-paths print programs' GitHub paths instead of downloading them"
|
||||
cat <<"EOF"
|
||||
Downloads source code of Game Boy programs used as RGBDS test cases.
|
||||
Options:
|
||||
-h, --help show this help message
|
||||
--only-free download only freely licensed codebases
|
||||
--only-internal do not download any codebases
|
||||
--get-deps install programs' own dependencies instead of themselves
|
||||
--get-hash print programs' commit hashes instead of downloading them
|
||||
--get-paths print programs' GitHub paths instead of downloading them
|
||||
EOF
|
||||
}
|
||||
|
||||
# Parse options in pure Bash because macOS `getopt` is stuck
|
||||
|
||||
@@ -9,14 +9,17 @@ export SOURCE_DATE_EPOCH=609165296
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
usage() {
|
||||
echo "Runs regression tests on RGBDS."
|
||||
echo "Options:"
|
||||
echo " -h, --help show this help message"
|
||||
echo " --only-internal only run tests that build local examples"
|
||||
echo " --only-external only run tests that build external codebases"
|
||||
echo " --only-free skip tests that build nonfree codebases"
|
||||
echo " --installed-rgbds use the system installed RGBDS"
|
||||
echo " (only compatible with external codebases)"
|
||||
cat <<"EOF"
|
||||
Runs regression tests on RGBDS.
|
||||
Options:
|
||||
-h, --help show this help message
|
||||
--only-internal only run tests that build local examples
|
||||
--only-external only run tests that build external codebases
|
||||
--only-free skip tests that build nonfree codebases
|
||||
--os <os> skip tests known to fail on <os> (e.g. `macos-14`)
|
||||
--installed-rgbds use the system installed RGBDS
|
||||
(only compatible with external codebases)
|
||||
EOF
|
||||
}
|
||||
|
||||
# Parse options in pure Bash because macOS `getopt` is stuck
|
||||
|
||||
Reference in New Issue
Block a user