mirror of
https://github.com/git/git.git
synced 2026-01-20 13:57:19 +09:00
Meta/Dothem: reorganize sanitization trigger a bit
This commit is contained in:
parent
b0e616e6d2
commit
c9eea792ab
45
Dothem
45
Dothem
@ -269,24 +269,27 @@ do
|
||||
section hdr-check
|
||||
Meta/Make $M $jobs -- hdr-check &&
|
||||
|
||||
# SANITIZE=address,undefined
|
||||
case "$dotest,$san,$with_sha256" in
|
||||
'')
|
||||
;;
|
||||
test,,)
|
||||
section test
|
||||
Meta/Make $M $noprove ${test+"$test"} $jobs $test_long $memtrash \
|
||||
-- ${with_dash:+SHELL_PATH=/bin/dash} "$@" $dotest
|
||||
;;
|
||||
*,t,*)
|
||||
if test -n "$san"
|
||||
then
|
||||
section SANITIZE=address,undefined
|
||||
SANITIZE=address,undefined Meta/Make $M $jobs test &&
|
||||
Meta/Make >/dev/null distclean
|
||||
;;
|
||||
esac &&
|
||||
|
||||
# sha256
|
||||
if test -n "$with_sha256"
|
||||
elif test "$with_leaks$with_sha256$dotest" = test
|
||||
then
|
||||
section test
|
||||
Meta/Make $M $noprove ${test+"$test"} $jobs $test_long \
|
||||
$memtrash \
|
||||
-- ${with_dash:+SHELL_PATH=/bin/dash} "$@" $dotest
|
||||
elif test -n "$with_leaks"
|
||||
then
|
||||
section leaks
|
||||
(
|
||||
export SANITIZE=leak
|
||||
export GIT_TEST_PASSING_SANITIZE_LEAK=true
|
||||
Meta/Make -j16 $T CC=clang test &&
|
||||
Meta/Make -j16 >/dev/null distclean
|
||||
)
|
||||
elif test -n "$with_sha256"
|
||||
then
|
||||
section sha256
|
||||
(
|
||||
@ -310,18 +313,6 @@ do
|
||||
fi
|
||||
} &&
|
||||
|
||||
# leaks
|
||||
if test -n "$with_leaks"
|
||||
then
|
||||
section leaks
|
||||
(
|
||||
export SANITIZE=leak
|
||||
export GIT_TEST_PASSING_SANITIZE_LEAK=true
|
||||
Meta/Make -j16 $T CC=clang test &&
|
||||
Meta/Make -j16 >/dev/null distclean
|
||||
)
|
||||
fi &&
|
||||
|
||||
{
|
||||
test z$install = znoinstall ||
|
||||
if test "$save" = "$(git rev-parse HEAD)"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user