mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-21 02:32:06 +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
|
dd if=$gb count=1 bs=$(printf %s $(wc -c < $bin)) > $output 2>/dev/null
|
||||||
hexdump -C $output > $input && mv $input $output
|
hexdump -C $output > $input && mv $input $output
|
||||||
hexdump -C $bin > $input
|
hexdump -C $bin > $input
|
||||||
diff -u --strip-trailing-cr $input $output
|
cmp $input $output
|
||||||
our_rc=$(($? || $our_rc))
|
our_rc=$(($? || $our_rc))
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ for i in *.asm; do
|
|||||||
bin=${i%.asm}.out.bin
|
bin=${i%.asm}.out.bin
|
||||||
if [ -f $bin ]; then
|
if [ -f $bin ]; then
|
||||||
dd if=$gbtemp count=1 bs=$(printf %s $(wc -c < $bin)) > $otemp 2>/dev/null
|
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))
|
rc=$(($? || $rc))
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user