testsuite: Ignore line endings when diff'ing results
This commit is contained in:
@@ -25,7 +25,7 @@ for t in ${TESTS[*]}; do
|
|||||||
|
|
||||||
cd $OLDPWD
|
cd $OLDPWD
|
||||||
|
|
||||||
if diff -u "$expected" "$result" > "$diff"; then
|
if diff --strip-trailing-cr -u "$expected" "$result" > "$diff"; then
|
||||||
echo "ok $I $name"
|
echo "ok $I $name"
|
||||||
rm "$diff"
|
rm "$diff"
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ for t in ${TESTS[*]}; do
|
|||||||
|
|
||||||
$GTK_BUILDER_TOOL simplify $t 2>/dev/null >$result
|
$GTK_BUILDER_TOOL simplify $t 2>/dev/null >$result
|
||||||
|
|
||||||
if diff -u "$expected" "$result" > "$diff"; then
|
if diff --strip-trailing-cr -u "$expected" "$result" > "$diff"; then
|
||||||
echo "ok $I $name"
|
echo "ok $I $name"
|
||||||
rm "$diff"
|
rm "$diff"
|
||||||
else
|
else
|
||||||
@@ -35,7 +35,7 @@ for t in ${TESTS[*]}; do
|
|||||||
cp $t $result2
|
cp $t $result2
|
||||||
$GTK_BUILDER_TOOL simplify --replace $result2 2>/dev/null
|
$GTK_BUILDER_TOOL simplify --replace $result2 2>/dev/null
|
||||||
|
|
||||||
if diff -u "$expected" "$result2" > "$diff"; then
|
if diff --strip-trailing-cr -u "$expected" "$result2" > "$diff"; then
|
||||||
echo "ok $I $name (--replace)"
|
echo "ok $I $name (--replace)"
|
||||||
rm "$diff"
|
rm "$diff"
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ for t in ${TESTS[*]}; do
|
|||||||
|
|
||||||
$GTK_BUILDER_TOOL simplify --3to4 $t 2>/dev/null >$result
|
$GTK_BUILDER_TOOL simplify --3to4 $t 2>/dev/null >$result
|
||||||
|
|
||||||
if diff -u "$expected" "$result" > "$diff"; then
|
if diff --strip-trailing-cr -u "$expected" "$result" > "$diff"; then
|
||||||
echo "ok $I $name"
|
echo "ok $I $name"
|
||||||
rm "$diff"
|
rm "$diff"
|
||||||
else
|
else
|
||||||
@@ -35,7 +35,7 @@ for t in ${TESTS[*]}; do
|
|||||||
cp $t $result2
|
cp $t $result2
|
||||||
$GTK_BUILDER_TOOL simplify --3to4 --replace $result2 2>/dev/null
|
$GTK_BUILDER_TOOL simplify --3to4 --replace $result2 2>/dev/null
|
||||||
|
|
||||||
if diff -u "$expected" "$result2" > "$diff"; then
|
if diff --strip-trailing-cr -u "$expected" "$result2" > "$diff"; then
|
||||||
echo "ok $I $name (--replace)"
|
echo "ok $I $name (--replace)"
|
||||||
rm "$diff"
|
rm "$diff"
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ for t in ${TESTS[*]}; do
|
|||||||
|
|
||||||
cd $OLDPWD
|
cd $OLDPWD
|
||||||
|
|
||||||
if diff -u "$expected" "$result" > "$diff"; then
|
if diff --strip-trailing-cr -u "$expected" "$result" > "$diff"; then
|
||||||
echo "ok $I $name"
|
echo "ok $I $name"
|
||||||
rm "$diff"
|
rm "$diff"
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user