mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-26 13:02:07 +00:00
Fix too-short .out.bin expected test results
RGBASM tests now use `rgblink -x` instead of `dd` to get trimmed test output. RGBLINK tests cannot do so because some of them (e.g. bank-numbers.asm and sizeof-startof.asm) rely on ROMX sections above 1, and `-x` implies `-t` which breaks that.
This commit is contained in:
@@ -58,6 +58,7 @@ tryCmp () {
|
||||
tryCmpRom () {
|
||||
# `printf` lets us keep only the first returned word from `wc`.
|
||||
rom_size=$(printf %s $(wc -c <"$1"))
|
||||
# 'rgblink -x' implies '-t', so we cannot use '-x' to trim the ROM output
|
||||
dd if="$gbtemp" count=1 bs="$rom_size" >"$otemp" 2>/dev/null
|
||||
tryCmp "$1" "$otemp"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user