mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-25 04:22: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:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -115,12 +115,11 @@ for i in *.asm notexist.asm; do
|
||||
|
||||
desired_binname=${i%.asm}.out.bin
|
||||
if [[ -f "$desired_binname" && $our_rc -eq 0 ]]; then
|
||||
if ! "$RGBLINK" -o "$gb" "$o"; then
|
||||
echo "${bold}${red}\`$RGBLINK -o $gb $o\` failed!${rescolors}${resbold}"
|
||||
# 'rgblink -x' implies '-t', so asm/*.out.bin tests cannot use ROMX past 1
|
||||
if ! "$RGBLINK" -x -o "$gb" "$o"; then
|
||||
echo "${bold}${red}\`$RGBLINK -x -o $gb $o\` failed!${rescolors}${resbold}"
|
||||
else
|
||||
rom_size=$(printf %s $(wc -c <"$desired_binname"))
|
||||
dd if="$gb" count=1 bs="$rom_size" >"$output" 2>/dev/null
|
||||
tryCmp "$desired_binname" "$output" gb
|
||||
tryCmp "$desired_binname" "$gb" gb
|
||||
(( our_rc = our_rc || $? ))
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user