Document run-tests.sh --os

Also switch to heredoc syntax for ease of editing
This commit is contained in:
ISSOtm
2026-03-09 03:33:41 -04:00
committed by Rangi
parent 6270f654a1
commit 670bdf2095
2 changed files with 21 additions and 16 deletions

View File

@@ -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