chiark / gitweb /
tests/filter: Print all the diffs, not just the first
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 29 Dec 2019 14:00:58 +0000 (14:00 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 30 Dec 2019 11:35:16 +0000 (11:35 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/filter/check

index 10e63e2..e54e4e2 100755 (executable)
@@ -12,6 +12,8 @@ rc=$?
 set -e
 if [ $rc != 0 ]; then cat stderr.tmp; exit 1; fi
 
+ok=true
+
 files=$(find -name \*.expected)
 for f in $files; do
        i=$f
@@ -22,7 +24,9 @@ for f in $files; do
                        a
                }
        '
-       diff -u $f.tmp ${f%.expected}.tmp
+       diff -u $f.tmp ${f%.expected}.tmp || ok=false
 done
 
+$ok
+
 echo ok.