6 oot_abs=$(cd .. && pwd)/oot-comprehensive-test.tmp~
8 nproc=$(nproc || echo 1)
13 --oot-abs=*) oot_abs=${arg%*=} ;;
14 *) echo >&2 "unknown arg/option $1"; exit 1;;
18 case "${OLD_SECNET_DIR:?must be set, perhaps to the empty string}" in
22 OLD_SECNET_DIR="${PWD%/*}/${OLD_SECNET_DIR#../}"
23 echo >&2 "x OLD_SECNET_DIR=$OLD_SECNET_DIR"
26 echo >&2 "relative non-.. OLD_SECNET_DIR $OLD_SECNET_DIR !";
31 x () { echo >&2 "x $*"; "$@"; }
38 if [ "x$1" != x. ]; then
44 x "$srcdir/configure" CFLAGS='-O0 -g'
45 x make $mflags all check
46 for t in mtest/check stest/check; do
51 if [ "x$1" != x. ]; then
58 next if m{^/ct-files$};
59 next if m{^/autom4te\.cache/};
60 next if m{/Makefile$};
62 next if m{^/common\.make$};
63 next if m{^/(?:config|\.makefiles)\.stamp$};
64 next if m{^/config\.(?:log|status|h)$};
65 warn "clean in '"$1"' missed $_";
73 build_and_test "$oot_rel"
74 build_and_test "$oot_abs"
76 echo "----- $0 ok -----"