mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Don't use diff to compare bin files in tests
This commit is contained in:
@@ -48,7 +48,7 @@ for i in *.asm; do
|
||||
dd if=$gb count=1 bs=$(printf %s $(wc -c < $bin)) > $output 2>/dev/null
|
||||
hexdump -C $output > $input && mv $input $output
|
||||
hexdump -C $bin > $input
|
||||
diff -u --strip-trailing-cr $input $output
|
||||
cmp $input $output
|
||||
our_rc=$(($? || $our_rc))
|
||||
fi
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ for i in *.asm; do
|
||||
bin=${i%.asm}.out.bin
|
||||
if [ -f $bin ]; then
|
||||
dd if=$gbtemp count=1 bs=$(printf %s $(wc -c < $bin)) > $otemp 2>/dev/null
|
||||
diff --strip-trailing-cr $bin $otemp
|
||||
cmp $bin $otemp
|
||||
rc=$(($? || $rc))
|
||||
fi
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user