chiark / gitweb /
comprehensive-test: Test that clean target works
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 6 Dec 2019 22:59:57 +0000 (22:59 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 7 Dec 2019 17:08:49 +0000 (17:08 +0000)
We have to have a list of exceptions for the output of configure.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
comprehensive-test

index f6966302e9af7d16cd4f07daf681febf665f1e48..d8cf07d20ccebaa3366cd0c87d230669f028dc6d 100755 (executable)
@@ -34,6 +34,25 @@ build_and_test () {
        x make $mflags clean
        x make $mflags $t
     done
+    x make $mflags clean
+    if [ "x$1" != x. ]; then
+        find -type f
+     else
+        git-ls-files -o
+    fi | perl -ne '
+       s{^\./}{};
+       s{^}{/};
+        next if m{^/ct-files$};
+        next if m{^/autom4te\.cache/};
+        next if m{/Makefile$};
+       next if m{\.mk$};
+       next if m{^/common\.make$};
+       next if m{^/(?:config|\.makefiles)\.stamp$};
+       next if m{^/config\.(?:log|status|h)$};
+        warn "clean in '"$1"' missed $_";
+        $bad=1;
+        END { exit $bad; }
+    '
     cd "$srcdir"
 }