X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;ds=sidebyside;f=comprehensive-test;h=cf01c7b0d736931a5aeaa6b08f28e2896cc23f4b;hb=147b444d6faa9a621e33d653b7a72c29724203c3;hp=f6966302e9af7d16cd4f07daf681febf665f1e48;hpb=9e8497085d2f2a764bed3b0b7cd1076cde211b7f;p=secnet.git diff --git a/comprehensive-test b/comprehensive-test index f696630..cf01c7b 100755 --- a/comprehensive-test +++ b/comprehensive-test @@ -15,6 +15,19 @@ for arg in "$@"; do esac done +case "${OLD_SECNET_DIR:?must be set, perhaps to the empty string}" in + ''|/*) + ;; + ../*) + OLD_SECNET_DIR="${PWD%/*}/${OLD_SECNET_DIR#../}" + echo >&2 "x OLD_SECNET_DIR=$OLD_SECNET_DIR" + ;; + *) + echo >&2 "relative non-.. OLD_SECNET_DIR $OLD_SECNET_DIR !"; + exit 1 + ;; +esac + x () { echo >&2 "x $*"; "$@"; } srcdir=$(pwd) @@ -34,6 +47,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" }