mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
The Python Pillow image library gives different output for `Image.getcolors()` in version 9 than version 10. This causes libbet's SGB border to be built differently, giving a different ROM hash and technically failing the test script. This patches libbet to only keep the known-good colors. It also adapts the coverage script to run all the tests, including building the third-party projects.
27 lines
471 B
Bash
Executable File
27 lines
471 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
# Build RGBDS with gcov support
|
|
make coverage -j
|
|
|
|
# Run the tests
|
|
pushd test
|
|
./fetch-test-deps.sh
|
|
./run-tests.sh
|
|
popd
|
|
|
|
# Generate coverage logs
|
|
gcov src/**/*.cpp
|
|
mkdir -p coverage
|
|
|
|
# Generate coverage report
|
|
lcov -c --no-external -d . -o coverage/coverage.info
|
|
genhtml -f -s -o coverage/ coverage/coverage.info
|
|
|
|
# Open report in web browser
|
|
if [ "$(uname)" == "Darwin" ]; then
|
|
open coverage/index.html
|
|
else
|
|
xdg-open coverage/index.html
|
|
fi
|