shithub: rgbds

Download patch

ref: 1bd41bf79ae9af867e473f13ca23d036f6f27174
parent: 08ab34cf57756913c0d6eae2322ea1b2e36fed20
author: ISSOtm <eldredhabert0@gmail.com>
date: Sun Jan 26 16:10:13 EST 2020

Don't use `diff` to compare bin files in tests

--- a/test/asm/test.sh
+++ b/test/asm/test.sh
@@ -48,7 +48,7 @@
 			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
 
--- a/test/link/test.sh
+++ b/test/link/test.sh
@@ -54,7 +54,7 @@
 	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