2 # This file is part of secnet.
3 # See LICENCE and this file CREDITS for full list of copyright holders.
4 # SPDX-License-Identifier: GPL-3.0-or-later
5 # There is NO WARRANTY.
11 oot_abs=$(cd .. && pwd)/oot-comprehensive-test.tmp~
13 nproc=$(nproc || echo 1)
18 --oot-abs=*) oot_abs=${arg%*=} ;;
19 *) echo >&2 "unknown arg/option $1"; exit 1;;
23 case "${OLD_SECNET_DIR-:?must be set, perhaps to the empty string}" in
27 OLD_SECNET_DIR="${PWD%/*}/${OLD_SECNET_DIR#../}"
28 echo >&2 "x OLD_SECNET_DIR=$OLD_SECNET_DIR"
31 echo >&2 "relative non-.. OLD_SECNET_DIR $OLD_SECNET_DIR !";
36 x () { echo >&2 "x $*"; "$@"; }
43 if [ "x$1" != x. ]; then
49 x "$srcdir/configure" CFLAGS='-O0 -g'
50 x make $mflags all check
51 for t in mtest/check stest/check; do
56 if [ "x$1" != x. ]; then
63 next if m{^/ct-files$};
64 next if m{^/autom4te\.cache/};
65 next if m{/Makefile$};
67 next if m{^/common\.make$};
68 next if m{^/(?:config|\.makefiles)\.stamp$};
69 next if m{^/config\.(?:log|status|h)$};
70 warn "clean in '"$1"' missed $_";
78 build_and_test "$oot_rel"
79 build_and_test "$oot_abs"
81 echo "----- $0 ok -----"