mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Consistently use LF line endings in expected .out and .err output (#1635)
Test scripts compare files as text
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user