Consistently use LF line endings in expected .out and .err output (#1635)

Test scripts compare files as text
This commit is contained in:
Rangi
2025-01-28 21:24:40 -05:00
committed by GitHub
parent 375adc6804
commit a59867cd78
31 changed files with 44 additions and 44 deletions

View File

@@ -1,2 +1,2 @@
FATAL: multiple-else.asm(11):
Found ELSE after an ELSE block
FATAL: multiple-else.asm(11):
Found ELSE after an ELSE block

View File

@@ -1,2 +1,2 @@
warning: narg-decreases-after-shift.asm(14) -> narg-decreases-after-shift.asm::testing(9): [-Wmacro-shift]
Cannot shift macro arguments past their end
warning: narg-decreases-after-shift.asm(14) -> narg-decreases-after-shift.asm::testing(9): [-Wmacro-shift]
Cannot shift macro arguments past their end

View File

@@ -1,2 +1,2 @@
warning: strrpl.asm(4): [-Wempty-strrpl]
STRRPL: Cannot replace an empty string
warning: strrpl.asm(4): [-Wempty-strrpl]
STRRPL: Cannot replace an empty string

View File

@@ -1 +1 @@
$A
$A

View File

@@ -30,7 +30,7 @@ RGBASM=../../rgbasm
RGBLINK=../../rgblink
tryDiff () {
if ! diff -u --strip-trailing-cr "$1" "$2"; then
if ! diff -au --strip-trailing-cr "$1" "$2"; then
echo "${bold}${red}${i%.asm}${variant}.$3 mismatch!${rescolors}${resbold}"
false
fi

View File

@@ -1 +1 @@
warning: Overwrote a non-zero byte in the CGB flag
warning: Overwrote a non-zero byte in the CGB flag

View File

@@ -1 +1 @@
warning: Overwrote a non-zero byte in the CGB flag
warning: Overwrote a non-zero byte in the CGB flag

View File

@@ -1 +1 @@
warning: Overwrote a non-zero byte in the logo
warning: Overwrote a non-zero byte in the logo

View File

@@ -1 +1 @@
warning: Overwrote a non-zero byte in the manufacturer code
warning: Overwrote a non-zero byte in the manufacturer code

View File

@@ -1,2 +1,2 @@
warning: Overwrote a non-zero byte in the CGB flag
warning: Overwrote a non-zero byte in the header checksum
warning: Overwrote a non-zero byte in the CGB flag
warning: Overwrote a non-zero byte in the header checksum

View File

@@ -1 +1 @@
warning: Overwrote a non-zero byte in the header checksum
warning: Overwrote a non-zero byte in the header checksum

View File

@@ -1 +1 @@
warning: Overwrote a non-zero byte in the header checksum
warning: Overwrote a non-zero byte in the header checksum

View File

@@ -1 +1 @@
warning: Overwrote a non-zero byte in the destination code
warning: Overwrote a non-zero byte in the destination code

View File

@@ -1 +1 @@
warning: Overwrote a non-zero byte in the Nintendo logo
warning: Overwrote a non-zero byte in the Nintendo logo

View File

@@ -1 +1 @@
warning: Overwrote a non-zero byte in the Nintendo logo
warning: Overwrote a non-zero byte in the Nintendo logo

View File

@@ -1 +1 @@
warning: Overwrote a non-zero byte in the new licensee code
warning: Overwrote a non-zero byte in the new licensee code

View File

@@ -1 +1 @@
warning: Overwrote a non-zero byte in the old licensee code
warning: Overwrote a non-zero byte in the old licensee code

View File

@@ -1 +1 @@
warning: Overwrote a non-zero byte in the old licensee code
warning: Overwrote a non-zero byte in the old licensee code

View File

@@ -1 +1 @@
warning: Overwrote a non-zero byte in the RAM size
warning: Overwrote a non-zero byte in the RAM size

View File

@@ -1,2 +1,2 @@
warning: Overwrote a non-zero byte in the cartridge type
warning: Overwrote a non-zero byte in the RAM size
warning: Overwrote a non-zero byte in the cartridge type
warning: Overwrote a non-zero byte in the RAM size

View File

@@ -1,2 +1,2 @@
warning: Overwrote a non-zero byte in the cartridge type
warning: Overwrote a non-zero byte in the RAM size
warning: Overwrote a non-zero byte in the cartridge type
warning: Overwrote a non-zero byte in the RAM size

View File

@@ -1 +1 @@
warning: Overwrote a non-zero byte in the SGB flag
warning: Overwrote a non-zero byte in the SGB flag

View File

@@ -25,7 +25,7 @@ rescolors="$(tput op)"
RGBFIX=./rgbfix
tryDiff () {
if ! diff -u --strip-trailing-cr "$1" "$2"; then
if ! diff -au --strip-trailing-cr "$1" "$2"; then
echo "${bold}${red}${3:-$1} mismatch!${rescolors}${resbold}"
false
fi

View File

@@ -1 +1 @@
warning: Overwrote a non-zero byte in the title
warning: Overwrote a non-zero byte in the title

View File

@@ -1 +1 @@
warning: Overwrote a non-zero byte in the title
warning: Overwrote a non-zero byte in the title

View File

@@ -1,3 +1,3 @@
warning: Overwrote a non-zero byte in the Nintendo logo
warning: Overwrote a non-zero byte in the header checksum
warning: Overwrote a non-zero byte in the global checksum
warning: Overwrote a non-zero byte in the Nintendo logo
warning: Overwrote a non-zero byte in the header checksum
warning: Overwrote a non-zero byte in the global checksum

View File

@@ -1,3 +1,3 @@
warning: Overwrote a non-zero byte in the Nintendo logo
warning: Overwrote a non-zero byte in the header checksum
warning: Overwrote a non-zero byte in the global checksum
warning: Overwrote a non-zero byte in the Nintendo logo
warning: Overwrote a non-zero byte in the header checksum
warning: Overwrote a non-zero byte in the global checksum

View File

@@ -1,3 +1,3 @@
warning: Overwrote a non-zero byte in the Nintendo logo
warning: Overwrote a non-zero byte in the header checksum
warning: Overwrote a non-zero byte in the global checksum
warning: Overwrote a non-zero byte in the Nintendo logo
warning: Overwrote a non-zero byte in the header checksum
warning: Overwrote a non-zero byte in the global checksum

View File

@@ -1 +1 @@
warning: Overwrote a non-zero byte in the mask ROM version number
warning: Overwrote a non-zero byte in the mask ROM version number

View File

@@ -83,7 +83,7 @@ for f in *.png; do
newTest "$RGBGFX" $flags "$f"
if [[ -e "${f%.png}.err" ]]; then
runTest 2>"$errtmp"
diff -u --strip-trailing-cr "${f%.png}.err" "$errtmp" || failTest
diff -au --strip-trailing-cr "${f%.png}.err" "$errtmp" || failTest
else
runTest && checkOutput "${f%.png}" || failTest $?
fi
@@ -91,7 +91,7 @@ for f in *.png; do
newTest "$RGBGFX" $flags - "<$f"
if [[ -e "${f%.png}.err" ]]; then
runTest 2>"$errtmp"
diff -u --strip-trailing-cr <(sed "s/$f/<stdin>/g" "${f%.png}.err") "$errtmp" || failTest
diff -au --strip-trailing-cr <(sed "s/$f/<stdin>/g" "${f%.png}.err") "$errtmp" || failTest
else
runTest && checkOutput "${f%.png}" || failTest $?
fi

View File

@@ -38,7 +38,7 @@ continueTest () {
}
tryDiff () {
if ! diff -u --strip-trailing-cr "$1" "$2"; then
if ! diff -au --strip-trailing-cr "$1" "$2"; then
echo "${bold}${red}$1 mismatch!${rescolors}${resbold}"
false
fi