From 4a81a38442988d4ce689398daa6a286ff195526e Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 6 Dec 2019 22:59:57 +0000 Subject: [PATCH] comprehensive-test: Test that clean target works We have to have a list of exceptions for the output of configure. Signed-off-by: Ian Jackson --- comprehensive-test | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/comprehensive-test b/comprehensive-test index f696630..d8cf07d 100755 --- a/comprehensive-test +++ b/comprehensive-test @@ -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" } -- 2.30.2