Ignore line endings in test suite

This removes many false positives with Windows
This commit is contained in:
ISSOtm
2019-10-30 00:14:56 +01:00
parent 5a06fad31e
commit 8a90d74340
2 changed files with 17 additions and 17 deletions

View File

@@ -37,9 +37,9 @@ for i in *.asm; do
sed "s/$subst/-/g" ${i%.asm}.err > $desired_errput
fi
diff -u $desired_output $output
diff -u --strip-trailing-cr $desired_output $output
rc=$(($? || $rc))
diff -u $desired_errput $errput
diff -u --strip-trailing-cr $desired_errput $errput
rc=$(($? || $rc))
bin=${i%.asm}.out.bin
@@ -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 $input $output
diff -u --strip-trailing-cr $input $output
rc=$(($? || $rc))
fi
done