NWD=contrib/workdir/git-new-workdir
MASTER=master
+section () {
+ printf "\n\n\n"
+ printf "############ %s\n" "$@"
+ printf "\n\n\n"
+}
+
inst_prefix=$(
IFS=:
for p in $PATH
# cocci
if test -n "$with_cocci"
then
+ section coccicheck
Meta/Make $M $jobs -- coccicheck
fi &&
# sparse
+ section sparse
Meta/Make $M $jobs -- NO_REGEX=NoThanks \
SPARSE_FLAGS=-Wsparse-error sparse &&
rm -f compat/regex/regex.o &&
# hdr
+ section hdr-check
Meta/Make $M $jobs -- hdr-check &&
# SANITIZE=address,undefined
'')
;;
test,)
+ section test
Meta/Make $M $noprove ${test+"$test"} $jobs $test_long $memtrash \
-- ${with_dash:+SHELL_PATH=/bin/dash} "$@" $dotest
;;
*,t)
+ section SANITIZE=address,undefined
SANITIZE=address,undefined Meta/Make $M $jobs test &&
Meta/Make >/dev/null distclean
;;
# sha256
if test -n "$with_sha256"
then
+ section sha256
(
export GIT_TEST_DEFAULT_HASH=sha256
Meta/Make -j16 $T test &&
test -n "$skip_doc" ||
if test "$save" = "$(git rev-parse HEAD)"
then
+ section docs
Meta/Make $M $jobs -- check-docs &&
Meta/Make $M $jobs -- $USE_ASCIIDOCTOR doc &&
Meta/Make $M -- install-man install-html
} &&
# leaks
- if test -n "with_leaks"
+ if test -n "$with_leaks"
then
+ section leaks
(
export SANITIZE=leak
export GIT_TEST_PASSING_SANITIZE_LEAK=true
test z$install = znoinstall ||
if test "$save" = "$(git rev-parse HEAD)"
then
+ section install
Meta/Make $M -- ${with_dash:+SHELL_PATH=/bin/dash} "$@" install
else
echo >&2 "Head moved--not installing"