|
3 | 3 | NWD=contrib/workdir/git-new-workdir
|
4 | 4 | MASTER=master
|
5 | 5 |
|
| 6 | +section () { |
| 7 | + printf "\n\n\n" |
| 8 | + printf "############ %s\n" "$@" |
| 9 | + printf "\n\n\n" |
| 10 | +} |
| 11 | + |
6 | 12 | inst_prefix=$(
|
7 | 13 | IFS=:
|
8 | 14 | for p in $PATH
|
|
234 | 240 | # cocci
|
235 | 241 | if test -n "$with_cocci"
|
236 | 242 | then
|
| 243 | + section coccicheck |
237 | 244 | Meta/Make $M $jobs -- coccicheck
|
238 | 245 | fi &&
|
239 | 246 |
|
240 | 247 | # sparse
|
| 248 | + section sparse |
241 | 249 | Meta/Make $M $jobs -- NO_REGEX=NoThanks \
|
242 | 250 | SPARSE_FLAGS=-Wsparse-error sparse &&
|
243 | 251 | rm -f compat/regex/regex.o &&
|
244 | 252 |
|
245 | 253 | # hdr
|
| 254 | + section hdr-check |
246 | 255 | Meta/Make $M $jobs -- hdr-check &&
|
247 | 256 |
|
248 | 257 | # SANITIZE=address,undefined
|
249 | 258 | case "$dotest,$san" in
|
250 | 259 | '')
|
251 | 260 | ;;
|
252 | 261 | test,)
|
| 262 | + section test |
253 | 263 | Meta/Make $M $noprove ${test+"$test"} $jobs $test_long $memtrash \
|
254 | 264 | -- ${with_dash:+SHELL_PATH=/bin/dash} "$@" $dotest
|
255 | 265 | ;;
|
256 | 266 | *,t)
|
| 267 | + section SANITIZE=address,undefined |
257 | 268 | SANITIZE=address,undefined Meta/Make $M $jobs test &&
|
258 | 269 | Meta/Make >/dev/null distclean
|
259 | 270 | ;;
|
|
262 | 273 | # sha256
|
263 | 274 | if test -n "$with_sha256"
|
264 | 275 | then
|
| 276 | + section sha256 |
265 | 277 | (
|
266 | 278 | export GIT_TEST_DEFAULT_HASH=sha256
|
267 | 279 | Meta/Make -j16 $T test &&
|
|
274 | 286 | test -n "$skip_doc" ||
|
275 | 287 | if test "$save" = "$(git rev-parse HEAD)"
|
276 | 288 | then
|
| 289 | + section docs |
277 | 290 | Meta/Make $M $jobs -- check-docs &&
|
278 | 291 | Meta/Make $M $jobs -- $USE_ASCIIDOCTOR doc &&
|
279 | 292 | Meta/Make $M -- install-man install-html
|
|
283 | 296 | } &&
|
284 | 297 |
|
285 | 298 | # leaks
|
286 |
| - if test -n "with_leaks" |
| 299 | + if test -n "$with_leaks" |
287 | 300 | then
|
| 301 | + section leaks |
288 | 302 | (
|
289 | 303 | export SANITIZE=leak
|
290 | 304 | export GIT_TEST_PASSING_SANITIZE_LEAK=true
|
|
297 | 311 | test z$install = znoinstall ||
|
298 | 312 | if test "$save" = "$(git rev-parse HEAD)"
|
299 | 313 | then
|
| 314 | + section install |
300 | 315 | Meta/Make $M -- ${with_dash:+SHELL_PATH=/bin/dash} "$@" install
|
301 | 316 | else
|
302 | 317 | echo >&2 "Head moved--not installing"
|
|
0 commit comments